/*
Theme Name: dds_landofhoz.com
Theme URI: https://landofhoz.com/
Author: Алексей Хосмер
Author URI: https://landofhoz.com/
Description: Информационно-образовательная тема для портала о современном школьном обучении и развитии детей. Тёплая «бумажная» палитра, сдержанная типографика с засечками, режим эксперта и удобное чтение длинных материалов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: landofhoz
*/

/* ================================================================== *
 *  Переменные
 * ================================================================== */
:root {
    --paper:        #F9F7F3;
    --ink:          #2C2A29;
    --teal:         #1E6F5C;
    --teal-dark:    #18584A;
    --honey:        #E5A93D;
    --parents:      #E8EDF2;
    --teachers:     #F5EAE6;
    --terracotta:   #C26A5A;
    --card-bg:      #FFFFFF;
    --line:         #E6E1D6;
    --muted:        #6E6A63;
    --footer-bg:    #243430;
    --footer-ink:   #E7E3D9;
    --footer-soft:  #A9B6AF;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: 'PT Sans', 'Segoe UI', sans-serif;
    font-size: 18px;
    line-height: 1.72;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

h1, h2, h3, h4 {
    font-family: 'Lora', Georgia, serif;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
    margin: 0 0 0.5em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.55rem; }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1.1em; }

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

blockquote {
    margin: 1.4em 0;
    padding: 0.6em 1.2em;
    border-left: 3px solid var(--honey);
    background: #FBF4E4;
    font-family: 'Lora', Georgia, serif;
    font-style: italic;
}

code, pre {
    font-family: 'JetBrains Mono', Consolas, monospace;
    background: #EFEBE2;
    border-radius: 6px;
}
code { padding: 0.1em 0.35em; font-size: 0.9em; }
pre { padding: 1em; overflow-x: auto; }

del { color: var(--muted); text-decoration-color: var(--terracotta); }

.skip-link {
    position: absolute;
    left: -999px;
}
.skip-link:focus {
    left: 12px;
    top: 12px;
    z-index: 999;
    background: var(--teal);
    color: #fff;
    padding: 8px 14px;
    border-radius: 8px;
}

/* ================================================================== *
 *  Контейнер ширины — единственный источник (A12.7)
 * ================================================================== */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ================================================================== *
 *  Кнопки
 * ================================================================== */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: 'PT Sans', sans-serif;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1;
    padding: 12px 22px;
    border-radius: 12px;
    border: 1px solid var(--teal);
    background: transparent;
    color: var(--teal);
    text-decoration: none;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover {
    background: var(--teal);
    color: #fff;
    box-shadow: 0 6px 16px rgba(30, 111, 92, .25);
}
.btn-solid {
    background: var(--teal);
    color: #fff;
}
.btn-solid:hover {
    background: var(--teal-dark);
    color: #fff;
}

/* Кнопки-фильтры по категориям */
.filter-btn {
    display: inline-block;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 8px 16px;
    border-radius: 8px;
    border: none;
    background: var(--parents);
    color: var(--ink);
    text-decoration: none;
    cursor: pointer;
}
.filter-btn.is-active,
.filter-btn:hover {
    background: var(--teal);
    color: #fff;
}

/* ================================================================== *
 *  Верхняя панель
 * ================================================================== */
.topbar {
    background: var(--teal-dark);
    color: #EaF1ee;
    font-size: 0.85rem;
}
.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 38px;
    gap: 16px;
}
.topbar-tagline {
    letter-spacing: .04em;
    text-transform: uppercase;
    font-size: 0.74rem;
    color: #BFD6CE;
}
.expert-switch {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}
.expert-switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.expert-switch-track {
    width: 38px;
    height: 20px;
    border-radius: 999px;
    background: rgba(255,255,255,.25);
    position: relative;
    transition: background-color .2s ease;
    flex: none;
}
.expert-switch-track::after {
    content: "";
    position: absolute;
    top: 2px;
    left: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #fff;
    transition: transform .2s ease;
}
.expert-switch input:checked + .expert-switch-track {
    background: var(--honey);
}
.expert-switch input:checked + .expert-switch-track::after {
    transform: translateX(18px);
}
.expert-switch input:focus-visible + .expert-switch-track {
    outline: 2px solid #fff;
    outline-offset: 2px;
}
.expert-switch-label {
    color: #EaF1ee;
    font-weight: 700;
}

/* ================================================================== *
 *  Шапка
 * ================================================================== */
.site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
}
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 22px 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    flex: 1;
}
.brand-logo-link { flex: none; display: block; }
.brand-logo {
    display: block;
    width: 58px;
    height: 58px;
}
.brand-text { min-width: 0; }
.brand-name {
    margin: 0 0 4px;
    font-family: 'Lora', Georgia, serif;
    font-weight: 700;
    font-size: clamp(1.02rem, 1.05rem + .3vw, 1.32rem);
    line-height: 1.28;
}
.brand-name a { color: var(--ink); text-decoration: none; }
.brand-name a:hover { color: var(--teal); }
.brand-desc {
    margin: 0;
    font-size: 0.86rem;
    line-height: 1.5;
    color: var(--muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.header-tools {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: none;
}
.icon-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    background: var(--card-bg);
    border-radius: 10px;
    cursor: pointer;
    color: var(--ink);
    padding: 0;
}
.icon-btn:hover { border-color: var(--teal); color: var(--teal); }
.icon-btn svg { width: 20px; height: 20px; }

.nav-toggle { display: none; }
.burger,
.burger::before,
.burger::after {
    display: block;
    width: 20px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
}
.burger { position: relative; }
.burger::before,
.burger::after { content: ""; position: absolute; left: 0; }
.burger::before { top: -6px; }
.burger::after  { top: 6px; }

/* Владелец / аватар */
.owner { position: relative; }
.owner-toggle {
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    border-radius: 50%;
}
.owner-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--teachers);
    border: 2px solid var(--teal);
    color: var(--teal);
    overflow: hidden;
}
.owner-avatar svg { width: 26px; height: 26px; }

.owner-menu[hidden] { display: none !important; }
.owner-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    box-shadow: 0 14px 34px rgba(44, 42, 41, .16);
    min-width: 210px;
    padding: 8px;
    z-index: 60;
    display: flex;
    flex-direction: column;
}
.owner-menu a {
    padding: 9px 12px;
    border-radius: 8px;
    text-decoration: none;
    color: var(--ink);
    font-size: 0.95rem;
}
.owner-menu a:hover { background: var(--parents); color: var(--teal); }

/* Поиск в шапке */
.header-search[hidden] { display: none !important; }
.header-search {
    border-top: 1px solid var(--line);
    background: #fff;
    padding: 16px 0;
}

/* Навигация */
.primary-nav {
    background: var(--paper);
    border-top: 1px solid var(--line);
}
.primary-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}
.primary-menu a {
    display: block;
    padding: 14px 16px;
    text-decoration: none;
    color: var(--ink);
    font-weight: 700;
    font-size: 0.98rem;
    border-bottom: 3px solid transparent;
}
.primary-menu a:hover { color: var(--teal); }
.primary-menu .current-menu-item > a,
.primary-menu .current_page_item > a {
    color: var(--teal);
    border-bottom-color: var(--teal);
}

/* ================================================================== *
 *  Основная область
 * ================================================================== */
.site-main {
    display: block;
    padding: 32px 0 56px;
}

/* Раскладки */
.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: 44px;
    align-items: start;
}
.layout-with-sidebar .content-area { min-width: 0; }

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}
@media (max-width: 600px) {
    .layout-single .content-area { width: 100%; }
}

/* ================================================================== *
 *  Хлебные крошки
 * ================================================================== */
.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 22px;
}
.breadcrumbs a { color: var(--teal); text-decoration: none; }
.breadcrumbs a:hover { text-decoration: underline; }
.breadcrumbs .sep { margin: 0 6px; color: #B7B1A4; }
.breadcrumbs .current { color: var(--ink); }

/* ================================================================== *
 *  Заголовки страниц / архивов
 * ================================================================== */
.page-head { margin-bottom: 28px; }
.page-title {
    font-size: 2rem;
    margin: 0;
}
.page-subtitle {
    color: var(--muted);
    margin-top: 6px;
}
.section-title {
    font-size: 1.65rem;
    position: relative;
    padding-bottom: 10px;
    margin-bottom: 26px;
}
.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 56px;
    height: 3px;
    background: var(--honey);
    border-radius: 3px;
}

/* ================================================================== *
 *  Карточки записей (A8, A10)
 * ================================================================== */
.cards-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
}
@media (max-width: 960px) {
    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
    .cards-grid { grid-template-columns: minmax(0, 1fr); }
}

.card {
    display: flex;
    flex-direction: column;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    transition: box-shadow .2s ease, transform .2s ease;
}
.card:hover {
    box-shadow: 0 14px 30px rgba(44, 42, 41, .12);
    transform: translateY(-2px);
}
.card img { display: block; }

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px 22px 24px;
}

/* Вертикальная карточка сетки */
.card-grid .card-thumb-wrap { display: block; }
.card-grid .card-thumb-wrap img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

/* Широкая горизонтальная карточка */
.card-wide {
    flex-direction: row;
    grid-column: 1 / -1;
}
.card-wide .card-thumb-wrap {
    flex: 0 0 320px;
    position: relative;
    overflow: hidden;
}
.card-wide .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
}
.card-wide .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.card-wide .card-body { padding: 28px 30px; }
.card-wide .card-title { font-size: 1.5rem; }

@media (max-width: 600px) {
    .card-wide { flex-direction: column; }
    .card-wide .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }
    .card-wide .card-thumb-wrap a { position: static; }
    .card-wide .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-wide .card-body { padding: 20px 22px 24px; }
    .card-wide .card-title { font-size: 1.25rem; }
}

.card-rubric {
    display: inline-block;
    align-self: flex-start;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--teal);
    text-decoration: none;
    margin-bottom: 8px;
}
.card-rubric::before {
    content: "● ";
    font-size: 0.7em;
}
.card-title {
    font-size: 1.2rem;
    margin: 0 0 8px;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--teal); }
.card-meta {
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 10px;
}
.card-excerpt {
    color: #45423E;
    font-size: 0.96rem;
}
.card-excerpt p {
    margin: 0 0 0.5em;
    background: none;
}
.card-more {
    margin-top: auto;
    align-self: flex-start;
}

.empty-note {
    background: var(--card-bg);
    border: 1px dashed var(--line);
    border-radius: 12px;
    padding: 28px;
    color: var(--muted);
    text-align: center;
}

/* ================================================================== *
 *  Пагинация
 * ================================================================== */
.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 38px;
}
.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--card-bg);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}
.pagination .page-numbers:hover {
    border-color: var(--teal);
    color: var(--teal);
}
.pagination .page-numbers.current {
    background: var(--teal);
    border-color: var(--teal);
    color: #fff;
}
.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

/* ================================================================== *
 *  Главная страница
 * ================================================================== */
.front-page > section { margin-bottom: 56px; }
.front-page > section:last-child { margin-bottom: 0; }

/* Личная заметка педагога */
.teacher-note {
    background: #FBEFD4;
    border: 1px solid #ECD9A8;
    border-radius: 18px;
    padding: 30px 34px;
    position: relative;
}
.note-kicker {
    display: inline-block;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #9A6A12;
    margin-bottom: 12px;
}
.note-track { position: relative; }
.note-slide { display: none; }
.note-slide.is-active { display: block; }
.note-slide {
    margin: 0;
    padding: 0;
    border: none;
    background: none;
    font-family: 'Lora', Georgia, serif;
    font-size: 1.22rem;
    font-style: italic;
    line-height: 1.55;
    color: #44372A;
}
.note-sign {
    display: block;
    margin-top: 14px;
    font-style: normal;
    font-size: 0.92rem;
    font-weight: 700;
    color: #9A6A12;
}
.note-collapse {
    display: none;
}

/* Аудитории */
.audience-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}
@media (max-width: 600px) {
    .audience-grid { grid-template-columns: minmax(0, 1fr); }
}
.aud-card {
    border-radius: 16px;
    padding: 26px 28px;
    min-width: 0;
}
.aud-parents  { background: var(--parents); }
.aud-teachers { background: var(--teachers); }
.aud-card h3 { margin-top: 0; }
.aud-card p:last-child { margin-bottom: 0; }
.aud-tag {
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
}
.aud-parents  .aud-tag { color: var(--teal); }
.aud-teachers .aud-tag { color: var(--honey); }

/* Свежие материалы */
.home-posts-more {
    margin-top: 30px;
    text-align: center;
}

/* Во что верим */
.creed-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}
@media (max-width: 760px) {
    .creed-list { grid-template-columns: minmax(0, 1fr); }
}
.creed-list li {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-left: 4px solid var(--teal);
    border-radius: 12px;
    padding: 18px 20px;
    min-width: 0;
}
.creed-list strong {
    display: block;
    font-family: 'Lora', serif;
    font-size: 1.08rem;
    margin-bottom: 4px;
}

/* Что оставляем в прошлом */
.reject {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 18px;
    padding: 30px 34px;
}
.reject-list {
    list-style: none;
    margin: 0;
    padding: 0;
}
.reject-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--line);
    font-size: 1.05rem;
}
.reject-list li:last-child { border-bottom: none; }
.reject-list s {
    color: var(--muted);
    text-decoration-color: var(--terracotta);
    text-decoration-thickness: 2px;
}
.reject-list .instead {
    color: var(--teal);
    font-weight: 700;
}

/* ================================================================== *
 *  Контент записи / страницы
 * ================================================================== */
.entry {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 34px 38px;
}
@media (max-width: 600px) {
    .entry { padding: 24px 22px; }
}
.entry-header { margin-bottom: 18px; }
.entry-title { font-size: 2.05rem; margin: 0 0 10px; }
.entry-meta {
    font-size: 0.86rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
}
.entry-thumb {
    margin: 0 0 22px;
    border-radius: 12px;
    overflow: hidden;
}
.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
}
.entry-content { min-width: 0; }
.entry-content img { border-radius: 10px; }
.entry-content h2,
.entry-content h3 { margin-top: 1.4em; }
.entry-content > *:last-child { margin-bottom: 0; }

/* Реальная история из класса — стикер с оторванным краем */
.class-story {
    background: var(--teachers);
    border: 1px solid #E4CFC4;
    padding: 24px 26px 28px;
    margin: 26px 0;
    position: relative;
    clip-path: polygon(
        0 6px, 4% 0, 12% 7px, 22% 0, 34% 6px, 46% 0, 58% 7px,
        70% 0, 82% 6px, 92% 0, 100% 7px,
        100% 100%, 0 100%
    );
}
.class-story::before {
    content: "Реальная история из класса";
    display: block;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--terracotta);
    margin-bottom: 8px;
}
.class-story p:last-child { margin-bottom: 0; }

/* Сноски «Режима эксперта» */
.expert-note {
    display: none;
}
body.expert-mode .expert-note {
    display: block;
    background: var(--parents);
    border-left: 4px solid var(--teal);
    border-radius: 10px;
    padding: 16px 20px;
    margin: 20px 0;
    font-size: 0.94rem;
}
.expert-note::before {
    content: "Методическая сноска";
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    color: var(--teal);
    margin-bottom: 6px;
}
.expert-hint {
    display: none;
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 18px;
    font-style: italic;
}
body.expert-mode .expert-hint { display: block; }

/* Рубрики записи */
.entry-rubrics {
    margin: 20px 0 0;
    font-size: 0.82rem;
}
.entry-rubrics a {
    text-transform: uppercase;
    font-weight: 700;
    letter-spacing: .05em;
    text-decoration: none;
}

/* Навигация по записям */
.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    margin-top: 26px;
    flex-wrap: wrap;
}
.post-nav a {
    flex: 1 1 240px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 14px 18px;
    text-decoration: none;
    color: var(--ink);
    min-width: 0;
}
.post-nav a:hover { border-color: var(--teal); }
.post-nav .pn-label {
    display: block;
    font-size: 0.76rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: var(--muted);
    margin-bottom: 4px;
}

/* ================================================================== *
 *  Таблицы
 * ================================================================== */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 10px 14px;
    text-align: left;
}
th {
    background: var(--parents);
    font-family: 'Lora', serif;
}

/* ================================================================== *
 *  Сайдбар и виджеты
 * ================================================================== */
.sidebar { min-width: 0; }
.sidebar .widget {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 22px 24px;
    margin-bottom: 24px;
    color: var(--ink);
}
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    font-size: 1.1rem;
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 2px solid var(--honey);
    color: var(--ink);
}
.sidebar .widget a { color: var(--teal); text-decoration: none; }
.sidebar .widget a:hover { text-decoration: underline; }
.sidebar .widget ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}
.sidebar .widget li:last-child { border-bottom: none; }
.sidebar .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
}

/* ================================================================== *
 *  Подвал
 * ================================================================== */
.site-footer {
    background: var(--footer-bg);
    color: var(--footer-ink);
    padding: 52px 0 26px;
    margin-top: 20px;
}
.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px;
}
@media (max-width: 760px) {
    .footer-widgets { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
.footer-col { min-width: 0; }
.footer-col .widget { color: var(--footer-ink); }
.footer-col .widget-title {
    font-family: 'Lora', serif;
    font-size: 1.12rem;
    color: var(--honey);
    margin: 0 0 14px;
}
.footer-col p,
.footer-col li { color: var(--footer-ink); }
.footer-col a {
    color: #CFE3DB;
    text-decoration: none;
}
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-col ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.footer-col li {
    padding: 6px 0;
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-col li:last-child { border-bottom: none; }
.footer-col del { color: var(--footer-soft); text-decoration-color: var(--terracotta); }

.footer-ask {
    margin-top: 36px;
    padding-top: 22px;
    border-top: 1px solid rgba(255,255,255,.12);
}
.ask-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--honey);
    font-weight: 700;
    text-decoration: none;
    font-size: 1.05rem;
}
.ask-link:hover { color: #fff; }
.pulse-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--honey);
    position: relative;
    flex: none;
}
.pulse-dot::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background: var(--honey);
    animation: landofhoz-pulse 1.8s ease-out infinite;
}
@keyframes landofhoz-pulse {
    0%   { transform: scale(1);   opacity: .7; }
    100% { transform: scale(2.6); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
    .pulse-dot::after { animation: none; }
}

.copyright {
    margin: 22px 0 0;
    font-size: 0.84rem;
    color: var(--footer-soft);
}

/* ================================================================== *
 *  Cookie-баннер (D6, A11)
 * ================================================================== */
.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    display: flex;
    align-items: center;
    gap: 18px;
    flex-wrap: wrap;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: 0 18px 40px rgba(44, 42, 41, .22);
    padding: 16px 20px;
    max-width: 720px;
    margin: 0 auto;
}
.cookie-text {
    margin: 0;
    flex: 1;
    min-width: 220px;
    font-size: 0.92rem;
    color: var(--ink);
}
.cookie-accept { flex: none; }

/* ================================================================== *
 *  Форма поиска
 * ================================================================== */
.search-form {
    display: flex;
    gap: 8px;
}
.search-field {
    flex: 1;
    min-width: 0;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    color: var(--ink);
}
.search-field:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
}
.search-submit {
    flex: none;
    padding: 11px 20px;
    border: 1px solid var(--teal);
    background: var(--teal);
    color: #fff;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
}
.search-submit:hover { background: var(--teal-dark); }

/* ================================================================== *
 *  Комментарии
 * ================================================================== */
.comments-area {
    margin-top: 30px;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 30px 34px;
}
@media (max-width: 600px) {
    .comments-area { padding: 22px 22px; }
}
.comments-title { font-size: 1.4rem; }
.comment-list {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}
.comment-list ol { list-style: none; }
.comment-list .children {
    list-style: none;
    margin-left: 26px;
    padding-left: 0;
}
.comment-body {
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
}
.comment-author {
    font-weight: 700;
    font-family: 'Lora', serif;
}
.comment-author .avatar {
    border-radius: 50%;
    vertical-align: middle;
    margin-right: 8px;
}
.comment-metadata {
    font-size: 0.8rem;
    color: var(--muted);
}
.comment-metadata a { color: var(--muted); }
.comment-respond {
    margin-top: 22px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1px solid var(--line);
    border-radius: 10px;
    font: inherit;
    background: #fff;
    color: var(--ink);
}
.comment-form label { font-weight: 700; font-size: 0.9rem; }
.comment-form .form-submit input {
    background: var(--teal);
    color: #fff;
    border: 1px solid var(--teal);
    border-radius: 12px;
    padding: 12px 24px;
    font-weight: 700;
    cursor: pointer;
}
.comment-form .form-submit input:hover { background: var(--teal-dark); }

/* ================================================================== *
 *  404
 * ================================================================== */
.error-404 {
    text-align: center;
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 48px 30px;
}
.error-404 .big-code {
    font-family: 'Lora', serif;
    font-size: 4.5rem;
    color: var(--teal);
    line-height: 1;
    margin: 0;
}
.error-404 .search-form {
    max-width: 420px;
    margin: 26px auto 18px;
}

/* Карта сайта */
.site-map-list {
    list-style: none;
    padding: 0;
    margin: 0;
}
.site-map-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

/* ================================================================== *
 *  Адаптив шапки
 * ================================================================== */
@media (max-width: 960px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav {
        display: none;
    }
    .primary-nav.is-open {
        display: block;
    }
    .primary-menu { flex-direction: column; }
    .primary-menu a {
        padding: 12px 4px;
        border-bottom: 1px solid var(--line);
    }
    .primary-menu .current-menu-item > a,
    .primary-menu .current_page_item > a {
        border-bottom-color: var(--line);
    }
}

@media (max-width: 600px) {
    body { font-size: 17px; }
    .site-header-inner { flex-wrap: wrap; gap: 16px; }
    .brand-desc { -webkit-line-clamp: 3; }
    h1 { font-size: 1.7rem; }
    .entry-title { font-size: 1.6rem; }

    /* Плавающая вкладка «Личной заметки» */
    .teacher-note.is-floating {
        position: fixed;
        right: 12px;
        bottom: 12px;
        left: auto;
        max-width: 280px;
        z-index: 150;
        padding: 18px 20px;
        box-shadow: 0 14px 34px rgba(44, 42, 41, .28);
    }
    .teacher-note.is-floating .note-slide { font-size: 1rem; }
    .teacher-note.is-floating.is-collapsed .note-track,
    .teacher-note.is-floating.is-collapsed .note-kicker {
        display: none;
    }
    .teacher-note.is-floating.is-collapsed {
        padding: 10px 16px;
    }
    .teacher-note.is-floating .note-collapse {
        display: inline-flex;
        position: absolute;
        top: 8px;
        right: 10px;
        width: 26px;
        height: 26px;
        align-items: center;
        justify-content: center;
        border: none;
        background: rgba(0,0,0,.08);
        border-radius: 50%;
        cursor: pointer;
        font-size: 1rem;
        line-height: 1;
        color: #44372A;
    }
    .teacher-note.is-floating.is-collapsed .note-collapse { position: static; }
}

/* ================================================================== *
 *  Дополнительные стили шаблонов (списки, записи, поиск, 404)
 * ================================================================== */

.section-head {
    margin-bottom: 30px;
}
.section-head .section-title {
    margin: 0 0 8px;
}
.section-lead {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
    max-width: 60ch;
}
.no-posts {
    padding: 28px 24px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--muted);
}

/* --- Одиночная запись / страница --------------------------------- */
.entry-cover {
    margin: 0 0 26px;
    border-radius: 14px;
    overflow: hidden;
}
.entry-cover img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: cover;
}
.entry-meta {
    margin: 6px 0 0;
    color: var(--muted);
    font-size: 0.92rem;
}
.page-links {
    margin: 24px 0 0;
    font-weight: 700;
    font-size: 0.92rem;
}
.page-links a {
    color: var(--teal);
    text-decoration: none;
    padding: 0 4px;
}

/* --- Комментарии -------------------------------------------------- */
.comments-closed {
    color: var(--muted);
    font-style: italic;
}
.comment-notes {
    color: var(--muted);
    font-size: 0.88rem;
    margin: 0 0 14px;
}

/* --- Форма поиска ------------------------------------------------- */
.search-label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
    color: var(--ink);
}

/* --- 404 ---------------------------------------------------------- */
.error-title {
    margin: 6px 0 12px;
}
.error-text {
    color: var(--muted);
    max-width: 52ch;
}
.error-home {
    margin-top: 22px;
}
