/*
Theme Name: dds_ot0do12.ru
Theme URI: https://ot0do12.ru/
Author: Анна Белова
Description: «Тёплый дом» — журнальная тема для информационно-обучающего портала о развитии и воспитании детей от рождения до 12 лет.
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: otdo12
*/

/* ---------- Служебные правила hidden ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --paper: #FFF9F0;
    --peach: #FFF1E0;
    --peach-deep: #FFE8D6;
    --white: #FFFFFF;
    --cocoa: #3D2B1F;
    --amber-pale: #FFF4E6;
    --ink: #2E1F14;
    --coral: #E07A5F;
    --coral-dark: #C96A50;
    --amber: #F2A541;
    --muted: #8A7A6B;
    --serif: "Lora", "PT Serif", Georgia, "Times New Roman", serif;
    --sans: "Source Sans 3", "Source Sans Pro", "Segoe UI", Roboto, Arial, sans-serif;
    --radius-card: 8px;
    --radius-btn: 6px;
    --shadow-card: 0 4px 12px rgba(61, 43, 31, 0.08);
    --shadow-card-hover: 0 8px 24px rgba(224, 122, 95, 0.15);
}

/* ---------- База ---------- */
*, *::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;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 1.0625rem;
    line-height: 1.7;
    background-color: var(--paper);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 240'%3E%3Cg fill='%23E07A5F' opacity='0.06'%3E%3Crect x='94' y='0' width='12' height='40' rx='6'/%3E%3Ccircle cx='100' cy='10' r='14'/%3E%3Crect x='62' y='40' width='76' height='34' rx='17'/%3E%3Crect x='44' y='80' width='112' height='38' rx='19'/%3E%3Crect x='26' y='124' width='148' height='42' rx='21'/%3E%3Crect x='8' y='172' width='184' height='40' rx='10'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(rgba(242, 165, 65, 0.08) 1.6px, transparent 2px),
        radial-gradient(rgba(242, 165, 65, 0.08) 1.6px, transparent 2px);
    background-repeat: no-repeat, repeat, repeat;
    background-size: 220px auto, 24px 24px, 24px 24px;
    background-position: right 2.5rem bottom 2.5rem, 0 0, 12px 12px;
    background-attachment: fixed, scroll, scroll;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--ink);
    line-height: 1.25;
    font-weight: 700;
    margin: 1.6em 0 0.6em;
    overflow-wrap: break-word;
    hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 4.6vw, 3.2rem); margin-top: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.15rem); }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1em; overflow-wrap: break-word; hyphens: auto; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }
li { margin-bottom: 0.35em; }

a {
    color: var(--coral);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
    transition: color .25s ease, text-decoration-color .25s ease, text-decoration-thickness .25s ease;
}
a:hover, a:focus-visible {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--amber);
}
:focus-visible { outline: 2px solid var(--coral); outline-offset: 3px; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid #E5D3BF; background: var(--white); }
th, td { border: 1px solid #E5D3BF; padding: 0.6em 0.8em; text-align: left; vertical-align: top; }
th { background: var(--peach); font-weight: 600; }

blockquote {
    margin: 1.6em 0;
    padding: 1.2em 1.4em;
    border-left: 4px solid var(--amber);
    background: var(--peach);
    border-radius: 0 var(--radius-card) var(--radius-card) 0;
    font-family: var(--serif);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

pre { overflow-x: auto; background: #2E1F14; color: #FFF4E6; padding: 1em 1.2em; border-radius: var(--radius-card); }
code { font-size: 0.92em; }

.screen-reader-text {
    position: absolute !important; width: 1px; height: 1px; overflow: hidden;
    clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--cocoa); color: var(--white); padding: 0.6em 1em; border-radius: var(--radius-btn);
}
.skip-link:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }

/* ---------- Полоса-корешок ---------- */
.spine {
    height: 4px;
    background: repeating-linear-gradient(90deg,
        var(--coral) 0 72px, var(--amber) 72px 144px, var(--cocoa) 144px 216px);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--sans);
    font-weight: 600;
    font-size: 1rem;
    line-height: 1.3;
    padding: 0.8em 1.5em;
    border: 2px solid var(--coral);
    border-radius: var(--radius-btn);
    background: var(--coral);
    color: var(--white);
    text-decoration: none;
    cursor: pointer;
    text-align: center;
    transition: background-color .25s ease, border-color .25s ease, color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.btn:hover, .btn:focus-visible {
    background: var(--coral-dark);
    border-color: var(--coral-dark);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(201, 106, 80, 0.28);
    text-decoration: none;
}
.btn-ghost { background: transparent; color: var(--coral); }

/* ---------- Шапка ---------- */
.masthead { background: var(--white); border-bottom: 1px solid rgba(242, 165, 65, 0.35); }
.masthead-row {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    padding: 1.1rem 0;
}
.brand { flex: 0 0 auto; display: block; line-height: 0; }
.brand-logo { width: 56px; height: 56px; object-fit: contain; display: block; }
.brand-text { flex: 1 1 auto; min-width: 0; }
.brand-name {
    margin: 0;
    font-family: var(--serif);
    font-size: 1.08rem;
    font-weight: 600;
    line-height: 1.35;
    max-width: 46rem;
}
.brand-name a { color: var(--ink); text-decoration: none; }
.brand-name a:hover { color: var(--coral); }
.brand-tagline {
    margin: 0.25rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.45;
    max-width: 52rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    flex: 0 0 auto;
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 0.9rem;
    border: 2px solid var(--coral);
    border-radius: var(--radius-btn);
    background: transparent;
    color: var(--coral);
    font: 600 0.95rem var(--sans);
    cursor: pointer;
}
.nav-toggle-bars, .nav-toggle-bars::before, .nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nav-toggle-bars::before, .nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.primary-nav { border-top: 1px solid #F6E6D2; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.25rem 2rem; }
.nav-list li { margin: 0; position: relative; }
.nav-list a {
    display: block;
    padding: 0.85rem 0;
    color: var(--ink);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.nav-list a:hover, .nav-list .current-menu-item > a, .nav-list .current_page_item > a {
    color: var(--coral);
    border-bottom-color: var(--amber);
}
.nav-list .sub-menu { list-style: none; margin: 0; padding: 0.4rem 1rem; }

/* ---------- Заголовки секций и точки ---------- */
.section-title, .entry-content h2, .entry-content h3, .card-title, .topic-title, .step-title, .discussion-title {
    position: relative;
}
.section-title::before, .entry-content h2::before, .entry-content h3::before, .topic-title::before, .card-title::before, .discussion-title::before {
    content: "";
    display: inline-block;
    width: 0.32em;
    height: 0.32em;
    margin-right: 0.45em;
    border-radius: 50%;
    background: var(--coral);
    vertical-align: 0.18em;
}
.section-title { margin: 0 0 1.6rem; font-size: clamp(1.8rem, 3.4vw, 2.4rem); }
.section-title::after {
    content: "";
    display: block;
    width: 72px;
    height: 2px;
    margin-top: 1rem;
    background: var(--amber);
}
.section-lead { max-width: 44rem; color: #5B4636; margin: -0.4rem 0 2rem; font-size: 1.1rem; }

/* ---------- Главная ---------- */
.front-inner { width: 85%; max-width: 1240px; margin-left: auto; margin-right: auto; }
.front-section { padding: 4rem 0; position: relative; }
.tone-main { background: transparent; }
.tone-alt { background-color: var(--peach); }
.tone-dark { background-color: var(--cocoa); color: #FBEFE2; }
.tone-accent {
    background-color: var(--peach);
    background-image:
        radial-gradient(rgba(242, 165, 65, 0.13) 1.6px, transparent 2px),
        linear-gradient(160deg, var(--peach) 0%, var(--peach-deep) 100%);
    background-size: 16px 16px, 100% 100%;
}
.front-section + .front-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 8%;
    right: 8%;
    height: 1px;
    background: rgba(242, 165, 65, 0.3);
}
.tone-dark::before, .tone-dark + .front-section::before { display: none; }

.dot-divider { display: flex; justify-content: center; gap: 0.7rem; padding: 2.2rem 0 0; }
.dot-divider span { width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }
.dot-divider + .front-section::before { display: none; }

/* Hero */
.hero {
    position: relative;
    min-height: 34rem;
    display: flex;
    align-items: center;
    color: var(--white);
    border-bottom: 3px solid var(--amber);
    overflow: hidden;
}
.hero-img {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.hero-veil { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(61, 43, 31, 0.4); }
.hero-inner { position: relative; z-index: 1; padding: 5rem 0; }
.hero-title { color: var(--white); font-size: 3.2rem; max-width: 15ch; margin-bottom: 1.2rem; text-shadow: 0 2px 14px rgba(46, 31, 20, 0.35); }
.hero-lead { max-width: 38rem; font-size: 1.2rem; line-height: 1.6; margin-bottom: 2rem; color: #FFF4E6; text-shadow: 0 1px 8px rgba(46, 31, 20, 0.4); }

/* Сетка направлений */
.topic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.topic {
    min-width: 0;
    background: var(--white);
    border-top: 3px solid var(--amber);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    padding: 2rem 1.8rem 1.6rem;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-top-color: var(--coral); }
.topic-icon {
    display: flex; align-items: center; justify-content: center;
    width: 68px; height: 68px; border-radius: 50%;
    background: var(--peach); border: 2px solid var(--coral);
    margin-bottom: 1.2rem;
}
.topic-icon svg { display: block; }
.topic-title { margin: 0 0 0.6rem; font-size: 1.35rem; }
.topic p { margin: 0; color: #4A3628; }

.section-after { margin: 2.4rem 0 0; text-align: center; }
.empty-note { color: var(--muted); font-style: italic; }

/* Цитата */
.tone-dark { padding: 5.5rem 0; }
.quote-block {
    margin: 0 auto;
    max-width: 50rem;
    padding: 0.4rem 0 0.4rem 2.4rem;
    border-left: 4px solid var(--amber);
}
.quote-block blockquote {
    margin: 0 0 1.6rem;
    padding: 0;
    border: 0;
    background: none;
    font-style: normal;
}
.quote-block blockquote p {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3vw, 2.15rem);
    line-height: 1.45;
    color: var(--white);
    margin: 0;
}
.glow-text {
    background: linear-gradient(90deg, var(--coral), var(--amber));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-style: italic;
}
.quote-block figcaption { color: var(--muted); font-size: 1.05rem; font-weight: 600; }

/* Шаги */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; }
.step { min-width: 0; position: relative; margin: 0; }
.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 29px;
    left: 74px;
    right: -1.6rem;
    border-top: 2px dashed var(--amber);
}
.step-num {
    display: flex; align-items: center; justify-content: center;
    width: 60px; height: 60px; border-radius: 50%;
    background: var(--coral); color: var(--white);
    font-family: var(--serif); font-weight: 700; font-size: 1.25rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 0 0 6px rgba(224, 122, 95, 0.15);
}
.step-title { margin: 0 0 0.5rem; font-size: 1.3rem; }
.step p { margin: 0; color: #4A3628; }

/* ---------- Карточки ---------- */
.post-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.8rem; }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border-top: 3px solid var(--amber);
    border-radius: var(--radius-card);
    box-shadow: var(--shadow-card);
    overflow: hidden;
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-card-hover); border-top-color: var(--coral); }
.card-thumb a { display: block; }
.card-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.card-placeholder {
    display: block;
    aspect-ratio: 16 / 9;
    background-color: var(--peach);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cg fill='%23E07A5F' opacity='0.55'%3E%3Ccircle cx='32' cy='8' r='4'/%3E%3Crect x='22' y='14' width='20' height='9' rx='4.5'/%3E%3Crect x='12' y='35' width='40' height='11' rx='5.5'/%3E%3C/g%3E%3Cg fill='%23F2A541' opacity='0.7'%3E%3Crect x='17' y='24' width='30' height='10' rx='5'/%3E%3C/g%3E%3Crect x='8' y='48' width='48' height='10' rx='3' fill='%233D2B1F' opacity='0.35'/%3E%3C/svg%3E"),
        radial-gradient(rgba(242, 165, 65, 0.25) 1.5px, transparent 2px);
    background-repeat: no-repeat, repeat;
    background-size: 72px 72px, 14px 14px;
    background-position: center, 0 0;
}
.card-body { flex: 1; display: flex; flex-direction: column; min-width: 0; padding: 1.3rem 1.4rem 1.5rem; }
.card-title { font-size: 1.25rem; margin: 0.4rem 0 0.6rem; }
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--coral); }
.card-excerpt { color: #4A3628; font-size: 0.98rem; margin-bottom: 1rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { margin-top: auto; align-self: flex-start; font-weight: 600; }

.entry-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; color: var(--muted); font-size: 0.88rem; }
.entry-tag {
    display: inline-block;
    padding: 0.1em 0.65em;
    border-radius: 4px;
    background: rgba(242, 165, 65, 0.18);
    color: #7A4E12;
    font-weight: 600;
    text-decoration: none;
}
.entry-tag:hover { background: var(--amber); color: var(--ink); text-decoration: none; }

/* ---------- Внутренние страницы ---------- */
.page-wrap { padding: 2rem 0 4rem; }
.crumbs { font-size: 0.9rem; color: var(--muted); margin-bottom: 2rem; overflow-wrap: break-word; }
.crumbs a { color: var(--coral); }
.crumbs-sep { margin: 0 0.35em; color: var(--amber); }
.crumbs-current { color: var(--ink); }

.layout-single { display: block; }
.layout-single .content-area { width: 85%; margin-left: auto; margin-right: auto; }
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }

.page-head { margin-bottom: 2.2rem; }
.page-title { margin: 0 0 0.6rem; }
.page-head::after, .entry-head::after {
    content: ""; display: block; width: 72px; height: 2px; margin-top: 1rem; background: var(--amber);
}
.archive-note { color: var(--muted); margin-top: 0.6rem; }
.entry-head { margin-bottom: 1.8rem; }
.entry-cover { margin: 0 0 2rem; border-radius: var(--radius-card); overflow: hidden; }
.entry-cover img { width: 100%; display: block; }

.entry-content { font-size: 1.08rem; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content img { border-radius: var(--radius-card); }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 0.5em; }
.entry-content ul li::marker { color: var(--coral); }
.entry-content ol li::marker { color: var(--coral); font-weight: 700; }
.entry-content hr {
    border: 0; height: 1px; margin: 2.4em 10%;
    background: rgba(242, 165, 65, 0.3);
}
.alignleft { float: left; margin: 0.3em 1.4em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.4em; }
.aligncenter { margin-left: auto; margin-right: auto; }
.wp-caption, .wp-block-image { max-width: 100%; }

.entry-tags { margin: 2rem 0 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags a { padding: 0.2em 0.7em; border-radius: 4px; background: rgba(242, 165, 65, 0.18); color: #7A4E12; text-decoration: none; font-size: 0.92rem; }
.entry-tags a:hover { background: var(--amber); color: var(--ink); }

.post-nav {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.4rem;
    margin: 3rem 0 0; padding-top: 2rem; border-top: 1px solid rgba(242, 165, 65, 0.3);
}
.post-nav-link {
    display: block; min-width: 0; padding: 1.1rem 1.3rem; border-radius: var(--radius-card);
    background: var(--white); box-shadow: var(--shadow-card); color: var(--ink); text-decoration: none;
    font-family: var(--serif); font-weight: 600;
}
.post-nav-link span { display: block; font-family: var(--sans); font-size: 0.85rem; color: var(--muted); font-weight: 400; margin-bottom: 0.25rem; }
.post-nav-link:hover { color: var(--coral); }
.post-nav-next { grid-column: 2; text-align: right; }

/* ---------- Пагинация ---------- */
.pager { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; margin: 3rem 0 0; }
.pager .page-numbers {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.6rem; height: 2.6rem; padding: 0 0.85rem;
    border: 2px solid var(--coral); border-radius: var(--radius-btn);
    color: var(--coral); background: var(--white);
    font-weight: 600; text-decoration: none;
    transition: background-color .25s ease, color .25s ease, transform .25s ease;
}
.pager a.page-numbers:hover { background: var(--coral-dark); border-color: var(--coral-dark); color: var(--white); transform: translateY(-2px); }
.pager .page-numbers.current { background: var(--coral); color: var(--white); }
.pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.3rem; color: var(--muted); }

/* ---------- Сайдбар ---------- */
.sidebar {
    min-width: 0;
    background: var(--amber-pale);
    border-radius: var(--radius-card);
    border-top: 3px solid var(--amber);
    padding: 1.8rem 1.6rem;
    color: var(--ink);
}
.sidebar .widget { margin-bottom: 2rem; }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title { font-size: 1.25rem; margin: 0 0 1rem; color: var(--ink); }
.sidebar .widget-title::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 0.6rem; background: var(--amber); }
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed rgba(224, 122, 95, 0.35); margin: 0; }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: #2E1F14; text-decoration-color: rgba(224, 122, 95, 0.5); }
.sidebar a:hover { color: var(--coral); text-decoration-color: var(--amber); }
.sidebar .post-date, .sidebar .rss-date { display: block; color: #6E5E50; font-size: 0.85rem; }
.sidebar p { color: #2E1F14; }

/* ---------- Поиск ---------- */
.search-form { display: flex; flex-wrap: wrap; gap: 0.6rem; max-width: 32rem; margin: 1rem 0; }
.search-field {
    flex: 1 1 14rem; min-width: 0;
    padding: 0.75em 1em; font: inherit; color: var(--ink);
    background: var(--white); border: 2px solid #EBD6C0; border-radius: var(--radius-btn);
}
.search-field:focus { border-color: var(--coral); outline: none; }

/* ---------- 404 ---------- */
.lost { text-align: center; }
.lost .search-form { margin-left: auto; margin-right: auto; }
.lost-code { font-family: var(--serif); font-size: clamp(5rem, 14vw, 8rem); line-height: 1; margin: 0 0 0.5rem; color: var(--amber); }
.lost .page-title::before { display: none; }
.lost-home { margin-top: 2rem; }
.empty-block { padding: 2rem 2rem; background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }

/* ---------- Комментарии ---------- */
.discussion { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid rgba(242, 165, 65, 0.3); }
.discussion-title { margin-top: 0; }
.note-list, .note-list .children { list-style: none; margin: 0; padding: 0; }
.note-list .children { padding-left: 1.6rem; border-left: 2px solid rgba(242, 165, 65, 0.4); margin-left: 0.6rem; }
.note-body { background: var(--white); border-radius: var(--radius-card); box-shadow: var(--shadow-card); padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.note-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.6rem; }
.note-head img { border-radius: 50%; }
.note-who { min-width: 0; }
.note-author { display: block; font-weight: 700; }
.note-date { color: var(--muted); font-size: 0.85rem; }
.note-wait { color: var(--coral-dark); font-style: italic; }
.note-reply a { font-weight: 600; font-size: 0.92rem; }
.comment-respond { margin-top: 2rem; padding: 1.6rem 1.6rem; background: var(--peach); border-radius: var(--radius-card); }
.comment-reply-title { margin-top: 0; font-size: 1.4rem; }
.comment-reply-title small { font-family: var(--sans); font-size: 0.9rem; margin-left: 0.6rem; }
.comment-form label { display: block; font-weight: 600; 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.7em 0.9em; font: inherit; color: var(--ink);
    background: var(--white); border: 2px solid #EBD6C0; border-radius: var(--radius-btn);
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--coral); outline: none; }
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; margin: 0; }
.comment-form .submit {
    font: 600 1rem var(--sans); padding: 0.8em 1.6em; border: 2px solid var(--coral); border-radius: var(--radius-btn);
    background: var(--coral); color: var(--white); cursor: pointer; transition: background-color .25s ease, transform .25s ease;
}
.comment-form .submit:hover { background: var(--coral-dark); border-color: var(--coral-dark); transform: translateY(-2px); }
.comment-notes, .logged-in-as { color: #6E5E50; font-size: 0.92rem; }
.comment-navigation .nav-links { display: flex; justify-content: space-between; gap: 1rem; margin: 1rem 0; }

/* ---------- Подвал ---------- */
.colophon {
    background-color: var(--cocoa);
    background-image: radial-gradient(rgba(242, 165, 65, 0.07) 1.5px, transparent 2px);
    background-size: 24px 24px;
    color: #F3E4D3;
    padding: 3.5rem 0 2rem;
    border-top: 4px solid var(--amber);
}
.colophon-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.6rem; }
.colophon-col { min-width: 0; }
.colophon .widget { margin-bottom: 1.6rem; color: #F3E4D3; }
.colophon .widget-title { color: #FFFFFF; font-size: 1.2rem; margin: 0 0 1rem; }
.colophon .widget-title::after { content: ""; display: block; width: 48px; height: 2px; margin-top: 0.6rem; background: var(--amber); }
.colophon p { color: #F3E4D3; }
.colophon ul { list-style: none; margin: 0; padding: 0; }
.colophon li { margin: 0 0 0.45rem; }
.colophon a { color: #FFD9A0; text-decoration-color: rgba(242, 165, 65, 0.5); }
.colophon a:hover { color: #FFFFFF; text-decoration-color: var(--coral); }
.colophon .post-date { color: #CDB8A3; }
.colophon-copy {
    margin: 2rem 0 0; padding-top: 1.4rem;
    border-top: 1px solid rgba(242, 165, 65, 0.25);
    color: #CDB8A3; font-size: 0.9rem;
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 90;
    display: flex;
    align-items: center;
    gap: 1.2rem;
    max-width: 52rem;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--cocoa);
    color: #FBEFE2;
    border-top: 3px solid var(--amber);
    border-radius: var(--radius-card);
    box-shadow: 0 10px 30px rgba(46, 31, 20, 0.3);
}
.cookie-text { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 0.95rem; line-height: 1.5; color: #FBEFE2; }
.cookie-accept { flex: 0 0 auto; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .nav-list { flex-direction: column; gap: 0; padding: 0.4rem 0 0.8rem; }
    .nav-list a { padding: 0.7rem 0; border-bottom: 1px solid #F6E6D2; }
    .brand-tagline { display: none; }

    .layout-with-sidebar { display: block; }
    .layout-with-sidebar .sidebar { margin-top: 3rem; }
    .layout-single .content-area { width: 100%; }

    .front-inner { width: 100%; padding-left: 4%; padding-right: 4%; }
    .topic-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .topic:last-child { grid-column: 1 / -1; }

    .steps { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .step { padding-left: 82px; min-height: 60px; }
    .step-num { position: absolute; left: 0; top: 0; }
    .step:not(:last-child)::after {
        top: 70px; bottom: -1.6rem; left: 29px; right: auto;
        border-top: 0; border-left: 2px dashed var(--amber);
    }
    .hero-title { font-size: clamp(2.1rem, 6vw, 2.8rem); }
    .colophon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    body { background-attachment: scroll, scroll, scroll; background-size: 140px auto, 24px 24px, 24px 24px; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .masthead-row { padding: 0.8rem 0; gap: 0.8rem; }
    .brand-logo { width: 44px; height: 44px; }
    .brand-name { font-size: 0.92rem; }
    .nav-toggle-label { display: none; }

    .hero { min-height: 28rem; }
    .hero-inner { padding: 3.5rem 0; }
    .hero-lead { font-size: 1.05rem; }

    .front-section { padding: 3rem 0; }
    .tone-dark { padding: 3.5rem 0; }
    .topic-grid { grid-template-columns: minmax(0, 1fr); }
    .topic { padding: 1.6rem 1.4rem 1.4rem; }
    .quote-block { padding-left: 1.4rem; }

    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-next { grid-column: auto; text-align: left; }

    .sidebar { padding: 1.5rem 1.3rem; }
    .comment-respond { padding: 1.4rem 1.2rem; }
    .empty-block { padding: 1.5rem 1.3rem; }
    .colophon-grid { grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }

    .cookie-banner { flex-direction: column; align-items: stretch; padding: 1rem 1.2rem; }
    .cookie-accept { width: 100%; }

    .alignleft, .alignright { float: none; margin: 1em 0; }
}
