/*
Theme Name: dds_suzdal360.ru
Theme URI: https://suzdal360.ru/
Author: Анна Соколова
Description: «Северное наследие» — тема для информационно-образовательного портала о культурном наследии, туризме и профессиях в этой сфере. Холодная палитра, скандинавский минимализм, картографические мотивы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: suzdal
*/

/* ---------- Правила для [hidden] (до основных блоков) ---------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #F7F9FB;
    --bg-alt: #EDF1F5;
    --header-bg: #FFFFFF;
    --line: #D8E0E8;
    --footer-bg: #1B2A3A;
    --aside-bg: #F0F4F8;
    --ink: #1B2A3A;
    --accent: #2E7D8F;
    --accent-dark: #22606E;
    --gold: #C9A227;
    --muted: #6B7D8E;
    --underline: #B4C1CD;
    --font-head: "Unbounded", "Montserrat", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Fira Sans", "PT Sans", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --radius-btn: 2px;
    --radius-card: 4px;
    --shadow-card: 0 2px 8px rgba(27, 42, 58, 0.06);
    --shadow-card-hover: 0 8px 22px rgba(27, 42, 58, 0.11);
    --ease: cubic-bezier(.25, .7, .3, 1);
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 1.0625rem;
    line-height: 1.65;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232E7D8F' stroke-opacity='0.04' stroke-width='1.6'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='70' stroke-dasharray='3 5'/%3E%3Ccircle cx='100' cy='100' r='12'/%3E%3Cpath d='M100 4v192M4 100h192M33 33l134 134M167 33L33 167'/%3E%3C/g%3E%3Cg fill='%232E7D8F' fill-opacity='0.04'%3E%3Cpath d='M100 14l10 76 -10 10 -10-10z'/%3E%3Cpath d='M100 186l-10-76 10-10 10 10z'/%3E%3Cpath d='M14 100l76-10 10 10-10 10z'/%3E%3Cpath d='M186 100l-76 10-10-10 10-10z'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, #E8EEF4 0 1px, transparent 1px 16px);
    background-repeat: no-repeat, repeat;
    background-position: right -60px bottom -60px, 0 0;
    background-size: 420px 420px, auto;
    background-attachment: fixed, fixed;
}

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

p { margin: 0 0 1.1em; }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.25;
    letter-spacing: 0.01em;
    color: var(--ink);
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.2rem; }
h4 { font-size: 1.05rem; }

p, li, dd, td, th, blockquote, figcaption, .card-title, .fs-topic__title {
    overflow-wrap: break-word;
    hyphens: auto;
}

a {
    color: var(--accent);
    text-decoration: none;
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
}

/* Ссылки в тексте: тонкое приглушённое подчёркивание, при наведении — акцентное слева направо */
.entry-content a, .sz-page-intro a, .widget a, .cookie-banner__text a, .sz-comment__text a, .comment-notes a, .logged-in-as a, .must-log-in a {
    background-image: linear-gradient(var(--accent), var(--accent)), linear-gradient(var(--underline), var(--underline));
    background-size: 0 1px, 100% 1px;
    background-position: 0 100%, 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: background-size .35s var(--ease), color .2s;
}
.entry-content a:hover, .sz-page-intro a:hover, .widget a:hover, .cookie-banner__text a:hover, .sz-comment__text a:hover, .comment-notes a:hover, .logged-in-as a:hover, .must-log-in a:hover {
    background-size: 100% 1px, 100% 1px;
}

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid var(--line); }
th, td { border: 1px solid var(--line); padding: .6em .8em; text-align: left; vertical-align: top; }
th { background: var(--bg-alt); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.5em;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius-card);
}
blockquote p:last-child { margin-bottom: 0; }

pre {
    overflow-x: auto;
    padding: 1em 1.2em;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

hr { border: 0; height: 1px; background: var(--line); margin: 2em 0; }

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

.skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 100;
    padding: .6em 1em;
    background: var(--ink);
    color: #FFFFFF;
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ширины (единственный) ---------- */
.shell {
    width: min(92%, 1220px);
    margin-inline: auto;
}
.shell--front { width: min(85%, 1220px); }

/* ---------- Полоса сверху ---------- */
.sz-topline {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0 33.333%, var(--gold) 33.333% 66.666%, var(--ink) 66.666% 100%);
}

/* ---------- Кнопки ---------- */
.sz-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5em;
    min-height: 44px;
    padding: .65em 1.4em;
    border: 1px solid transparent;
    border-radius: var(--radius-btn);
    font-family: var(--font-body);
    font-size: .98rem;
    font-weight: 500;
    line-height: 1.3;
    text-align: center;
    cursor: pointer;
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.sz-btn:hover { transform: translateY(-1px); }
.sz-btn--fill { background: var(--accent); color: #FFFFFF; border-color: var(--accent); }
.sz-btn--fill:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.sz-btn--ghost { background: transparent; color: var(--accent); border-color: var(--accent); }
.sz-btn--ghost:hover { background: var(--accent); color: #FFFFFF; }
.sz-btn--light { color: #FFFFFF; border-color: rgba(255, 255, 255, .7); }
.sz-btn--light:hover { background: #FFFFFF; color: var(--ink); border-color: #FFFFFF; }

/* ---------- Шапка ---------- */
.sz-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--line);
    position: relative;
}
.sz-header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 0;
}
.sz-brand {
    display: flex;
    align-items: center;
    gap: .9rem;
    min-width: 0;
    color: var(--ink);
}
.sz-brand__mark { flex: 0 0 auto; }
.sz-brand__mark .brand-logo { width: 52px; height: 52px; object-fit: contain; }
.sz-brand__text { display: flex; flex-direction: column; gap: .25rem; min-width: 0; }
.sz-brand__name {
    font-family: var(--font-head);
    font-size: .82rem;
    font-weight: 500;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    overflow-wrap: break-word;
}
.sz-brand__desc {
    display: none;
    font-size: .82rem;
    line-height: 1.45;
    color: var(--muted);
    overflow: hidden;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.sz-nav-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    min-height: 44px;
    padding: .5rem .9rem;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font: 500 .9rem var(--font-body);
    cursor: pointer;
}
.sz-nav-toggle__bars, .sz-nav-toggle__bars::before, .sz-nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: transform .25s var(--ease);
}
.sz-nav-toggle__bars::before, .sz-nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.sz-nav-toggle__bars::before { top: -6px; }
.sz-nav-toggle__bars::after { top: 6px; }
.sz-nav-toggle[aria-expanded="true"] .sz-nav-toggle__bars { background: transparent; }
.sz-nav-toggle[aria-expanded="true"] .sz-nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.sz-nav-toggle[aria-expanded="true"] .sz-nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

.sz-nav { display: none; border-top: 1px solid var(--line); }
.sz-nav.is-open { display: block; }
.sz-menu { list-style: none; margin: 0; padding: .4rem 0 .8rem; }
.sz-menu li { position: relative; }
.sz-menu a {
    display: block;
    padding: .65rem 0;
    color: var(--ink);
    font-weight: 500;
    border-bottom: 1px dashed var(--line);
}
.sz-menu a:hover, .sz-menu .current-menu-item > a { color: var(--accent); }
.sz-menu .sub-menu { list-style: none; margin: 0; padding: 0 0 0 1rem; }

/* ---------- Разделители ---------- */
.sz-divider {
    position: relative;
    height: 26px;
    width: min(85%, 1220px);
    margin: 0 auto;
    background:
        linear-gradient(var(--line), var(--line)) center / 100% 1px no-repeat,
        repeating-linear-gradient(90deg, #A9B8C6 0 4px, transparent 4px 10px) center calc(50% + 7px) / 100% 1px no-repeat;
}
.sz-divider span {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 9px;
    height: 9px;
    margin: -4.5px 0 0 -4.5px;
    border-radius: 50%;
    background: var(--gold);
    box-shadow: 0 0 0 5px var(--bg);
}

/* ---------- Заголовки секций ---------- */
.sz-section-head { margin-bottom: 2.4rem; }
.sz-section-head--row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}
.sz-section-title {
    position: relative;
    margin: 0;
    padding-left: 1.1rem;
    border-left: 3px solid var(--accent);
    font-size: 1.6rem;
    line-height: 1.25;
}
.sz-section-lead {
    max-width: 62ch;
    margin: 1rem 0 0;
    color: var(--muted);
}

/* Золотая точка-буллет у H2, вынесенная на поле */
.sz-section-title::before,
.entry-content h2::before,
.sz-comments__title::before,
.comment-reply-title::before {
    content: "";
    position: absolute;
    left: -1.35rem;
    top: .55em;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
}
.sz-section-title::before { left: -1.55rem; }
.entry-content h2, .sz-comments__title, .comment-reply-title { position: relative; }

/* ---------- Главная: общие полосы ---------- */
.fs-band { padding: 4rem 0; }
.fs-band--alt { background: var(--bg-alt); }

/* Hero */
.fs-hero {
    position: relative;
    display: flex;
    align-items: flex-end;
    min-height: 520px;
    overflow: hidden;
    background: var(--ink);
    color: #FFFFFF;
}
.fs-hero__img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.fs-hero__veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(27, 42, 58, .25) 0%, rgba(27, 42, 58, .55) 45%, rgba(27, 42, 58, .88) 100%);
}
.fs-hero__inner {
    position: relative;
    z-index: 1;
    padding: 6rem 0 3.6rem;
}
.fs-hero__title {
    margin: 0 0 1rem;
    max-width: 16ch;
    font-size: 2.1rem;
    font-weight: 500;
    line-height: 1.15;
    color: #FFFFFF;
}
.fs-hero__lead {
    max-width: 60ch;
    margin: 0 0 1.8rem;
    font-size: 1.08rem;
    color: #E3EAF1;
}
.fs-hero__actions { display: flex; flex-wrap: wrap; gap: .8rem; }
.fs-hero__gold {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 2px;
    background: var(--gold);
    z-index: 1;
}

/* Таймлайн */
.fs-timeline {
    position: relative;
    list-style: none;
    margin: 0;
    padding: 0 0 0 2rem;
}
.fs-timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 4px;
    bottom: 4px;
    width: 2px;
    background: var(--accent);
}
.fs-timeline__item { position: relative; margin-bottom: 1.6rem; }
.fs-timeline__item:last-child { margin-bottom: 0; }
.fs-timeline__dot {
    position: absolute;
    left: calc(-2rem + 1px);
    top: 1.5rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 2px solid var(--gold);
}
.fs-timeline__card {
    min-width: 0;
    padding: 1.3rem 1.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
}
.fs-timeline__when {
    display: block;
    margin-bottom: .35rem;
    font-family: var(--font-head);
    font-size: .85rem;
    font-weight: 500;
    color: var(--gold);
}
.fs-timeline__title { margin: 0 0 .5rem; font-size: 1.1rem; }
.fs-timeline__card p { margin: 0; color: #3A4B5C; }

/* Плюсы и минусы — тёмная акцентная секция с сеткой-чертежом */
.fs-band--dark {
    background-color: var(--ink);
    background-image:
        linear-gradient(rgba(46, 125, 143, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 143, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    color: #E3EAF1;
}
.fs-band--dark .sz-section-title { color: #FFFFFF; }
.fs-band--dark .sz-section-lead { color: #A9B8C6; }
.fs-pc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
.fs-pc__col { min-width: 0; }
.fs-pc__head {
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
    color: #FFFFFF;
}
.fs-pc__col--con .fs-pc__head { color: var(--gold); }
.fs-pc__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .9rem; }
.fs-pc__card {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
    padding: 1.1rem 1.3rem;
    border-radius: var(--radius-card);
}
.fs-pc__card > div { min-width: 0; }
.fs-pc__card h4 { margin: 0 0 .3rem; font-size: .98rem; }
.fs-pc__card p { margin: 0; font-size: .97rem; }
.fs-pc__icon { flex: 0 0 24px; margin-top: .1rem; }
.fs-pc__col--pro .fs-pc__card { background: #FFFFFF; color: var(--ink); }
.fs-pc__col--pro .fs-pc__card h4 { color: var(--ink); }
.fs-pc__col--pro .fs-pc__card p { color: #3A4B5C; }
.fs-pc__col--pro .fs-pc__icon { color: var(--accent); }
.fs-pc__col--con .fs-pc__card { background: rgba(255, 255, 255, .05); border: 1px solid rgba(216, 224, 232, .18); }
.fs-pc__col--con .fs-pc__card h4 { color: #D3DCE5; }
.fs-pc__col--con .fs-pc__card p { color: #A9B8C6; }
.fs-pc__col--con .fs-pc__icon { color: var(--gold); }

/* Карта тем */
.fs-topics { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.fs-topic {
    display: flex;
    flex-direction: column;
    gap: .45rem;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
    transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), transform .25s var(--ease);
}
.fs-topic__icon { width: 44px; height: 44px; margin-bottom: .5rem; color: var(--accent); transition: color .25s var(--ease); }
.fs-topic__title { font-family: var(--font-head); font-size: 1rem; font-weight: 500; line-height: 1.3; }
.fs-topic__text { font-size: .95rem; color: var(--muted); transition: color .25s var(--ease); }
.fs-topic:hover, .fs-topic:focus-visible {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}
.fs-topic:hover .fs-topic__icon, .fs-topic:focus-visible .fs-topic__icon { color: #FFFFFF; }
.fs-topic:hover .fs-topic__text, .fs-topic:focus-visible .fs-topic__text { color: #E3F1F4; }

/* ---------- Внутренние страницы: раскладка ---------- */
.sz-inner { padding: 1.6rem 0 4rem; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.5rem;
}
.layout-single { display: block; }
.layout-single > .content-area { width: 100%; margin-left: auto; margin-right: auto; }
.content-area { min-width: 0; }

.breadcrumbs {
    margin-bottom: 1.6rem;
    font-size: .9rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); border-bottom: 1px solid var(--underline); }
.breadcrumbs a:hover { color: var(--accent); border-color: var(--accent); }
.breadcrumbs .sep { margin: 0 .35rem; color: var(--gold); }
.breadcrumbs span:last-child { color: var(--ink); }

.sz-page-head { margin-bottom: 2rem; }
.sz-page-title {
    margin: 0 0 .6rem;
    font-size: 2rem;
    line-height: 1.2;
}
.sz-page-intro { color: var(--muted); max-width: 70ch; }

.sz-empty {
    padding: 1.6rem 1.8rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: box-shadow .3s var(--ease), transform .3s var(--ease), border-color .3s var(--ease);
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-card-hover);
    border-color: var(--accent);
}
.card-thumb { border-bottom: 1px solid var(--line); background: var(--bg-alt); }
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 1.35rem 1.35rem;
}
.card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .35rem .9rem;
    margin-bottom: .6rem;
    font-size: .85rem;
    color: var(--muted);
}
.card-cat { color: var(--accent); }
.card-flag {
    padding: .1rem .5rem;
    border: 1px solid var(--gold);
    border-radius: var(--radius-btn);
    color: #8A6E12;
    font-size: .78rem;
}
.card-title { margin: 0 0 .6rem; font-size: 1.05rem; line-height: 1.35; }
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: #3A4B5C; font-size: .97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding-top: .6rem;
    font-weight: 500;
    color: var(--accent);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size .35s var(--ease);
}
.card-more:hover { background-size: 100% 1px; }

/* ---------- Пагинация (type => plain) ---------- */
.sz-pager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: .45rem;
    margin-top: 2.6rem;
}
.sz-pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .4rem .85rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    color: var(--ink);
    font-weight: 500;
    transition: background-color .2s, border-color .2s, color .2s, transform .2s;
}
.sz-pager a.page-numbers:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-1px); }
.sz-pager .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.sz-pager .page-numbers.dots { background: transparent; border: 0; min-width: auto; padding: .4rem .2rem; }

/* ---------- Запись / страница ---------- */
.sz-entry__head { margin-bottom: 1.4rem; }
.sz-entry__meta {
    display: flex;
    flex-wrap: wrap;
    gap: .4rem 1rem;
    font-size: .9rem;
    color: var(--muted);
}
.sz-entry__cat { color: var(--accent); }
.sz-entry__thumb { margin: 0 0 1.8rem; border-radius: var(--radius-card); overflow: hidden; border: 1px solid var(--line); }
.sz-entry__thumb img { width: 100%; height: auto; display: block; }

.entry-content { max-width: 72ch; }
.layout-single .entry-content { max-width: none; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.45rem; }
.entry-content h3 { font-size: 1.18rem; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: .35em; }
.entry-content ul li::marker { color: var(--gold); }
.entry-content img { border-radius: var(--radius-card); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: .88rem; color: var(--muted); margin-top: .5em; }

.sz-entry__tags { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.sz-entry__tags a {
    padding: .25rem .7rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
    font-size: .88rem;
}
.sz-entry__tags a:hover { border-color: var(--accent); }

.sz-page-links { margin-top: 1.4rem; }

.post-navigation { margin-top: 2.6rem; }
.post-navigation .nav-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.post-navigation a {
    display: block;
    height: 100%;
    padding: 1rem 1.2rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
    transition: border-color .25s;
}
.post-navigation a:hover { border-color: var(--accent); }
.sz-postnav__label { display: block; font-size: .82rem; color: var(--muted); margin-bottom: .2rem; }
.sz-postnav__title { display: block; font-weight: 500; }

/* ---------- Сайдбар и виджеты ---------- */
.sidebar {
    min-width: 0;
    align-self: start;
    padding: 1.5rem 1.4rem;
    background: var(--aside-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--line);
    font-size: 1rem;
    color: var(--ink);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: .55rem 0; border-bottom: 1px dashed var(--line); color: var(--ink); }
.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, .sidebar .widget .rss-date { display: block; font-size: .82rem; color: var(--muted); }
.sidebar .widget p, .sidebar .textwidget { color: var(--ink); }

/* ---------- Подвал ---------- */
.sz-footer {
    position: relative;
    background-color: var(--footer-bg);
    background-image:
        linear-gradient(rgba(46, 125, 143, .08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46, 125, 143, .08) 1px, transparent 1px);
    background-size: 22px 22px;
    color: #C9D4DF;
    padding: 0 0 2rem;
}
.sz-divider--footer {
    width: 100%;
    background:
        linear-gradient(rgba(216, 224, 232, .2), rgba(216, 224, 232, .2)) center / 100% 1px no-repeat;
}
.sz-divider--footer span { box-shadow: 0 0 0 5px var(--footer-bg); }
.sz-footer__cols {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    padding: 3rem 0 2.4rem;
}
.sz-footer__col { min-width: 0; }
.sz-footer .widget { margin-bottom: 1.6rem; }
.sz-footer .widget:last-child { margin-bottom: 0; }
.sz-footer .widget-title {
    margin: 0 0 1rem;
    font-size: .98rem;
    color: #FFFFFF;
}
.sz-footer .widget, .sz-footer .widget p, .sz-footer .textwidget, .sz-footer .widget li { color: #C9D4DF; }
.sz-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.sz-footer .widget li { padding: .3rem 0; }
.sz-footer .widget a {
    color: #E3EAF1;
    background-image: linear-gradient(var(--gold), var(--gold)), linear-gradient(rgba(201, 212, 223, .35), rgba(201, 212, 223, .35));
}
.sz-footer .widget a:hover { color: #FFFFFF; }
.sz-footer .post-date { color: #93A4B5; }
.sz-footer__copy {
    margin: 0;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(169, 184, 198, .3);
    font-size: .88rem;
    color: #93A4B5;
}

/* ---------- Поиск ---------- */
.sz-search { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.sz-search__field {
    flex: 1 1 220px;
    min-width: 0;
    min-height: 44px;
    padding: .55rem .9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
}
.sz-search__field:focus { border-color: var(--accent); outline: none; }

/* ---------- 404 ---------- */
.sz-404 { padding: 2rem 0 1rem; }
.sz-404__code {
    margin: 0;
    font-family: var(--font-head);
    font-size: 4.5rem;
    line-height: 1;
    color: var(--line);
}
.sz-404__home { margin-top: 1.4rem; }

/* ---------- Комментарии ---------- */
.sz-comments { margin-top: 3rem; }
.sz-comments__title, .comment-reply-title { font-size: 1.3rem; margin: 0 0 1.2rem; }
.sz-comments__list, .sz-comments__list .children { list-style: none; margin: 0; padding: 0; }
.sz-comments__list .children { padding-left: 1.6rem; }
.sz-comment__body {
    margin-bottom: 1rem;
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}
.sz-comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .8rem; margin-bottom: .6rem; }
.sz-comment__head img { border-radius: 50%; }
.sz-comment__author { font-weight: 600; }
.sz-comment__date { font-size: .85rem; color: var(--muted); }
.sz-comment__moderation { color: #8A6E12; font-size: .9rem; }
.sz-comment__reply a { font-size: .9rem; font-weight: 500; }
.comment-respond {
    margin-top: 2rem;
    padding: 1.6rem 1.6rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: var(--radius-card);
}
.comment-form label { display: block; margin-bottom: .3rem; font-weight: 500; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%;
    padding: .6rem .8rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    font: inherit;
    color: var(--ink);
    background: var(--bg);
}
.comment-form-cookies-consent { display: flex; gap: .5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; font-weight: 400; }
.comment-form .submit {
    min-height: 44px;
    padding: .65em 1.4em;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    color: #FFFFFF;
    font: 500 .98rem var(--font-body);
    cursor: pointer;
    transition: background-color .25s, transform .25s;
}
.comment-form .submit:hover { background: var(--accent-dark); transform: translateY(-1px); }
.comment-notes, .logged-in-as { font-size: .9rem; color: var(--muted); }

/* ---------- Cookie-баннер ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    flex-direction: column;
    gap: .9rem;
    max-width: 760px;
    margin: 0 auto;
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(27, 42, 58, .14);
    color: var(--ink);
}
.cookie-banner__text { margin: 0; font-size: .92rem; }
.cookie-banner__btn { align-self: flex-start; }

/* ---------- Выравнивания WordPress ---------- */
.alignleft { float: left; margin: .3em 1.4em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: .88rem; color: var(--muted); }
.sticky { position: relative; }
.bypostauthor { display: block; }

/* ================= ≥ 600px ================= */
@media (min-width: 600px) {
    h1 { font-size: 2.5rem; }
    .sz-brand__name { font-size: .88rem; -webkit-line-clamp: 2; }
    .fs-hero { min-height: 580px; }
    .fs-hero__title { font-size: 2.7rem; }
    .sz-section-title { font-size: 1.85rem; }
    .card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-topics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .post-navigation .nav-next { text-align: right; }
    .sz-footer__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cookie-banner { flex-direction: row; align-items: center; }
    .cookie-banner__btn { align-self: center; flex: 0 0 auto; }
    .fs-band { padding: 5rem 0; }
}

/* ================= ≥ 960px ================= */
@media (min-width: 960px) {
    h1 { font-size: 3.2rem; }
    .sz-header__inner { padding: 1.2rem 0; }
    .sz-brand__mark .brand-logo { width: 60px; height: 60px; }
    .sz-brand__name { font-size: .95rem; max-width: 70ch; }
    .sz-brand__desc { display: -webkit-box; max-width: 90ch; }
    .sz-nav-toggle { display: none; }
    .sz-nav, .sz-nav.is-open { display: block; }
    .sz-menu { display: flex; flex-wrap: wrap; gap: 0 2.2rem; padding: 0; }
    .sz-menu > li > a {
        padding: .9rem 0;
        border-bottom: 2px solid transparent;
    }
    .sz-menu > li > a:hover, .sz-menu > .current-menu-item > a { border-bottom-color: var(--accent); }
    .sz-menu .sub-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        z-index: 20;
        min-width: 220px;
        padding: .4rem 1rem;
        background: #FFFFFF;
        border: 1px solid var(--line);
        box-shadow: var(--shadow-card);
    }
    .sz-menu li:hover > .sub-menu, .sz-menu li:focus-within > .sub-menu { display: block; }

    .fs-hero { min-height: 640px; }
    .fs-hero__title { font-size: 3.2rem; }
    .fs-hero__inner { padding: 8rem 0 4.6rem; }
    .fs-band { padding: 6.5rem 0; }
    .sz-section-title { font-size: 2.1rem; }
    .sz-page-title { font-size: 2.6rem; }
    .sz-divider { height: 34px; }

    /* Таймлайн по обе стороны оси */
    .fs-timeline { padding: 0; }
    .fs-timeline::before { left: 50%; margin-left: -1px; }
    .fs-timeline__item { display: flex; margin-bottom: 1rem; }
    .fs-timeline__item.is-left { justify-content: flex-start; }
    .fs-timeline__item.is-right { justify-content: flex-end; }
    .fs-timeline__card { width: 45%; }
    .fs-timeline__dot { left: 50%; margin-left: -7px; }

    .fs-pc { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; }
    .fs-pc__col--pro { padding-right: 2.8rem; }
    .fs-pc__col--con { padding-left: 2.8rem; border-left: 1px solid rgba(216, 224, 232, .25); }

    .fs-topics { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.4rem; }
    .fs-topic { padding: 2rem 1.8rem; }

    .card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        gap: 0;
    }
    .layout-single > .content-area { width: 85%; }

    .sz-footer__cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
}

/* На узких экранах золотая точка остаётся внутри поля */
@media (max-width: 599px) {
    .sz-section-title::before { left: -1.2rem; }
    .shell--front { width: min(90%, 1220px); }
    .entry-content h2 { padding-left: .9rem; }
    .entry-content h2::before { left: 0; }
    .sz-comments__title, .comment-reply-title { padding-left: .9rem; }
    .sz-comments__title::before, .comment-reply-title::before { left: 0; }
    .fs-pc__card { padding: 1rem 1.1rem; }
    .comment-respond { padding: 1.2rem 1.1rem; }
    .sz-comments__list .children { padding-left: .8rem; }
}
