/*
Theme Name: dds_forwardknot.com
Author: Нина Королёва
Description: Тема для информационного сайта о макраме и рукоделии. Японский минимализм, холодная фиолетовая палитра, асимметричная сетка.
Version: 1.1
Text Domain: fwknot
*/

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

:root {
    --bg:        #F6F3F8;
    --bg-alt:    #EBE4F0;
    --bg-card:   #FFFFFF;
    --foot:      #2B2533;
    --ink:       #2C2634;
    --accent:    #9B6B9F;
    --accent-2:  #C9A6D1;
    --muted:     #A69BB0;
    --line:      #D6CDDF;
    --shell:     1180px;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background-color: var(--bg);
    background-image:
        radial-gradient(circle, rgba(155,107,159,0.13) 0.7px, transparent 0.8px),
        radial-gradient(circle, rgba(155,107,159,0.09) 0.7px, transparent 0.8px);
    background-size: 22px 22px, 22px 22px;
    background-position: 0 0, 11px 11px;
    color: var(--ink);
    font-family: "Helvetica Neue", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    letter-spacing: 0.02em;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dashed transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

a:hover, a:focus { border-bottom-color: var(--accent); }

h1, h2, h3, h4, h5, h6 {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", "Helvetica Neue", Arial, sans-serif;
    font-weight: 600;
    color: var(--ink);
    letter-spacing: -0.01em;
    line-height: 1.2;
    margin: 0 0 0.7em;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.15em; }

blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.6rem 1.4rem 2.2rem;
    background: var(--bg-alt);
    border: 0;
    position: relative;
    font-size: 1.08rem;
}

blockquote::before {
    content: "";
    position: absolute;
    left: 0.8rem; top: 1.4rem;
    width: 3px; height: 55%;
    background-image: radial-gradient(circle, var(--accent) 1.5px, transparent 1.6px);
    background-size: 3px 12px;
    background-repeat: repeat-y;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--bg-alt);
    font-size: 0.92em;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    font-size: 0.96rem;
}

table th, table td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}

table th { background: var(--bg-alt); font-weight: 600; }

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

/* Маркер-«узел» вместо буллита */
.entry-body ul,
.knot-list {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1.3em;
}

.entry-body ul li,
.knot-list li {
    position: relative;
    padding-left: 1.9rem;
    margin-bottom: 0.55em;
}

.entry-body ul li::before,
.knot-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 13px; height: 13px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.4' fill='none' stroke='%239B6B9F' stroke-width='1.4'/%3E%3Cpath d='M3.4 3.4 12.6 12.6M12.6 3.4 3.4 12.6' stroke='%239B6B9F' stroke-width='1.2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

/* ==================================================================
   2. Контейнер и раскладки
   ================================================================== */

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

.site-main { padding: 2.6rem 0 3.6rem; }

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

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

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

/* ==================================================================
   3. Кнопки
   ================================================================== */

.btn {
    display: inline-block;
    padding: 0.68rem 1.5rem;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.btn:hover, .btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    transform: translate(3px, 3px);
}

.btn-light {
    color: var(--bg);
    border-color: var(--accent-2);
}

.btn-light:hover, .btn-light:focus {
    background: var(--accent-2);
    color: var(--ink);
}

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

.site-head {
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    position: static;
}

.head-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.5rem 0 1.3rem;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    border-bottom: 0;
}

.brand:hover { border-bottom: 0; }

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

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

.brand-name {
    display: block;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 1.12rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: 0.01em;
}

.brand-desc {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 0.28rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    color: var(--ink);
    padding: 0.5rem 0.9rem;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    cursor: pointer;
    border-radius: 0;
}

.main-nav ul {
    list-style: none;
    display: flex;
    gap: 1.7rem;
    margin: 0;
    padding: 0;
    flex-wrap: wrap;
}

.main-nav a {
    color: var(--ink);
    font-size: 0.93rem;
    letter-spacing: 0.05em;
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
}

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

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

.trail {
    padding: 1.1rem 0 0;
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}

.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.trail-sep { color: var(--accent-2); margin: 0 0.25rem; }

/* ==================================================================
   6. Заголовки секций (асимметрия + линия-акцент)
   ================================================================== */

.sec-title {
    margin: 0 0 1.6rem -2.2rem;
    font-size: 2rem;
}

.sec-title span {
    display: inline-block;
    padding-bottom: 0.45rem;
    border-bottom: 1px solid var(--accent);
}

.page-title {
    font-size: 2.6rem;
    margin: 0 0 1.4rem;
    padding-left: 1.6rem;
}

.page-title span {
    display: inline-block;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--accent);
}

/* ==================================================================
   7. Главная: секции
   ================================================================== */

.fs {
    position: relative;
    padding: 4rem 0;
    overflow: hidden;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.55), rgba(255,255,255,0));
}

.fs-inner { width: 85%; margin-left: auto; margin-right: auto; }

.blob::after {
    content: "";
    position: absolute;
    right: -60px; bottom: -80px;
    width: 320px; height: 320px;
    background: var(--accent-2);
    opacity: 0.28;
    filter: blur(60px);
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.fs > * { position: relative; z-index: 1; }

.kanji-mark {
    position: absolute;
    color: var(--accent);
    opacity: 0.07;
    font-size: 7rem;
    line-height: 1;
    writing-mode: vertical-rl;
    letter-spacing: 0.1em;
    pointer-events: none;
    user-select: none;
    z-index: 0;
}

.kanji-a { top: 8%; right: 4%; }
.kanji-b { bottom: 6%; left: 2%; }

/* --- 7.1 Hero --- */

.hero {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--bg-alt);
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(246,243,248,0.94) 0%, rgba(246,243,248,0.80) 46%, rgba(235,228,240,0.35) 100%);
    z-index: 1;
}

.hero-body {
    position: relative;
    z-index: 2;
    width: min(92%, var(--shell));
    margin-inline: auto;
    padding: 5.5rem 1.4rem 5.5rem 0;
}

.hero-inner {
    max-width: 720px;
    margin-left: 12%;
    padding: 0 1.6rem;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.78rem;
    letter-spacing: 0.28em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--accent-2);
}

.hero h1 {
    font-size: 3.5rem;
    line-height: 1.08;
    margin: 0 0 1.3rem;
}

.hero-lead {
    font-size: 1.06rem;
    color: var(--ink);
    max-width: 54ch;
    margin-bottom: 2rem;
}

.hero-sign {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--muted);
    margin-bottom: 2rem;
}

.hero-sign::before {
    content: "";
    display: inline-block;
    width: 34px; height: 1px;
    background: var(--accent);
    vertical-align: middle;
    margin-right: 0.7rem;
}

/* --- 7.2 Чек-лист --- */

.check-wrap {
    width: 78%;
    margin-left: auto;
    margin-right: 0;
}

.check-list { list-style: none; margin: 0; padding: 0; }

.check-list li {
    position: relative;
    padding: 0 0 1.5rem 2.6rem;
    margin-bottom: 1.5rem;
    border-bottom: 1px solid var(--line);
}

.check-list li:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.check-list li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.35rem;
    width: 18px; height: 18px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.4' fill='none' stroke='%239B6B9F' stroke-width='1.4'/%3E%3Cpath d='M3.4 3.4 12.6 12.6M12.6 3.4 3.4 12.6' stroke='%239B6B9F' stroke-width='1.2'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.check-list h3 { margin: 0 0 0.35rem; font-size: 1.18rem; }
.check-list p { margin: 0; color: #56495F; }

/* --- 7.3 Цитата --- */

.fs-quote .quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 2rem;
    align-items: center;
}

.quote-plate {
    position: relative;
    padding: 2.6rem 2.4rem 2.6rem 3.2rem;
    background: rgba(255,255,255,0.55);
    border: 1px solid var(--line);
    min-width: 0;
}

.quote-plate::before {
    content: "";
    position: absolute;
    left: 1.4rem; top: -2.2rem;
    width: 5px; height: 6.6rem;
    background-image: radial-gradient(circle, var(--accent) 2.2px, transparent 2.3px);
    background-size: 5px 18px;
    background-repeat: repeat-y;
}

.quote-plate blockquote {
    margin: 0;
    padding: 0;
    background: none;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 1.6rem;
    line-height: 1.4;
}

.quote-plate blockquote::before { display: none; }

.quote-author {
    display: block;
    margin-top: 1.4rem;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.85rem;
    letter-spacing: 0.14em;
    color: var(--muted);
}

/* --- 7.4 Рубрикатор --- */

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

.rubric-tile {
    display: block;
    padding: 2.4rem 1.8rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    text-align: left;
    color: var(--ink);
    min-width: 0;
    clip-path: polygon(0 0, calc(100% - 22px) 0, 100% 22px, 100% 100%, 0 100%);
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

.rubric-tile:hover, .rubric-tile:focus {
    background: var(--bg-alt);
    border-color: var(--accent);
    border-bottom: 1px solid var(--accent);
}

.rubric-tile svg { display: block; margin-bottom: 1.4rem; }

.rubric-tile span {
    display: block;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 1.22rem;
    letter-spacing: 0.02em;
}

/* --- 7.5 Последние записи на главной --- */

.fs-latest .latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.fs-latest .sec-title { margin-bottom: 0; }

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

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

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

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

.card:hover { background: var(--bg-alt); border-color: var(--accent); }

.card-thumb-wrap {
    width: 86%;
    display: block;
    overflow: hidden;
}

.card-thumb-wrap a { display: block; border-bottom: 0; }

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

.card-thumb-empty {
    width: 86%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-alt);
    background-image:
        radial-gradient(circle at 30% 40%, rgba(201,166,209,0.55) 0, transparent 55%),
        radial-gradient(circle at 72% 68%, rgba(155,107,159,0.35) 0, transparent 52%);
}

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

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

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

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

.card-excerpt { color: #56495F; font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin-top: auto; padding-top: 1.1rem; }

.card-more .btn { padding: 0.5rem 1.1rem; font-size: 0.85rem; }

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

.entry {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 2.4rem 2.4rem 2.6rem;
}

.entry-title { font-size: 2.1rem; margin-bottom: 0.6rem; }

.entry-meta {
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.8rem;
    padding-bottom: 1.1rem;
    border-bottom: 1px solid var(--line);
}

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

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

.entry-body { font-size: 1.02rem; }

.entry-body h2 { margin-top: 2rem; font-size: 1.6rem; }
.entry-body h3 { margin-top: 1.7rem; }

.entry-body img { display: block; height: auto; }

.entry-tags {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.86rem;
    color: var(--muted);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 1.8rem;
    font-size: 0.9rem;
}

.archive-head { margin-bottom: 2rem; }
.archive-desc { color: var(--muted); }

.no-posts {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem;
}

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 1.6rem 1.6rem 1.8rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    font-size: 1.05rem;
    margin: 0 0 1.1rem;
    color: var(--ink);
}

.sidebar .widget-title span {
    display: inline-block;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--accent);
}

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

.sidebar .widget ul li {
    position: relative;
    padding: 0 0 0.75rem 1.5rem;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
    color: var(--ink);
}

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

.sidebar .widget ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.5em;
    width: 11px; height: 11px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.4' fill='none' stroke='%239B6B9F' stroke-width='1.6'/%3E%3Cpath d='M3.4 3.4 12.6 12.6M12.6 3.4 3.4 12.6' stroke='%239B6B9F' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.sidebar .widget a { color: var(--ink); }
.sidebar .widget a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: 0.76rem; color: var(--muted); letter-spacing: 0.06em; }
.sidebar .widget p { color: #56495F; font-size: 0.94rem; }

/* ==================================================================
   11. Поиск
   ================================================================== */

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

.search-form label { flex: 1 1 190px; min-width: 0; }

.search-form .search-field {
    width: 100%;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0;
}

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 1px solid var(--line);
    background: var(--bg-card);
    color: var(--ink);
    font-size: 0.92rem;
    letter-spacing: 0.04em;
    border-radius: 0;
    transition: background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

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

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

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

/* ==================================================================
   13. Комментарии
   ================================================================== */

.comments-area {
    margin-top: 2.4rem;
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem 2.2rem;
}

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

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

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

.comment-inner {
    border-left: 2px solid var(--accent-2);
    padding: 0.2rem 0 0.2rem 1.2rem;
}

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

.comment-author { font-weight: 600; }
.comment-date { font-size: 0.78rem; color: var(--muted); letter-spacing: 0.06em; }
.comment-hold { font-size: 0.85rem; color: var(--muted); }
.comment-actions { font-size: 0.85rem; }

.comment-form label {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    margin-bottom: 0.3rem;
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.62rem 0.9rem;
    border: 1px solid var(--line);
    background: #FFFFFF;
    color: var(--ink);
    font-family: inherit;
    font-size: 0.95rem;
    border-radius: 0;
}

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

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

.comment-form .submit {
    display: inline-block;
    padding: 0.68rem 1.5rem;
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    background: transparent;
    border: 1px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
    transition: transform 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: #FFFFFF;
    transform: translate(3px, 3px);
}

/* ==================================================================
   14. 404
   ================================================================== */

.err-box {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    background: var(--bg-card);
    border: 1px solid var(--line);
    padding: 3rem 2.6rem;
}

.err-code {
    font-family: "Futura", "Century Gothic", "Trebuchet MS", Arial, sans-serif;
    font-size: 4.6rem;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 1rem;
}

.err-box .search-form { margin: 1.6rem 0 1.8rem; max-width: 460px; }

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

.site-foot {
    background: var(--foot);
    color: #DCD3E4;
    padding: 3.4rem 0 1.6rem;
    margin-top: 3rem;
}

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

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

.site-foot .widget { margin-bottom: 1.6rem; color: #DCD3E4; }
.site-foot .widget:last-child { margin-bottom: 0; }

.site-foot .widget-title {
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0 0 1.1rem;
}

.site-foot .widget-title span {
    display: inline-block;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid var(--accent-2);
}

.site-foot .widget p { color: #C3B8CE; font-size: 0.92rem; }

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

.site-foot .widget ul li {
    position: relative;
    padding: 0 0 0.6rem 1.4rem;
    margin-bottom: 0.6rem;
    font-size: 0.93rem;
    color: #DCD3E4;
}

.site-foot .widget ul li::before {
    content: "";
    position: absolute;
    left: 0; top: 0.55em;
    width: 10px; height: 10px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='6.4' fill='none' stroke='%23C9A6D1' stroke-width='1.6'/%3E%3Cpath d='M3.4 3.4 12.6 12.6M12.6 3.4 3.4 12.6' stroke='%23C9A6D1' stroke-width='1.4'/%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
}

.site-foot .widget a { color: #DCD3E4; }
.site-foot .widget a:hover { color: #FFFFFF; border-bottom-color: var(--accent-2); }
.site-foot .widget .post-date { display: block; font-size: 0.76rem; color: #A99DB6; letter-spacing: 0.06em; }

.foot-bottom {
    margin-top: 2.6rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(201,166,209,0.28);
    font-size: 0.82rem;
    color: #A99DB6;
    letter-spacing: 0.05em;
}

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

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

.cookie-bar {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    padding: 1.1rem 1.6rem;
    background: var(--foot);
    color: #DCD3E4;
    border-top: 1px solid var(--accent);
    font-size: 0.9rem;
}

.cookie-bar p { margin: 0; max-width: 78ch; color: #DCD3E4; }
.cookie-bar a { color: var(--accent-2); }

/* ==================================================================
   17. Служебные классы WordPress
   ================================================================== */

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

.alignleft { float: left; margin: 0.4rem 1.5rem 1rem 0; }
.alignright { float: right; margin: 0.4rem 0 1rem 1.5rem; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.alignnone { display: block; }

.wp-caption { max-width: 100%; }
.wp-caption img { display: block; }

.wp-caption-text,
.entry-body figcaption {
    font-size: 0.83rem;
    color: var(--muted);
    padding-top: 0.5rem;
}

.entry-body figure { margin: 1.6rem 0; }

.page-links {
    margin-top: 1.6rem;
    font-size: 0.9rem;
    letter-spacing: 0.05em;
}

.sticky .card-title::before {
    content: "Закреплено";
    display: block;
    font-family: "Helvetica Neue", Arial, sans-serif;
    font-size: 0.7rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.4rem;
}

.comment-form p { margin-bottom: 1.1rem; }
.comment-form .form-submit { margin-bottom: 0; }

.comments-area .navigation { margin-bottom: 1.8rem; font-size: 0.9rem; }

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

@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single { width: 100%; }
    .fs-inner { width: 100%; }
    .hero-inner { margin-left: 0; }
    .hero h1 { font-size: 2.7rem; }
    .check-wrap { width: 100%; }
    .fs-quote .quote-grid { grid-template-columns: minmax(0, 1fr); }
    .rubric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .err-box { width: 100%; }
    .kanji-mark { font-size: 5rem; }
}

@media (max-width: 700px) {
    .nav-toggle { display: inline-block; }
    .main-nav {
        flex-basis: 100%;
        display: none;
        padding-top: 0.6rem;
    }
    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0.1rem; }
    .main-nav li { border-bottom: 1px solid var(--line); }
    .main-nav a { display: block; padding: 0.7rem 0; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.9rem; }
    h2 { font-size: 1.5rem; }
    .fs { padding: 2.8rem 0; }
    .hero { min-height: 0; }
    .hero-body { padding: 3.2rem 0; }
    .hero-inner { padding: 0 1.2rem; }
    .hero h1 { font-size: 2.1rem; }
    .sec-title { margin-left: 0; font-size: 1.55rem; }
    .page-title { font-size: 1.9rem; padding-left: 0; }
    .rubric-grid { grid-template-columns: minmax(0, 1fr); }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .entry { padding: 1.5rem 1.3rem 1.7rem; }
    .comments-area { padding: 1.4rem 1.2rem 1.6rem; }
    .quote-plate { padding: 1.8rem 1.4rem 1.8rem 2.2rem; }
    .quote-plate blockquote { font-size: 1.24rem; }
    .rubric-tile { padding: 1.8rem 1.4rem; }
    .err-box { padding: 2rem 1.4rem; }
    .cookie-bar { padding: 1rem 1.2rem; font-size: 0.86rem; }
    .card-thumb-wrap, .card-thumb-empty { width: 100%; }
    .kanji-mark { display: none; }
    .blob::after { width: 200px; height: 200px; }
}
