/*
Theme Name: dds_from37.ru
Theme URI: https://from37.ru/
Author: Судаков Тимур Судаков Тимур
Author URI: https://from37.ru/
Description: Тема для информационного проекта ApartmentAxis — аналитика и лайфхаки для выбора квартиры в мегаполисе. Дизайн-концепция «Urban Charcoal»: антрацитовый фон, архитектурная графика и холодный синий акцент.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
License: GPLv2 or later
Text Domain: axis37
*/

/* ============================================================
   Переменные
   ============================================================ */

:root {
    --bg: #121212;
    --bg-alt: #1A1D24;
    --bg-deep: #0A0C10;
    --text: #E8EDF2;
    --accent: #3B82F6;
    --steel: #8B9DC3;
    --muted: #6B7A93;
    --line: #2A3346;
    --radius: 6px;
    --radius-btn: 4px;
    --font: "Inter", "Manrope", "Segoe UI", -apple-system, BlinkMacSystemFont, 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(--font);
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(232, 237, 242, 0.04) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(90deg, rgba(232, 237, 242, 0.04) 0 1px, transparent 1px 40px);
    -webkit-font-smoothing: antialiased;
}

.frame {
    position: relative;
    min-height: 100vh;
}

.frame::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 330px;
    height: 420px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 420' fill='none' stroke='%233B82F6' stroke-width='3'%3E%3Crect x='18' y='190' width='86' height='215'/%3E%3Crect x='118' y='96' width='96' height='309'/%3E%3Crect x='228' y='150' width='80' height='255'/%3E%3Cpath d='M32 220h58M32 258h58M32 296h58M32 334h58M132 128h68M132 170h68M132 212h68M132 254h68M132 296h68M132 338h68M242 182h52M242 224h52M242 266h52M242 308h52M242 350h52'/%3E%3Cpath d='M0 405h330'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

.site-top,
.site-main,
.site-bottom {
    position: relative;
    z-index: 1;
}

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

p {
    margin: 0 0 1.05em;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    margin: 1.6em 0 0.6em;
    color: var(--text);
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

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

li {
    margin-bottom: 0.4em;
}

a {
    color: var(--steel);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.18s ease;
}

a:hover,
a:focus {
    color: var(--accent);
    text-decoration-style: solid;
}

blockquote {
    position: relative;
    margin: 1.8em 0;
    padding: 1.6rem 1.7rem;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    border: 1px solid var(--line);
    border-radius: var(--radius);
    color: var(--text);
}

blockquote::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-deep);
    color: var(--steel);
    border-radius: 4px;
}

code { padding: 0.1em 0.35em; }

pre {
    padding: 1rem 1.1rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

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

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

th {
    background: var(--bg-alt);
    color: var(--text);
    letter-spacing: 0.05em;
}

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2rem 0;
}

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

/* ============================================================
   Кнопки
   ============================================================ */

.btn,
input[type="submit"],
button[type="submit"] {
    display: inline-block;
    padding: 0.68rem 1.5rem;
    font-family: var(--font);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: #FFFFFF;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover,
.btn:focus,
input[type="submit"]:hover,
button[type="submit"]:hover {
    color: #FFFFFF;
    transform: translateY(2px);
    box-shadow: inset 0 4px 12px rgba(4, 8, 16, 0.55);
    text-decoration: none;
}

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

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--accent);
    color: #FFFFFF;
}

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

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

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

.layout-single {
    width: min(85%, 1080px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.2rem;
}

.layout-with-sidebar {
    width: min(92%, 1180px);
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.2rem;
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}

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

/* ============================================================
   Шапка
   ============================================================ */

.site-top {
    background: transparent;
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.brand-name {
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    line-height: 1.25;
}

.brand-desc {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.9rem;
    font-family: var(--font);
    font-size: 0.9rem;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

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

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

.nav-list a {
    display: inline-block;
    padding: 0.3rem 0;
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: var(--text);
    text-decoration: none;
    border-bottom: 2px solid transparent;
}

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

.nav-list .sub-menu {
    display: none;
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    min-width: 200px;
    margin: 0;
    padding: 0.6rem 0.9rem;
    list-style: none;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

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

/* ============================================================
   Секции главной
   ============================================================ */

.fs {
    padding: 3.6rem 0;
    background: var(--bg);
}

.fs-alt {
    background: var(--bg-alt);
}

.fs-inner {
    width: min(85%, 1120px);
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
}

.sec-title {
    margin: 0 0 0.9rem;
    font-size: 1.85rem;
    letter-spacing: 0.11em;
}

.sec-title::after {
    content: "";
    display: block;
    width: 33%;
    max-width: 190px;
    height: 2px;
    margin-top: 0.75rem;
    background: var(--accent);
}

.sec-lead {
    max-width: 46rem;
    margin: 0 0 1.9rem;
    color: var(--steel);
}

.sec-divider {
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='34' height='12'%3E%3Ccircle cx='4' cy='6' r='2' fill='%233B82F6'/%3E%3C/svg%3E");
    background-repeat: repeat-x;
    background-position: center;
    opacity: 0.3;
}

/* Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 5.2rem 0 4.8rem;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    opacity: 0.3;
    filter: grayscale(1) contrast(1.15);
}

.hero-inner {
    position: relative;
    z-index: 1;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.32rem 0.75rem;
    font-size: 0.78rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
}

.hero-title {
    margin: 0 0 1.1rem;
    font-size: 4.2rem;
    font-weight: 800;
    line-height: 1.03;
    letter-spacing: -0.01em;
}

.hero-lead {
    max-width: 44rem;
    margin: 0 0 1.8rem;
    padding-left: 1.1rem;
    border-left: 2px solid var(--accent);
    color: var(--steel);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
}

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

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

.rubric {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    padding: 1.6rem 1.5rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--accent);
    border-radius: var(--radius-btn);
    text-decoration: none;
    transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.rubric:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(2px);
}

.rubric svg {
    flex: 0 0 auto;
    color: inherit;
}

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

.rubric-name {
    font-size: 1.16rem;
    font-weight: 700;
    letter-spacing: 0.09em;
}

.rubric-note {
    font-size: 0.86rem;
    line-height: 1.45;
    color: var(--muted);
}

.rubric:hover .rubric-note {
    color: rgba(255, 255, 255, 0.85);
}

/* Таймлайн */

.tl {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.6rem;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    left: 0.35rem;
    top: 0.6rem;
    bottom: 0.6rem;
    border-left: 2px dashed #3A4356;
}

.tl-item {
    position: relative;
    min-width: 0;
    margin: 0 0 1.9rem;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: -2.42rem;
    top: 0.55rem;
    width: 12px;
    height: 12px;
    background: var(--bg-alt);
    border: 2px solid var(--accent);
}

.tl-num {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.24em;
    color: var(--accent);
}

.tl-head {
    margin: 0.2rem 0 0.45rem;
    font-size: 1.18rem;
    letter-spacing: 0.05em;
}

.tl-item p {
    margin: 0;
    color: var(--steel);
}

/* Текст + иллюстрация */

.split {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
}

.split-text,
.split-media {
    min-width: 0;
}

.split-media img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--bg-deep);
}

.num {
    color: var(--steel);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.accent-block {
    position: relative;
    margin-top: 1.6rem;
    padding: 1.7rem 1.7rem;
    background: linear-gradient(180deg, var(--bg-alt), var(--bg));
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.accent-block::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 24px;
    height: 24px;
    background: var(--accent);
    clip-path: polygon(0 0, 100% 0, 0 100%);
}

.accent-block p:last-child {
    margin-bottom: 0;
}

.empty-note {
    color: var(--muted);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.6rem;
    margin-bottom: 2.2rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 4px 4px 0 var(--bg-deep);
    overflow: hidden;
    transition: box-shadow 0.18s ease, border-color 0.18s ease;
}

.card:hover {
    box-shadow: 6px 6px 0 var(--bg-deep);
    border-left-color: var(--accent);
}

.card-thumb-wrap {
    position: relative;
    border-bottom: 1px solid var(--line);
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
    text-decoration: none;
}

.card-thumb-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    filter: grayscale(1) brightness(0.92) contrast(1.05);
}

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(59, 130, 246, 0.16), rgba(10, 12, 16, 0.3));
    pointer-events: none;
}

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

.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.16rem;
    line-height: 1.3;
    letter-spacing: 0.03em;
}

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

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

.card-meta,
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.meta-item::before {
    content: "\25A0";
    margin-right: 0.42rem;
    font-size: 0.72em;
    color: var(--accent);
}

.meta-item a {
    color: var(--muted);
    text-decoration: none;
}

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

.card-excerpt {
    color: var(--steel);
    font-size: 0.95rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.5rem 1.1rem;
    font-size: 0.85rem;
}

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

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

.page-title,
.entry-title {
    margin: 0 0 0.6rem;
    font-size: 2.4rem;
    line-height: 1.12;
    letter-spacing: 0.02em;
}

.page-sub {
    margin: 0;
    color: var(--steel);
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    margin-bottom: 1.6rem;
    filter: grayscale(1) brightness(0.95);
}

.entry-content h2,
.entry-content h3 {
    letter-spacing: 0.05em;
}

.entry-content img {
    display: block;
    height: auto;
    border-radius: var(--radius);
}

.entry-content ul li::marker,
.entry-content ol li::marker {
    color: var(--accent);
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.6rem;
}

.tag-link {
    padding: 0.3rem 0.7rem;
    font-size: 0.82rem;
    color: var(--steel);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    text-decoration: none;
}

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

.entry-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.2rem 0;
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    font-size: 0.9rem;
}

.entry-nav a {
    text-decoration: none;
    color: var(--steel);
}

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

.page-links {
    margin: 1.4rem 0;
    letter-spacing: 0.05em;
}

/* ============================================================
   Хлебные крошки
   ============================================================ */

.crumbs {
    margin-bottom: 1.5rem;
    font-size: 0.83rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.crumbs a {
    color: var(--steel);
    text-decoration: none;
}

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

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

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 2.6rem;
    padding: 0.5rem 0.85rem;
    text-align: center;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    text-decoration: none;
}

.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 {
    background: transparent;
    border-color: transparent;
    color: var(--muted);
}

.comments-area .navigation.pagination {
    margin: 1.6rem 0;
}

.comments-area .nav-links a,
.comments-area .nav-links .current {
    display: inline-block;
    padding: 0.4rem 0.75rem;
    margin-right: 0.4rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    text-decoration: none;
    color: var(--steel);
}

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

.sidebar {
    min-width: 0;
    padding: 1.4rem 1.4rem 0.6rem;
    background: var(--bg-alt);
    border: 1px solid rgba(139, 157, 195, 0.22);
    border-radius: var(--radius);
}

.sidebar .widget {
    margin-bottom: 1.8rem;
}

.widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.02rem;
    letter-spacing: 0.11em;
}

.widget-title::after {
    content: "";
    display: block;
    width: 34%;
    max-width: 120px;
    height: 2px;
    margin-top: 0.55rem;
    background: var(--accent);
}

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

.widget li {
    margin-bottom: 0.6rem;
    padding-left: 1.1rem;
    position: relative;
    line-height: 1.45;
}

.widget li::before {
    content: "\25A0";
    position: absolute;
    left: 0;
    top: 0;
    font-size: 0.65em;
    line-height: 2.2;
    color: var(--accent);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--text);
    font-size: 0.94rem;
}

.sidebar .widget-title {
    color: var(--text);
}

.sidebar .widget a {
    color: var(--text);
    text-decoration: none;
}

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

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

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

.site-bottom {
    padding: 3rem 0 2rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--line);
}

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

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

.site-bottom .widget,
.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .widget td {
    color: #D6DEE8;
    font-size: 0.92rem;
}

.site-bottom .widget-title {
    color: #FFFFFF;
    font-size: 0.98rem;
}

.site-bottom .widget a {
    color: #D6DEE8;
    text-decoration: none;
}

.site-bottom .widget a:hover {
    color: var(--accent);
}

.site-bottom .post-date,
.site-bottom .rss-date {
    color: var(--muted);
}

.copyright {
    margin: 2.4rem 0 0;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.84rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

/* ============================================================
   Формы
   ============================================================ */

.search-form {
    margin: 1.2rem 0;
}

.search-label {
    display: block;
    margin-bottom: 0.4rem;
    font-size: 0.84rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

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

input[type="text"],
input[type="email"],
input[type="url"],
input[type="search"],
input[type="password"],
textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.62rem 0.85rem;
    font-family: var(--font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
}

input[type="search"] {
    flex: 1 1 200px;
    width: auto;
    min-width: 0;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

::placeholder {
    color: var(--muted);
}

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

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

.comments-title {
    margin: 0 0 1.2rem;
    font-size: 1.3rem;
    letter-spacing: 0.07em;
}

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

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

.comment-body {
    margin-bottom: 1.2rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.comment-author img {
    border-radius: 4px;
    vertical-align: middle;
    margin-right: 0.5rem;
}

.comment-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.comment-metadata a,
.comment-author a {
    color: var(--steel);
    text-decoration: none;
}

.comment-reply-link {
    font-size: 0.84rem;
    letter-spacing: 0.05em;
}

.comment-form label {
    display: block;
    margin-bottom: 0.35rem;
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

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

.comment-notes,
.comment-form-cookies-consent label {
    font-size: 0.84rem;
    color: var(--muted);
}

.comment-form-cookies-consent input {
    width: auto;
    margin-right: 0.4rem;
}

/* ============================================================
   404
   ============================================================ */

.notfound-box {
    margin-top: 1.4rem;
}

.notfound-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin: 1.2rem 0 0;
}

/* ============================================================
   Cookie-баннер
   ============================================================ */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: var(--bg-deep);
    border-top: 1px solid var(--accent);
}

.cookie-text {
    margin: 0;
    min-width: 0;
    max-width: 62rem;
    font-size: 0.88rem;
    color: var(--steel);
}

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

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-flex;
    }

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

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

    .nav-list {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.4rem;
        padding: 0.8rem 0 0.3rem;
    }

    .nav-list .sub-menu {
        display: block;
        position: static;
        border: 0;
        padding: 0.2rem 0 0.2rem 1rem;
        background: transparent;
    }

    .layout-with-sidebar {
        display: block;
        width: min(92%, 1180px);
    }

    .layout-single {
        width: min(92%, 1180px);
    }

    .sidebar {
        margin-top: 2.4rem;
    }

    .fs-inner {
        width: min(92%, 1120px);
    }

    .hero-title {
        font-size: 3rem;
    }

    .split {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
    }

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

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

    .fs {
        padding: 2.6rem 0;
    }

    .fs-hero {
        padding: 3.4rem 0 3rem;
    }

    .hero-title {
        font-size: 2.25rem;
    }

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

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

    .brand-desc {
        display: none;
    }

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

    .rubric {
        padding: 1.2rem 1.2rem;
    }

    .accent-block {
        padding: 1.4rem 1.3rem;
    }

    .comments-area {
        padding: 1.3rem 1.2rem 1.1rem;
    }

    .sidebar {
        padding: 1.2rem 1.2rem 0.5rem;
    }

    .entry-nav {
        padding: 1rem 1.1rem;
    }

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

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

    .tl {
        padding-left: 2.2rem;
    }

    .tl-item::before {
        left: -2.05rem;
    }

    blockquote {
        padding: 1.3rem 1.2rem;
    }
}
