/*
Theme Name: dds_rukiruki.ru
Theme URI: https://rukiruki.ru/
Author: Анна Светлова
Description: Тема для информационного сайта онлайн-школы творческого образования: мастер-классы по рисованию, рукоделию и креативным профессиям.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: rukiruki
*/

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

:root {
    --bg: #F8F9FA;
    --bg-alt: #EFF1F4;
    --line: #D1D9E0;
    --ink: #1E242C;
    --dark: #1C2026;
    --accent: #E8743C;
    --gold: #F4A261;
    --muted: #7A858F;
    --card-hover: #F4F6F9;
    --font-head: "Manrope", "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
    --font-body: "Inter", "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-text-size-adjust: 100%;
}

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

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

h1 { font-size: 3.5rem; }
h2 { font-size: 2.2rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.15em;
}

a {
    color: var(--accent);
}

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

.shell-narrow {
    width: min(85%, 1100px);
    margin-inline: auto;
}

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

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

/* Декоративный заголовок секции: линия 4px с крупной точкой */
.rule-head::before {
    content: "";
    display: block;
    width: 76px;
    height: 10px;
    margin-bottom: 1.1rem;
    background-image:
        radial-gradient(circle 5px at 5px 5px, var(--accent) 98%, transparent 100%),
        linear-gradient(var(--accent), var(--accent));
    background-size: 10px 10px, 60px 4px;
    background-position: 0 0, 16px 3px;
    background-repeat: no-repeat, no-repeat;
}

.rule-head.on-dark::before {
    background-image:
        radial-gradient(circle 5px at 5px 5px, #ffffff 98%, transparent 100%),
        linear-gradient(#ffffff, #ffffff);
}

/* Пунктирный разделитель на половину ширины контейнера */
.divided::before {
    content: "";
    display: block;
    width: 50%;
    height: 2px;
    margin: 0 auto 4rem;
    background-image: repeating-linear-gradient(90deg, var(--line) 0 16px, transparent 16px 30px);
}

/* =========================================================
   2. Кнопки и ссылки
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-bottom: 4px solid var(--dark);
    border-radius: 2px;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}

.btn:hover,
.btn:focus {
    transform: translateY(2px);
    background: var(--gold);
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.btn-dark {
    background: var(--dark);
    color: #fff;
    border-bottom: 4px solid var(--gold);
}

.btn-dark:hover,
.btn-dark:focus {
    background: var(--gold);
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-bottom-width: 4px;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--gold);
    color: var(--dark);
    border-color: var(--dark);
}

.entry-content a,
.card-excerpt a,
.comment-text a,
.widget p a {
    color: var(--accent);
    font-weight: 700;
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-size: 0 2px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.comment-text a:hover,
.widget p a:hover {
    background-size: 100% 2px;
}

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

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

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

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

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

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

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

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

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--ink);
    color: #fff;
    border: 0;
    border-bottom: 4px solid var(--accent);
    border-radius: 2px;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
}

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

.site-nav a {
    display: inline-block;
    padding: 0.35rem 0;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.98rem;
    text-decoration: none;
    border-bottom: 3px solid transparent;
}

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

/* =========================================================
   4. Раскладка контента
   ========================================================= */

.layout-single {
    display: block;
    padding: 2.6rem 0 0;
}

.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%;
    padding: 2.6rem 0 0;
}

.layout-with-sidebar .content-area {
    min-width: 0;
}

.breadcrumbs {
    font-size: 0.88rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
    border-bottom: 1px dotted var(--line);
}

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

.breadcrumbs .sep {
    margin: 0 0.35rem;
    color: var(--line);
}

.entry-header {
    margin-bottom: 1.8rem;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

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

.dot-sep {
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
}

.entry-thumb {
    display: block;
    width: 100%;
    margin-bottom: 1.8rem;
    border-radius: 12px;
    overflow: hidden;
}

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.9rem;
}

.entry-content ul,
.entry-content ol {
    padding-left: 0.2rem;
    margin: 0 0 1.3em;
}

.entry-content ul {
    list-style: none;
}

.entry-content ul li {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 0.5rem;
}

/* «Инструментальные» буллеты: круг, квадрат, треугольник */
.entry-content ul li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 11px;
    height: 11px;
    background: var(--accent);
    border-radius: 50%;
}

.entry-content ul li:nth-child(3n+2)::before {
    border-radius: 2px;
}

.entry-content ul li:nth-child(3n)::before {
    border-radius: 0;
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.entry-content ol {
    padding-left: 1.3rem;
}

.entry-content ol li::marker {
    color: var(--accent);
    font-weight: 800;
}

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 12px;
    font-family: var(--font-head);
    font-size: 1.15rem;
    font-weight: 600;
}

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

.entry-content img {
    border-radius: 12px;
}

.entry-content table,
.comment-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6rem;
    border: 1px solid var(--line);
}

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

.entry-content th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 700;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.3rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
}

.entry-tags a:hover {
    background: var(--gold);
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
    overflow: hidden;
    transition: background-color 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.2s ease;
    z-index: 2;
}

.card:hover {
    background: var(--card-hover);
}

.card:hover::before {
    transform: scaleX(1);
}

.card-thumb {
    display: block;
    margin: 0;
}

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

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

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

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

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

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

.card-excerpt {
    color: #414A55;
    font-size: 0.96rem;
}

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

.card-more {
    margin-top: auto;
    padding-top: 1rem;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 0.92rem;
    color: var(--accent);
    text-decoration: none;
    align-self: flex-start;
}

.card-more:hover {
    color: var(--dark);
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    margin: 3rem 0 0;
}

.pagination .page-numbers {
    display: inline-block;
    padding: 0.55rem 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--line);
    border-radius: 2px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 700;
    text-decoration: none;
}

.pagination a.page-numbers:hover {
    background: var(--gold);
    color: var(--dark);
    border-bottom-color: var(--dark);
}

.pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    border-bottom-color: var(--dark);
    color: #ffffff;
}

.pagination .page-numbers.dots {
    background: none;
    border: 0;
    color: var(--muted);
}

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

.fs {
    padding: 5.5rem 0;
}

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

/* 7.1 Hero */
.fs-hero {
    position: relative;
    padding: 5rem 0;
    background-image: linear-gradient(115deg, var(--accent) 0%, var(--gold) 100%);
    overflow: hidden;
}

.fs-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, #ffffff 0 2px, transparent 2px 11px);
    opacity: 0.05;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 3rem;
}

.hero-copy {
    min-width: 0;
    color: #ffffff;
}

.hero-copy h1 {
    color: #ffffff;
    margin-bottom: 1rem;
}

.hero-lead {
    font-size: 1.12rem;
    color: #FFF3EA;
    margin-bottom: 2rem;
}

.hero-art {
    min-width: 0;
}

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

/* 7.2 Статистика */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.stat {
    min-width: 0;
    padding: 1.7rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-bottom: 6px solid var(--accent);
    border-radius: 12px 12px 2px 2px;
}

.stat-value {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 800;
    line-height: 1.05;
    color: var(--ink);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Четвёртый факт: заливка + срезанный правый нижний угол (виден золотой) */
.stat-accent {
    border-bottom: 1px solid #F1C6AE;
    border-radius: 12px;
    background-color: #FBE4D8;
    background-image: linear-gradient(315deg, var(--gold) 0 26px, #FBE4D8 26px);
}

.stat-accent .stat-value {
    color: var(--accent);
}

.stat-accent .stat-label {
    color: #8A6753;
}

/* 7.3 Пошаговый таймлайн */
.steps {
    position: relative;
    margin-top: 3rem;
}

.steps::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 6px;
    margin-left: -3px;
    background: var(--line);
    border-radius: 3px;
}

.step {
    position: relative;
    width: calc(50% - 4.5rem);
    min-width: 0;
    margin-bottom: 3rem;
}

.step:last-child {
    margin-bottom: 0;
}

.step-odd {
    margin-right: auto;
    text-align: right;
}

.step-even {
    margin-left: auto;
    text-align: left;
}

.step-num {
    position: absolute;
    top: -0.35rem;
    font-family: var(--font-head);
    font-size: 48px;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    background: var(--bg-alt);
    padding: 0 0.5rem;
}

.step-odd .step-num {
    right: -6.1rem;
}

.step-even .step-num {
    left: -6.1rem;
}

.step h3 {
    margin-bottom: 0.4rem;
}

.step p {
    margin: 0;
    color: #414A55;
}

/* 7.4 Карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.4rem;
    margin-top: 2.6rem;
}

.topic {
    position: relative;
    display: block;
    min-width: 0;
    border-radius: 12px;
    overflow: hidden;
    background: var(--dark);
    text-decoration: none;
    border: 1px solid var(--line);
}

.topic-label {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    z-index: 1;
    padding: 1rem 1.2rem;
    font-family: var(--font-head);
    font-size: 1.45rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: #ffffff;
}

.topic-face {
    position: relative;
    z-index: 2;
    display: block;
    transition: transform 0.35s ease;
}

.topic-face img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.topic:hover .topic-face,
.topic:focus .topic-face {
    transform: translateY(32%);
}

/* 7.5 Блок последних записей */
.fs-latest .fs-head-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

.fs-head-row h2 {
    margin: 0;
}

.section-lead {
    max-width: 62ch;
    color: #414A55;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 1.6rem 1.5rem;
    align-self: start;
}

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

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

.widget-title {
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 3px solid var(--accent);
}

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: 0.55rem 0;
    border-bottom: 1px dashed var(--line);
}

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

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

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

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

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

.site-foot {
    position: relative;
    background-color: var(--dark);
    color: #C3CDD8;
    padding: 4rem 0 1.8rem;
    overflow: hidden;
}

.site-foot::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(45deg, #ffffff 0 2px, transparent 2px 12px);
    opacity: 0.05;
    pointer-events: none;
}

.foot-cols {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
}

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

.site-foot .widget-title {
    color: #ffffff;
    border-bottom-color: var(--gold);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #C3CDD8;
}

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

.site-foot .widget li {
    padding: 0.4rem 0;
}

.site-foot .widget a {
    color: #EAF0F6;
    font-weight: 700;
    text-decoration: none;
}

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

.site-foot .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #93A0AD;
}

.foot-bottom {
    position: relative;
    z-index: 2;
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid #2C333C;
    font-size: 0.86rem;
    color: #93A0AD;
}

.foot-contact {
    margin-top: 0.6rem;
}

.foot-contact a {
    color: #EAF0F6;
    text-decoration: none;
    font-weight: 700;
}

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

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 1.2rem;
    padding: 1.1rem 1.5rem;
    background: var(--dark);
    border-top: 4px solid var(--accent);
    color: #DCE3EA;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 70ch;
}

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

/* =========================================================
   11. Поиск, комментарии, 404
   ========================================================= */

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

.search-form .search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 1rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-bottom: 3px solid var(--line);
    border-radius: 2px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--ink);
}

.search-form .search-field:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-area {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

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

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

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

.comment-inner {
    padding: 1.3rem 1.5rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: 12px;
}

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

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

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

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

.comment-actions a {
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
}

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

.comment-respond {
    padding: 1.8rem 1.9rem;
    background: var(--bg-alt);
    border-radius: 12px;
}

.comment-respond .comment-reply-title {
    margin-top: 0;
    font-size: 1.35rem;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-weight: 700;
    font-size: 0.9rem;
}

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

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

.comment-form .form-submit input {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    background: var(--accent);
    color: #fff;
    border: 0;
    border-bottom: 4px solid var(--dark);
    border-radius: 2px;
    font-family: var(--font-head);
    font-weight: 800;
    cursor: pointer;
}

.comment-form .form-submit input:hover {
    background: var(--gold);
    color: var(--dark);
}

.page-404 {
    text-align: center;
    padding: 2rem 0 1rem;
}

.page-404 .code-404 {
    font-family: var(--font-head);
    font-size: 6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.6rem;
}

.page-404 .search-form {
    justify-content: center;
    margin: 2rem auto 1.6rem;
    max-width: 480px;
}

.notice-empty {
    padding: 2rem 2.2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 12px;
}

.notice-empty p:last-child {
    margin-bottom: 0;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    h2 { font-size: 1.85rem; }

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

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

    .site-nav {
        order: 3;
        flex: 1 1 100%;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.25s ease;
    }

    .site-nav.is-open {
        max-height: 420px;
    }

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding: 0.6rem 0 0.2rem;
    }

    .site-nav li {
        width: 100%;
        border-bottom: 1px dashed var(--line);
    }

    .site-nav a {
        display: block;
        padding: 0.7rem 0;
    }

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

    .layout-single .content-area {
        width: 100%;
    }

    .hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

    .hero-art {
        max-width: 420px;
    }

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

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

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

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

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

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.6rem; }
    h3 { font-size: 1.3rem; }

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

    .shell,
    .shell-narrow {
        width: 90%;
    }

    .fs {
        padding: 3.4rem 0;
    }

    .fs-hero {
        padding: 3.2rem 0;
    }

    .divided::before {
        width: 70%;
        margin-bottom: 2.4rem;
    }

    .card-grid,
    .card-list,
    .stats-grid,
    .topic-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .card-body {
        padding: 1.1rem 1.2rem 1.3rem;
    }

    .stat {
        padding: 1.3rem 1.3rem;
    }

    .stat-accent {
        padding: 1.3rem 1.3rem;
    }

    .steps::before {
        left: 15px;
        margin-left: 0;
    }

    .step,
    .step-odd,
    .step-even {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
        padding-left: 3.6rem;
        text-align: left;
    }

    .step-odd .step-num,
    .step-even .step-num {
        left: 0;
        right: auto;
        font-size: 34px;
        padding: 0 0.2rem;
    }

    .comment-inner {
        padding: 1.1rem 1.2rem;
    }

    .comment-respond {
        padding: 1.4rem 1.3rem;
    }

    .notice-empty {
        padding: 1.5rem 1.4rem;
    }

    .cookie-banner {
        padding: 1rem 1.2rem;
        gap: 0.9rem;
        text-align: center;
    }

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

    .sidebar {
        padding: 1.4rem 1.3rem;
    }

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