/*
Theme Name: dds_amazonunlimitedbooks.com
Theme URI: https://amazonunlimitedbooks.com/
Author: Ольга Маркова
Description: Тема для информационного сайта о книгах и литературе: выбор изданий, подготовка к чтению, типичные ошибки и практические сценарии.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: litdot
*/

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

:root {
    --bg:          #f8f6fc;
    --bg-alt:      #f0ecf9;
    --head-bg:     #2d1b3d;
    --head-bg-2:   #4a2d5e;
    --foot-bg:     #1e1229;
    --ink:         #1e1229;
    --accent:      #c05b8e;
    --accent-dk:   #a2436f;
    --accent-2:    #46b3b0;
    --muted:       #7a6a86;
    --line:        #e0d6eb;
    --card:        #ffffff;
    --font-head:   "Playfair Display", "Literata", "PT Serif", Georgia, "Times New Roman", serif;
    --font-body:   "Inter", "PT Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
}

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

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

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='260' viewBox='0 0 420 260'%3E%3Cg fill='%232d1b3d' fill-opacity='0.05'%3E%3Crect x='16' y='96' width='8' height='164'/%3E%3Crect x='28' y='128' width='6' height='132'/%3E%3Crect x='38' y='72' width='10' height='188'/%3E%3Crect x='52' y='140' width='7' height='120'/%3E%3Crect x='63' y='108' width='5' height='152'/%3E%3Crect x='72' y='156' width='9' height='104'/%3E%3Crect x='85' y='88' width='6' height='172'/%3E%3Crect x='95' y='132' width='8' height='128'/%3E%3Crect x='107' y='116' width='5' height='144'/%3E%3Crect x='116' y='168' width='7' height='92'/%3E%3Crect x='240' y='120' width='7' height='140'/%3E%3Crect x='251' y='84' width='9' height='176'/%3E%3Crect x='264' y='148' width='6' height='112'/%3E%3Crect x='274' y='104' width='8' height='156'/%3E%3Crect x='286' y='136' width='5' height='124'/%3E%3Crect x='295' y='92' width='7' height='168'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
}

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

a {
    color: var(--accent);
    text-decoration: none;
}

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

h1 { font-size: 3.4rem; }
h2 { font-size: 2.1rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.4em;
}

li {
    margin-bottom: 0.4em;
}

/* Контейнеры ширины */

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

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

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

.btn {
    display: inline-block;
    border-radius: 8px;
    border: 2px solid var(--accent);
    padding: 0.66em 1.5em;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    text-decoration: none;
    transition: background-color .22s ease, color .22s ease, transform .22s ease, box-shadow .22s ease;
}

.btn-solid {
    background: var(--accent);
    color: #fff;
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(45, 27, 61, .22);
}

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

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

.entry a,
.card-excerpt a,
.widget a,
.crumbs a,
.tline-card a {
    position: relative;
    color: var(--accent);
}

.entry a::after,
.card-excerpt a::after,
.crumbs a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -2px;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform .28s ease;
}

.entry a:hover::after,
.card-excerpt a:hover::after,
.crumbs a:hover::after {
    transform: scaleX(1);
}

/* ==================================================================
   3. Верхняя полоса, шапка, меню
   ================================================================== */

.topline {
    height: 6px;
    background: linear-gradient(90deg, #c05b8e 0%, #46b3b0 100%);
}

.site-top {
    background: var(--head-bg);
    color: #efe7f5;
    padding: 1.5rem 0;
}

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

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

.brand-link {
    display: block;
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    display: block;
    max-height: 62px;
    width: auto;
}

.brand-mark {
    display: block;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.32rem;
    line-height: 1.25;
}

.brand-name a {
    color: #fbf7ff;
}

.brand-name a:hover {
    color: #f2c3da;
}

.brand-tagline {
    display: block;
    margin-top: 0.28rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #b9a6c9;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 2px solid #6d5384;
    border-radius: 8px;
    color: #efe7f5;
    padding: 0.5rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.95rem;
    cursor: pointer;
}

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

.nav-toggle.is-active {
    border-color: var(--accent);
    color: #fff;
}

.primary-nav {
    flex: 0 1 auto;
}

.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

.nav-list a {
    display: inline-block;
    color: #e7dcf0;
    font-size: 1rem;
    padding: 0.24em 0;
    border-bottom: 2px solid transparent;
    transition: color .2s ease, border-color .2s ease;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.3rem 0 0;
    padding: 0 0 0 0.9rem;
}

/* ==================================================================
   4. Общая раскладка страниц
   ================================================================== */

.site-main {
    display: block;
    padding-bottom: 3.5rem;
}

.page-wrap {
    padding-top: 2.2rem;
}

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

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

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

.page-title {
    margin-bottom: 0.5em;
}

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

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

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

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

/* Заголовки секций с декоративной точкой */

.sec-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    font-size: 2.1rem;
    margin-bottom: 0.6em;
}

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.sec-title-light {
    color: #f6eefb;
}

.sec-lead {
    color: var(--muted);
    max-width: 62ch;
    margin-bottom: 2rem;
}

/* Разделитель-ромбы */

.rhombs {
    display: flex;
    justify-content: center;
    gap: 0.8rem;
    color: var(--accent);
    font-size: 0.72rem;
    padding: 0.6rem 1.4rem;
    background: var(--bg);
}

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

.fs {
    padding: 4.6rem 1.4rem;
    background: var(--bg);
}

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

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 6rem 1.4rem;
    background: var(--head-bg);
}

.hero-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(120deg, rgba(30, 18, 41, .80) 0%, rgba(45, 27, 61, .55) 55%, rgba(74, 45, 94, .45) 100%);
}

.hero-inner {
    position: relative;
}

.hero-plate {
    max-width: 720px;
    padding: 2.6rem 2.4rem;
    border-radius: 14px;
    background: rgba(45, 27, 61, .62);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    border: 1px solid rgba(224, 214, 235, .18);
}

.hero-title {
    color: #fdfaff;
    margin-bottom: 0.4em;
}

.hero-sub {
    color: #ddcfe9;
    font-size: 1.08rem;
    margin-bottom: 1.6em;
}

.hero-book {
    position: absolute;
    right: 2%;
    bottom: 0;
    width: 320px;
    height: 220px;
    pointer-events: none;
}

/* Блок 2 — сетка иконок */

.icon-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.icon-cell {
    min-width: 0;
    text-align: left;
}

.icon-ring {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 66px;
    height: 66px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid var(--line);
    box-shadow: 0 6px 16px rgba(45, 27, 61, .08);
    margin-bottom: 1rem;
    transition: border-color .25s ease, box-shadow .25s ease;
}

.icon-ring svg {
    width: 32px;
    height: 32px;
    display: block;
}

.icon-cell:hover .icon-ring {
    border-color: var(--accent-2);
    box-shadow: 0 10px 22px rgba(70, 179, 176, .22);
}

.icon-title {
    font-size: 1.3rem;
    margin-bottom: 0.4em;
}

.icon-text {
    color: var(--muted);
    font-size: 0.96rem;
    margin: 0;
}

/* Блок 3 — таймлайн */

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

.tline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 6px;
    bottom: 6px;
    border-left: 2px dotted var(--accent);
    transform: translateX(-1px);
}

.tline-item {
    position: relative;
    width: 50%;
    min-width: 0;
    padding-right: 3.2rem;
    margin-bottom: 2.2rem;
}

.tline-item:nth-child(even) {
    margin-left: 50%;
    padding-right: 0;
    padding-left: 3.2rem;
}

.tline-dot {
    position: absolute;
    top: 22px;
    right: -7px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--accent);
    border: 3px solid var(--bg);
}

.tline-item:nth-child(even) .tline-dot {
    right: auto;
    left: -7px;
}

.tline-active .tline-dot {
    width: 22px;
    height: 22px;
    top: 18px;
    right: -11px;
    background: var(--accent-2);
}

.tline-item:nth-child(even).tline-active .tline-dot {
    right: auto;
    left: -11px;
}

.tline-card {
    background: var(--card);
    border-radius: 12px;
    padding: 1.5rem 1.6rem;
    box-shadow: 0 8px 22px rgba(45, 27, 61, .07);
    min-width: 0;
}

.tline-num {
    display: block;
    font-family: var(--font-head);
    font-size: 1.1rem;
    color: var(--accent-2);
    letter-spacing: 0.14em;
    margin-bottom: 0.3rem;
}

.tline-title {
    font-size: 1.32rem;
    margin-bottom: 0.35em;
}

.tline-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.96rem;
}

/* Блок 4 — статистика */

.fs-stats {
    position: relative;
    padding: 4.6rem 1.6rem;
    background-color: var(--head-bg);
    background-image:
        radial-gradient(ellipse at 12% 0%, rgba(192, 91, 142, .34) 0%, rgba(192, 91, 142, 0) 58%),
        radial-gradient(ellipse at 92% 100%, rgba(70, 179, 176, .28) 0%, rgba(70, 179, 176, 0) 60%),
        linear-gradient(135deg, #2d1b3d 0%, #4a2d5e 100%);
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    margin-top: 1.4rem;
}

.stat-cell {
    min-width: 0;
    padding: 1.4rem 1.4rem 1.4rem 1.6rem;
    border-left: 3px solid rgba(70, 179, 176, .5);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    line-height: 1.05;
    color: var(--accent-2);
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    color: #d8c9e6;
    font-size: 0.95rem;
    line-height: 1.6;
}

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

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

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr));
    gap: 2rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--card);
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(45, 27, 61, .08);
    transition: transform .26s ease, box-shadow .26s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 34px rgba(45, 27, 61, .16);
}

.card-thumb {
    background: #fff;
    padding: 10px 10px 8px;
    border-bottom: 2px solid var(--accent);
    overflow: hidden;
}

.card-thumb a {
    display: block;
}

.card-img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    transition: transform .35s ease;
}

.card:hover .card-img {
    transform: scale(1.02);
}

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

.post-meta {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.post-meta a {
    color: var(--muted);
}

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

.meta-sep {
    margin: 0 0.3rem;
}

.card-title {
    font-size: 1.32rem;
    margin-bottom: 0.5em;
}

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

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

.card-excerpt {
    color: #46394f;
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
}

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

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 1rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5em 0.85em;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.3;
    transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

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

/* ==================================================================
   8. Запись, страница, контент
   ================================================================== */

.single-thumb {
    margin: 1.6rem 0 2rem;
}

.single-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 12px;
}

.entry {
    font-size: 1.03rem;
}

.entry h2 {
    font-size: 1.85rem;
    margin-top: 1.6em;
}

.entry h3 {
    font-size: 1.4rem;
    margin-top: 1.4em;
}

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

.entry blockquote {
    margin: 1.8rem 0;
    padding: 0.9rem 1.4rem 0.9rem 1.5rem;
    border-left: 3px solid var(--accent-2);
    color: #3d3049;
    font-size: 1.06rem;
}

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

.entry table,
.entry th,
.entry td {
    border: 1px solid var(--line);
}

.entry table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
}

.entry th,
.entry td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

.entry code,
.entry pre {
    background: var(--bg-alt);
    border-radius: 6px;
    font-size: 0.94rem;
}

.entry code {
    padding: 0.1em 0.4em;
}

.entry pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

.tag-list {
    margin: 2rem 0 0;
    font-size: 0.9rem;
    color: var(--muted);
}

.tag-list a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.25em 0.75em;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--accent);
}

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

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin: 2.4rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.95rem;
}

.post-nav-next {
    text-align: right;
}

.archive-note {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.lead-404 {
    color: var(--muted);
    max-width: 60ch;
}

.back-home {
    margin-top: 1.6rem;
}

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

.sidebar {
    min-width: 0;
    background: transparent;
    border-left: 1px solid var(--line);
    padding-left: 1.8rem;
}

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

.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.2rem;
    color: var(--ink);
    margin-bottom: 0.8em;
}

.sidebar .widget-title::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

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

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

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

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

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

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

.sidebar .widget p {
    color: #46394f;
    font-size: 0.96rem;
}

/* Виджеты подвала */

.site-bottom {
    background: var(--foot-bg);
    color: #cdbcda;
    padding: 3.4rem 0 2rem;
}

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

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

.site-bottom .widget-title {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-size: 1.15rem;
    color: #f6eefb;
    margin-bottom: 0.8em;
}

.site-bottom .widget-title::before {
    content: "";
    flex: 0 0 auto;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--accent);
}

.site-bottom .widget p,
.site-bottom .widget li,
.site-bottom .widget .textwidget {
    color: #cdbcda;
    font-size: 0.95rem;
}

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

.site-bottom .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(224, 214, 235, .12);
}

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

.site-bottom .widget a {
    color: #e3d5ee;
}

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

.site-bottom .widget .post-date {
    display: block;
    font-size: 0.82rem;
    color: #a08cb0;
}

.foot-copy {
    margin: 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(224, 214, 235, .14);
    color: #a795b5;
    font-size: 0.9rem;
}

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

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

.search-label {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    margin-bottom: 0.45rem;
}

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

.search-field {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.62em 0.9em;
    border: 2px solid var(--line);
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.98rem;
}

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

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

.comments-title {
    font-size: 1.6rem;
}

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

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

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

.comment-body {
    background: #fff;
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 18px rgba(45, 27, 61, .06);
}

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

.comment-author {
    font-family: var(--font-head);
    font-size: 1.08rem;
}

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

.comment-wait {
    color: var(--muted);
    font-style: italic;
}

.comment-actions {
    font-size: 0.9rem;
}

.comment-respond {
    margin-top: 2rem;
}

.comment-reply-title {
    font-size: 1.4rem;
}

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

.comment-form label {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 0.35rem;
}

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

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

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

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    border-radius: 8px;
    border: 2px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: 0.66em 1.5em;
    font-family: var(--font-body);
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
}

.comment-form .form-submit input[type="submit"]:hover,
.comment-form .submit:hover {
    background: var(--accent-dk);
    border-color: var(--accent-dk);
}

.comments-closed {
    color: var(--muted);
}

/* ==================================================================
   11. 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: center;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: rgba(30, 18, 41, .96);
    border-top: 3px solid var(--accent);
    color: #e6d9ef;
}

.cookie-text {
    margin: 0;
    max-width: 70ch;
    font-size: 0.92rem;
    line-height: 1.55;
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.5em 1.4em;
    font-size: 0.92rem;
}

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

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

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

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .primary-nav {
        flex: 1 0 100%;
        display: none;
    }

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

    .nav-list {
        flex-direction: column;
        gap: 0;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(224, 214, 235, .16);
    }

    .nav-list li {
        border-bottom: 1px solid rgba(224, 214, 235, .1);
    }

    .nav-list a {
        display: block;
        padding: 0.7em 0;
        border-bottom: 0;
    }

    .layout-with-sidebar {
        display: block;
    }

    .sidebar {
        margin-top: 3rem;
        padding-left: 0;
        padding-top: 2rem;
        border-left: 0;
        border-top: 1px solid var(--line);
    }

    .layout-single {
        width: 100%;
    }

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

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

    .stats-row {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1.2rem;
    }

    .stat-num {
        font-size: 2.4rem;
    }

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

    .hero-book {
        width: 220px;
        height: 150px;
        opacity: .8;
    }
}

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

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.5rem; }
    h3 { font-size: 1.25rem; }

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

    .sec-title::before,
    .sidebar .widget-title::before,
    .site-bottom .widget-title::before {
        width: 10px;
        height: 10px;
    }

    .fs {
        padding: 2.8rem 1.1rem;
    }

    .fs-hero {
        padding: 3.4rem 1.1rem;
    }

    .fs-stats {
        padding: 2.8rem 1.2rem;
    }

    .hero-plate {
        padding: 1.7rem 1.4rem;
    }

    .hero-sub {
        font-size: 1rem;
    }

    .hero-book {
        display: none;
    }

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

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

    .tline::before {
        left: 7px;
        transform: none;
    }

    .tline-item,
    .tline-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding-left: 2.4rem;
        padding-right: 0;
    }

    .tline-dot,
    .tline-item:nth-child(even) .tline-dot {
        left: 1px;
        right: auto;
        top: 20px;
    }

    .tline-active .tline-dot,
    .tline-item:nth-child(even).tline-active .tline-dot {
        left: -3px;
        right: auto;
    }

    .tline-card {
        padding: 1.2rem 1.2rem;
    }

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

    .stat-cell {
        padding: 1rem 1.1rem 1rem 1.2rem;
    }

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

    .card-body {
        padding: 1.2rem 1.2rem 1.4rem;
    }

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

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

    .post-nav-next {
        text-align: left;
    }
}
