/*
Theme Name: dds_rks31.ru
Theme URI: https://rks31.ru/
Author: Краснова Дарья Краснова Дарья
Description: Информационная тема для сайта о жилье: аренда, покупка, документы. Холодная палитра, городской минимализм, адаптивная вёрстка.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: zhillive
*/

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

:root {
    --bg: #F2F5F9;
    --bg-alt: #FFFFFF;
    --deep: #0B1A2F;
    --steel: #1E3A5F;
    --side: #E8EDF4;
    --ink: #1A2634;
    --muted: #7A8B9F;
    --line: #D0D9E5;
    --blue: #2E7AD6;
    --ice: #00B4D8;
    --gold: #F39C12;
    --shell: min(92%, 1180px);
    --font-head: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Inter", "Segoe UI", Arial, sans-serif;
}

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

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

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(46, 122, 214, 0.06) 0 1px, transparent 1px 32px),
        repeating-linear-gradient(90deg, rgba(46, 122, 214, 0.06) 0 1px, transparent 1px 32px);
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.72;
}

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

a {
    color: var(--blue);
    text-decoration: none;
    transition: color 0.18s ease, border-color 0.18s ease;
}

a:hover,
a:focus {
    color: var(--ice);
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    color: var(--deep);
    line-height: 1.22;
    margin: 0 0 0.7em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: 0.02em;
}

h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.05em;
}

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

li {
    margin-bottom: 0.35em;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.3rem 3rem 1.3rem 1.6rem;
    background: var(--steel);
    color: #fff;
    position: relative;
    border-radius: 2px;
}

blockquote p {
    margin: 0 0 0.6em;
    background: none;
}

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

blockquote::after {
    content: "";
    position: absolute;
    right: 1.2rem;
    top: 50%;
    width: 14px;
    height: 14px;
    margin-top: -7px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
    transform: rotate(45deg);
}

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

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

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

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

pre {
    background: var(--deep);
    color: #E5EDF7;
    padding: 1rem 1.1rem;
    overflow: auto;
    border-radius: 6px;
}

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

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

/* ==========================================================================
   2. Кнопки и служебные элементы
   ========================================================================== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    border-radius: 0;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
    transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease, color 0.16s ease;
}

.btn:hover,
.btn:focus {
    color: #fff;
    transform: translateY(2px);
    box-shadow: 0 3px 0 0 var(--ice);
}

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

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

.btn-light {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--deep);
}

.btn-light:hover,
.btn-light:focus {
    color: var(--deep);
}

.sec-head {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    margin: 0 0 1.5rem;
}

.sec-head h2,
.sec-head h1 {
    margin: 0;
    font-size: 1.85rem;
    transform: skewX(-5deg);
    letter-spacing: 0.01em;
}

.sec-head::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: var(--blue);
}

.sec-head::after {
    content: "";
    flex: 1 1 auto;
    min-width: 0;
    height: 1px;
    background: var(--line);
}

.seam {
    border: 0;
    border-top: 1px dashed var(--line);
    margin: 3rem 0;
}

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

.top-strip {
    height: 5px;
    background: var(--gold);
}

.site-head {
    background: var(--deep);
    color: #E6EDF6;
    padding: 1.4rem 0;
}

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.2rem;
    flex-wrap: wrap;
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.18rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.01em;
    line-height: 1.3;
}

a.brand-name:hover {
    color: var(--gold);
}

.brand-desc {
    display: block;
    font-size: 0.82rem;
    color: #9DB2CB;
    line-height: 1.45;
    margin-top: 0.15rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid #33506F;
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    padding: 0.55rem 0.95rem;
    cursor: pointer;
}

.site-nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 1.35rem;
    margin: 0;
    padding: 0;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: inline-block;
    color: #D6E2F0;
    font-family: var(--font-head);
    font-size: 0.97rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #fff;
    border-bottom-color: var(--gold);
}

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

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

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

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

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

.crumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

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

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

.crumbs-sep {
    color: var(--muted);
    margin: 0 0.28rem;
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 5px 5px 0 0 rgba(11, 26, 47, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--blue);
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 9px 9px 0 0 rgba(11, 26, 47, 0.12);
}

.card:hover::before {
    opacity: 1;
}

.card-thumb {
    position: relative;
    display: block;
}

.card-thumb a {
    display: block;
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 45%;
    background: linear-gradient(to top, rgba(11, 26, 47, 0.42), rgba(11, 26, 47, 0));
    pointer-events: none;
}

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.15rem 1.25rem 1.35rem;
}

.card-meta {
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.card-title {
    font-size: 1.16rem;
    margin: 0 0 0.6rem;
    line-height: 1.32;
}

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

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

.card-excerpt {
    color: #3C4B5C;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

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

.no-posts {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.7rem;
}

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

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

.front-section {
    padding: 2.8rem 0;
}

/* 6.1 Hero */

.hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: linear-gradient(120deg, #0B1A2F 0%, #1E3A5F 100%);
    color: #fff;
    padding: 3.4rem 2.6rem;
    margin-top: 0.6rem;
}

.hero-map {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.28;
    filter: grayscale(60%);
    display: block;
    z-index: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    max-width: 640px;
}

.hero h1 {
    color: #fff;
    font-size: 3.5rem;
    margin: 0 0 1rem;
    transform: skewX(-4deg);
    letter-spacing: 0.03em;
}

.hero-lead {
    font-size: 1.1rem;
    color: #C9D9EC;
    margin-bottom: 1.7rem;
}

.hero-tag {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--gold);
    border: 1px solid rgba(243, 156, 18, 0.55);
    padding: 0.3rem 0.8rem;
    margin-bottom: 1.3rem;
}

.hero-plan {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 320px;
    height: 320px;
    opacity: 0.22;
    z-index: 1;
    pointer-events: none;
}

.hero-bubbles {
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
}

.hero-bubbles span {
    position: absolute;
    display: block;
    border-radius: 50%;
    border: 1px solid rgba(0, 180, 216, 0.4);
}

.hero-bubbles span:nth-child(1) { width: 140px; height: 140px; right: 12%; top: 12%; }
.hero-bubbles span:nth-child(2) { width: 80px; height: 80px; right: 32%; bottom: 18%; border-color: rgba(243, 156, 18, 0.35); }
.hero-bubbles span:nth-child(3) { width: 200px; height: 200px; right: -40px; top: 40%; }

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

.road {
    position: relative;
    padding-left: 2.4rem;
    margin: 0;
    list-style: none;
}

.road::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    border-left: 2px dashed var(--blue);
}

.road-item {
    position: relative;
    margin: 0 0 1.2rem;
    min-width: 0;
}

.road-item::before {
    content: "";
    position: absolute;
    left: -2.4rem;
    top: 1.5rem;
    width: 16px;
    height: 16px;
    background: var(--bg-alt);
    border: 3px solid var(--blue);
    border-radius: 50%;
}

.road-card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.15rem 1.4rem;
    box-shadow: 5px 5px 0 0 rgba(11, 26, 47, 0.05);
}

.road-card h3 {
    margin: 0 0 0.35rem;
    font-size: 1.14rem;
}

.road-card p {
    margin: 0;
    color: #3C4B5C;
    font-size: 0.95rem;
}

.road-step {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.74rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 0.3rem;
}

/* 6.3 Статистика-печати */

.stamps {
    background: linear-gradient(120deg, #0B1A2F 0%, #1E3A5F 100%);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 1.6rem;
    color: #fff;
}

.stamp {
    text-align: center;
    min-width: 0;
}

.stamp-circle {
    width: 118px;
    height: 118px;
    margin: 0 auto 0.9rem;
    border: 3px solid var(--gold);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--font-head);
    font-size: 1.7rem;
    font-weight: 700;
    color: #fff;
    background: rgba(243, 156, 18, 0.1);
    transform: rotate(-6deg);
    box-shadow: inset 0 0 0 6px rgba(255, 255, 255, 0.06);
}

.stamp:nth-child(even) .stamp-circle {
    transform: rotate(5deg);
    border-color: var(--ice);
    background: rgba(0, 180, 216, 0.1);
}

.stamp-label {
    color: #B9CBE0;
    font-size: 0.9rem;
    display: block;
    line-height: 1.5;
}

/* 6.4 Глоссарий */

.glossary {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.8rem 2rem;
    box-shadow: 5px 5px 0 0 rgba(11, 26, 47, 0.05);
}

.gloss-row {
    display: grid;
    grid-template-columns: minmax(0, 34%) minmax(0, 66%);
    gap: 1.4rem;
    padding: 1.05rem 0;
    border-bottom: 1px dashed var(--line);
}

.gloss-row:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.gloss-row:first-child {
    padding-top: 0;
}

.gloss-term {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.08rem;
    color: var(--deep);
    min-width: 0;
}

.gloss-def {
    color: #3C4B5C;
    font-size: 0.96rem;
    min-width: 0;
}

.front-intro {
    color: #43536A;
    margin-bottom: 1.6rem;
    max-width: 760px;
}

.front-cta {
    margin-top: 1.8rem;
    text-align: center;
}

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

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

.entry-title {
    font-size: 2.3rem;
    margin: 0 0 0.6rem;
}

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

.entry-meta span + span::before {
    content: "•";
    margin: 0 0.5rem;
    color: var(--line);
}

.entry-thumb {
    margin: 0 0 1.8rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
    border: 1px solid var(--line);
}

.entry-content {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.9rem 2rem;
    box-shadow: 5px 5px 0 0 rgba(11, 26, 47, 0.05);
}

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

.entry-content img {
    display: block;
    border-radius: 6px;
    height: auto;
}

.entry-content a {
    border-bottom: 1px dashed transparent;
}

.entry-content a:hover {
    border-bottom-color: var(--ice);
}

.entry-tags {
    margin-top: 1.6rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    background: var(--side);
    color: var(--steel);
    padding: 0.2rem 0.65rem;
    margin: 0 0.3rem 0.4rem 0;
    border: 1px solid var(--line);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 1.8rem;
}

.post-nav a {
    flex: 1 1 240px;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 0.9rem 1.1rem;
    color: var(--deep);
    font-family: var(--font-head);
    font-size: 0.95rem;
}

.post-nav a:hover {
    border-color: var(--blue);
    color: var(--blue);
}

.post-nav small {
    display: block;
    color: var(--muted);
    font-family: var(--font-body);
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.25rem;
}

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

.sidebar {
    min-width: 0;
}

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

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--deep);
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    border-bottom: 2px solid var(--blue);
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    color: var(--ink);
    font-size: 0.94rem;
}

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

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

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

.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #5E7189;
    margin-top: 0.15rem;
}

.sidebar .widget p {
    color: var(--ink);
    font-size: 0.94rem;
    background: none;
}

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

.site-foot {
    position: relative;
    background: var(--deep);
    color: #C6D5E6;
    padding: 2.8rem 0 1.6rem;
    overflow: hidden;
}

.foot-plan {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 300px;
    height: 300px;
    opacity: 0.16;
    pointer-events: none;
}

.foot-cols {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

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

.site-foot .widget {
    color: #C6D5E6;
    font-size: 0.95rem;
}

.site-foot .widget-title {
    color: #fff;
    font-size: 1.02rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #24405F;
}

.site-foot .widget p {
    color: #C6D5E6;
    background: none;
}

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

.site-foot .widget li {
    padding: 0.34rem 0;
    color: #C6D5E6;
}

.site-foot .widget a {
    color: #D9E5F2;
}

.site-foot .widget a:hover {
    color: var(--gold);
}

.site-foot .widget .post-date {
    display: block;
    color: #8FA6C0;
    font-size: 0.78rem;
}

.foot-bottom {
    position: relative;
    z-index: 2;
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px dashed #27415F;
    font-size: 0.86rem;
    color: #93A9C2;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    background: #fff;
    border: 1px solid var(--line);
    color: var(--steel);
    font-family: var(--font-head);
    font-size: 0.95rem;
    transition: background 0.16s ease, color 0.16s ease, border-color 0.16s ease;
}

.pager a.page-numbers:hover {
    background: var(--blue);
    border-color: var(--blue);
    color: #fff;
}

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

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

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

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

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

.search-form input[type="search"]:focus {
    outline: 2px solid var(--ice);
    outline-offset: 1px;
}

.comments-area {
    margin-top: 2.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.7rem 1.9rem;
}

.comments-title {
    font-size: 1.3rem;
    margin-bottom: 1.2rem;
}

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

.comment-list ol.children {
    list-style: none;
    margin: 1rem 0 0 1.2rem;
    padding-left: 1.1rem;
    border-left: 2px dashed var(--line);
}

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

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
    color: var(--deep);
}

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

.comment-text p {
    background: none;
}

.comment-reply a {
    font-size: 0.86rem;
}

.comment-hold {
    color: var(--gold);
    font-size: 0.88rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
    margin-bottom: 0.9rem;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--blue);
    background: var(--blue);
    color: #fff;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%);
}

.comment-form .submit:hover {
    box-shadow: 0 3px 0 0 var(--ice);
}

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

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

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

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
    background: none;
}

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

.cookie-accept {
    flex: 0 0 auto;
    background: var(--gold);
    border: 1px solid var(--gold);
    color: var(--deep);
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.6rem 1.4rem;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%);
}

.cookie-accept:hover {
    box-shadow: 0 3px 0 0 var(--ice);
}

/* ==========================================================================
   13. 404
   ========================================================================== */

.err-box {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 2.2rem 2.2rem;
    text-align: center;
    box-shadow: 5px 5px 0 0 rgba(11, 26, 47, 0.05);
}

.err-code {
    font-family: var(--font-head);
    font-size: 4.5rem;
    font-weight: 700;
    color: var(--blue);
    line-height: 1;
    margin-bottom: 0.6rem;
}

.err-box .search-form {
    max-width: 460px;
    margin: 1.4rem auto 1.5rem;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero h1 { font-size: 2.6rem; }

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

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

    .gloss-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.4rem;
    }
}

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

    h1 { font-size: 2.1rem; }
    h2 { font-size: 1.6rem; }

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

    .site-nav {
        order: 3;
        flex: 1 1 100%;
        display: none;
        margin-top: 0.9rem;
        border-top: 1px solid #24405F;
        padding-top: 0.7rem;
    }

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

    .site-nav ul {
        flex-direction: column;
        gap: 0;
    }

    .site-nav li {
        border-bottom: 1px dashed #24405F;
    }

    .site-nav a {
        display: block;
        padding: 0.6rem 0;
        border-bottom: 0;
    }

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

    .hero {
        padding: 2.2rem 1.4rem;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .hero-plan {
        width: 200px;
        height: 200px;
        right: -50px;
        bottom: -70px;
    }

    .stamps {
        padding: 1.9rem 1.4rem;
    }

    .stamp-circle {
        width: 100px;
        height: 100px;
        font-size: 1.45rem;
    }

    .glossary {
        padding: 1.4rem 1.3rem;
    }

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

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

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

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

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

    blockquote {
        padding: 1.1rem 2.4rem 1.1rem 1.2rem;
    }

    .road {
        padding-left: 1.8rem;
    }

    .road-item::before {
        left: -1.8rem;
    }

    .road-card {
        padding: 1rem 1.1rem;
    }
}
