/*
Theme Name: dds_5528p.com
Theme URI: https://5528p.com/
Author: Артём Зимин
Description: Тема «Стальной контур» — скандинавский минимализм с холодной индустриальной нотой для экспертного блога о лидогенерации и поисковом трафике в недвижимости.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: stkontur
*/

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

:root {
    --bg-main: #F4F6F8;
    --bg-alt: #E8ECF1;
    --bg-head: #FFFFFF;
    --bg-foot: #1B2A3A;
    --bg-side: #EDF1F5;
    --ink: #1B2A3A;
    --accent: #2F6FED;
    --accent-dark: #2A63D5;
    --accent-2: #00B3A4;
    --accent-2-dark: #009C90;
    --muted: #6B7A8D;
    --hair: #C5CED8;
    --line: #E0E6ED;
    --card-shadow: 0 4px 12px rgba(27, 42, 58, 0.08);
    --card-shadow-up: 0 10px 24px rgba(27, 42, 58, 0.14);
    --font-head: "Inter Tight", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Inter", "Source Sans 3", "Segoe UI", "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-main);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='280' viewBox='0 0 420 280'%3E%3Cg fill='none' stroke='%232F6FED' stroke-width='10' opacity='0.05'%3E%3Cpath d='M20 250 L130 150 L215 200 L390 40'/%3E%3Cpath d='M300 40 H390 V130'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(224, 230, 237, 0.4) 0, rgba(224, 230, 237, 0.4) 1px, transparent 1px, transparent 24px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px bottom -20px, top left;
    background-attachment: fixed, fixed;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

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

.site-main {
    display: block;
    padding: 2.4rem 0 3.4rem;
}

/* Цветная полоса сверху страницы */
.edge-line {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* ==================================================
   2. Типографика
   ================================================== */

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

h1 {
    font-size: 3.2rem;
    font-weight: 700;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    font-weight: 600;
}

h4 {
    font-size: 1.16rem;
    font-weight: 600;
}

p {
    margin: 0 0 1.1em;
}

.entry-body h2,
.entry-body h3 {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-top: 1.7em;
}

.entry-body h2::before,
.entry-body h3::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease, text-decoration-thickness 0.2s ease;
}

a:hover,
a:focus {
    color: var(--accent-2-dark);
    text-decoration-thickness: 2px;
}

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

li {
    margin-bottom: 0.45em;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.5rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent-2);
    border-radius: 0 8px 8px 0;
}

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

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

pre {
    background: #101B27;
    color: #E5ECF4;
    padding: 1.1rem 1.2rem;
    border-radius: 8px;
    overflow-x: auto;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--hair);
    background: #fff;
}

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

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

/* ==================================================
   3. Кнопки, чипы, разделители
   ================================================== */

.btn {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 6px;
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    border: 2px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(47, 111, 237, 0.22);
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.3);
    text-decoration: none;
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(27, 42, 58, 0.12);
    border-color: var(--accent-dark);
    color: var(--accent-dark);
    text-decoration: none;
}

.tag-chip {
    display: inline-block;
    padding: 0.18rem 0.6rem;
    border-radius: 4px;
    background: rgba(47, 111, 237, 0.12);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
}

.tag-chip:hover {
    background: rgba(47, 111, 237, 0.2);
    color: var(--accent-dark);
    text-decoration: none;
}

.dot-rule {
    width: 80px;
    height: 1px;
    margin: 2.6rem auto;
    background-image: radial-gradient(circle, var(--hair) 0 1px, transparent 1px);
    background-size: 6px 1px;
    background-repeat: repeat-x;
}

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

.site-top {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
    position: static;
}

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

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

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

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

.brand-mark {
    display: block;
}

.brand-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.brand-name {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-tagline {
    font-size: 0.82rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.15rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-switch {
    display: none;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 6px;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

.nav-switch-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--ink);
    margin: 3px 0;
}

.nav-switch-label {
    margin-left: 6px;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 1.4rem;
    min-width: 0;
}

.primary-list {
    display: flex;
    align-items: center;
    gap: 1.3rem;
    list-style: none;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.primary-list li {
    margin: 0;
    position: relative;
}

.primary-list a {
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    padding: 0.3rem 0;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

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

.primary-list .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 210px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--card-shadow);
    padding: 0.5rem 0.8rem;
    list-style: none;
    z-index: 20;
}

.primary-list li:hover > .sub-menu {
    display: block;
}

.nav-search {
    max-width: 260px;
    min-width: 0;
}

.nav-search .search-label {
    display: none;
}

.nav-search .search-submit {
    padding: 0.55rem 0.9rem;
    font-size: 0.9rem;
}

/* ==================================================
   5. Раскладки
   ================================================== */

.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;
    gap: 2.4rem;
    align-items: start;
}

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

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

.trail a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px solid var(--hair);
}

.trail a:hover {
    color: var(--accent);
    border-bottom-color: var(--accent);
}

.trail-sep {
    color: var(--hair);
    margin: 0 0.25rem;
}

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

.page-title {
    font-size: 2.6rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.page-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

.page-desc {
    color: var(--muted);
}

.empty-note {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.4rem 1.5rem;
    color: var(--muted);
    margin: 0;
}

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

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

.card-grid-list {
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}

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

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--card-shadow-up);
}

.card-thumb {
    display: block;
    width: 100%;
}

.card-thumb a {
    display: block;
}

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

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

.post-meta {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    flex-wrap: wrap;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.card-title {
    font-size: 1.24rem;
    margin: 0 0 0.6rem;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.97rem;
    margin-bottom: 1rem;
}

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

.card-excerpt img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 0 0 0.6em;
}

.card-excerpt figure {
    margin: 0 0 0.6em;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 2px solid rgba(47, 111, 237, 0.35);
    padding-bottom: 2px;
}

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

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

.front .fs {
    padding: 2.8rem 2.2rem;
    border-radius: 8px;
}

.front .fs-latest {
    padding-left: 0;
    padding-right: 0;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(224, 230, 237, 0.6) 0, rgba(224, 230, 237, 0.6) 1px, transparent 1px, transparent 24px);
}

.fs-title {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    font-size: 1.9rem;
    margin-bottom: 1.6rem;
}

.fs-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

/* Блок 1 — hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    min-height: 430px;
    display: flex;
    align-items: flex-end;
    background: var(--bg-foot);
}

.fs-hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.fs-hero-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(15deg, #1B2A3A 8%, rgba(27, 42, 58, 0.82) 45%, rgba(27, 42, 58, 0.15) 100%);
}

.fs-hero-body {
    position: relative;
    z-index: 2;
    padding: 3rem 2.4rem;
    max-width: 760px;
    min-width: 0;
}

.fs-hero-mark {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent-2);
    border-left: 3px solid var(--accent-2);
    padding-left: 10px;
    margin-bottom: 1rem;
}

.fs-hero-title {
    color: #fff;
    margin-bottom: 0.7rem;
}

.fs-hero-sub {
    color: #D6DEE8;
    font-size: 1.05rem;
    margin-bottom: 1.6rem;
}

/* Блок 2 — статистика */
.figures-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}

.figure-cell {
    min-width: 0;
    padding: 0.4rem 1.4rem;
    border-left: 1px solid var(--hair);
}

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

.figure-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--accent);
    letter-spacing: -0.03em;
}

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

/* Блок 3 — сетка карточек с иконками */
.tile-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
}

.tile {
    min-width: 0;
    background: var(--bg-main);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: none;
    padding: 1.7rem 1.6rem;
    transition: border-color 0.25s ease;
}

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

.tile-icon {
    display: block;
    margin-bottom: 1rem;
}

.tile-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.tile-text {
    color: var(--muted);
    font-size: 0.97rem;
    margin: 0;
}

/* Блок 4 — акцентная цитата */
.fs-claim {
    background: var(--bg-foot);
    padding: 2.8rem 2.4rem;
}

.claim-body {
    margin: 0;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--accent-2);
    background: none;
    border-radius: 0;
}

.claim-body p {
    margin: 0;
    color: var(--bg-main);
    font-family: var(--font-head);
    font-size: 1.6rem;
    line-height: 1.4;
    font-weight: 600;
}

/* ==================================================
   8. Запись и страница
   ================================================== */

.entry {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 2.2rem 2.2rem 2.4rem;
    margin-bottom: 2rem;
}

.entry-head {
    margin-bottom: 1.4rem;
}

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
}

.entry-media {
    margin: 0 0 1.6rem;
}

.entry-media img {
    display: block;
    width: 100%;
    border-radius: 8px;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}

.entry-body img {
    display: block;
    border-radius: 8px;
}

.entry-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

.page-links {
    margin-top: 1.4rem;
    font-family: var(--font-head);
}

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

.entry-nav-link {
    display: block;
    min-width: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 1.1rem 1.3rem;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.entry-nav-link:hover {
    transform: translateY(-2px);
    box-shadow: var(--card-shadow-up);
}

.entry-nav-link.next {
    text-align: right;
}

.entry-nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.entry-nav-title {
    display: block;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

.error-box {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 2rem 2.2rem;
}

.error-box .search-box {
    margin: 1.4rem 0;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border-radius: 8px;
    padding: 1.5rem 1.5rem 0.6rem;
}

.sidebar .widget {
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.12rem;
    color: var(--ink);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.9rem;
}

.sidebar .widget-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

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

.sidebar li {
    margin-bottom: 0.8rem;
    padding-bottom: 0.8rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

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

.sidebar a {
    color: var(--ink);
    text-decoration: none;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
}

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

.sidebar .post-date {
    display: block;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--muted);
    margin-top: 0.2rem;
}

.sidebar p {
    color: var(--ink);
    font-size: 0.97rem;
}

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

.site-bottom {
    background: var(--bg-foot);
    color: #C9D4E0;
    padding: 3rem 0 1.8rem;
}

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

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

.site-bottom .widget {
    margin-bottom: 1.2rem;
    color: #C9D4E0;
}

.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 1.08rem;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 0.9rem;
}

.site-bottom .widget-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

.site-bottom p {
    color: #C9D4E0;
    font-size: 0.95rem;
}

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

.site-bottom li {
    margin-bottom: 0.7rem;
}

.site-bottom a {
    color: #E4EBF3;
    text-decoration: none;
    font-size: 0.95rem;
    border-bottom: 1px solid rgba(228, 235, 243, 0.25);
}

.site-bottom a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--accent-2);
}

.site-bottom .post-date {
    display: block;
    font-size: 0.82rem;
    color: #93A5B8;
}

.bottom-line {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(197, 206, 216, 0.22);
    font-size: 0.88rem;
    color: #93A5B8;
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

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

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

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

.comments-zone .pagination,
.comments-zone .nav-links {
    display: flex;
    gap: 0.5rem;
    margin-top: 1.4rem;
    flex-wrap: wrap;
}

/* ==================================================
   12. Поиск и формы
   ================================================== */

.search-box {
    display: block;
}

.search-label {
    display: block;
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.search-row {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.search-input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

.site-bottom .search-input {
    border-color: rgba(197, 206, 216, 0.3);
}

/* ==================================================
   13. Комментарии
   ================================================== */

.comments-zone {
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--card-shadow);
    padding: 2rem 2.2rem 2.2rem;
}

.comments-title {
    font-size: 1.5rem;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.comments-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 1.2em;
    background: var(--accent-2);
    margin-top: 0.08em;
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children {
    margin-left: 1.6rem;
    padding-left: 1.2rem;
    border-left: 1px solid var(--line);
}

.comment-item {
    margin-bottom: 1.4rem;
}

.comment-inner {
    background: var(--bg-main);
    border-radius: 8px;
    padding: 1.1rem 1.3rem;
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
}

.comment-date {
    font-size: 0.82rem;
    color: var(--muted);
}

.comment-text p:last-child {
    margin-bottom: 0;
}

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.9rem;
}

.comment-pending {
    color: var(--accent-2-dark);
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 1.8rem;
}

.comment-reply-title {
    font-size: 1.3rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.97rem;
}

.comment-form textarea {
    resize: vertical;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(47, 111, 237, 0.15);
}

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

.form-submit input[type="submit"] {
    display: inline-block;
    padding: 0.78rem 1.5rem;
    border-radius: 6px;
    border: 2px solid transparent;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 111, 237, 0.3);
}

/* ==================================================
   14. Cookie-уведомление
   ================================================== */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
    background: var(--bg-foot);
    color: #D7E0EA;
    padding: 1rem 1.6rem;
    border-top: 3px solid var(--accent);
}

.cookie-text {
    flex: 1 1 320px;
    min-width: 0;
    margin: 0;
    font-size: 0.92rem;
}

.cookie-accept {
    flex: 0 0 auto;
}

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

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

    h1 {
        font-size: 2.4rem;
    }

    .page-title,
    .entry-title {
        font-size: 2rem;
    }

    .nav-switch {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-nav {
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 1rem;
        width: 100%;
        padding-top: 1rem;
        border-top: 1px solid var(--line);
    }

    .primary-nav.is-open {
        display: flex;
    }

    .primary-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
    }

    .primary-list .sub-menu {
        position: static;
        display: block;
        box-shadow: none;
        border: none;
        padding: 0.3rem 0 0 0.9rem;
    }

    .nav-search {
        max-width: none;
    }

    .layout-single {
        width: 100%;
    }

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

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

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

    .figures-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 1.4rem 0;
    }

    .figure-cell:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }

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

@media (max-width: 600px) {
    h1 {
        font-size: 1.95rem;
    }

    .page-title,
    .entry-title {
        font-size: 1.75rem;
    }

    .fs-title {
        font-size: 1.5rem;
    }

    .site-main {
        padding: 1.6rem 0 2.4rem;
    }

    .front .fs {
        padding: 1.8rem 1.4rem;
    }

    .front .fs-latest {
        padding-left: 0;
        padding-right: 0;
    }

    .fs-hero {
        min-height: 360px;
        padding: 0;
    }

    .fs-hero-body {
        padding: 2rem 1.4rem;
    }

    .fs-claim {
        padding: 1.8rem 1.4rem;
    }

    .claim-body {
        padding-left: 16px;
    }

    .claim-body p {
        font-size: 1.22rem;
    }

    .card-grid,
    .tile-grid,
    .figures-row,
    .bottom-grid,
    .entry-nav {
        grid-template-columns: minmax(0, 1fr);
    }

    .figure-cell {
        border-left: none;
        padding-left: 0;
    }

    .figure-num {
        font-size: 2.5rem;
    }

    .entry,
    .comments-zone,
    .error-box {
        padding: 1.4rem 1.3rem 1.6rem;
    }

    .entry-nav-link.next {
        text-align: left;
    }

    .comment-list .children {
        margin-left: 0.6rem;
        padding-left: 0.8rem;
    }

    .search-row {
        flex-wrap: wrap;
    }

    .search-row .btn {
        width: 100%;
    }

    .cookie-note {
        padding: 0.9rem 1.1rem;
    }
}
