/*
Theme Name: dds_eightacresofeden.com
Theme URI: https://eightacresofeden.com/
Author: Софья Калинина
Description: Индивидуальная тема информационного проекта о женской одежде, обуви и аксессуарах. Журнальная типографика, фиолетовая палитра, разборы по факторам выбора.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.5
Requires PHP: 8.0
Text Domain: edenwear
*/

/* ------------------------------------------------------------------
   1. Переменные и базовые правила
   ------------------------------------------------------------------ */

:root {
    --bg-page: #F9F6F2;
    --bg-alt: #F0EBF3;
    --bg-white: #FFFFFF;
    --bg-deep: #2B2233;
    --ink: #2E2636;
    --accent: #9B6B9C;
    --accent-dark: #845B85;
    --accent-soft: #C9A8B0;
    --muted: #9A8C9E;
    --line: #E3DAE6;
    --radius: 6px;
    --font-head: "Jost", "Futura", "Century Gothic", "Trebuchet MS", "Segoe UI", sans-serif;
    --font-body: Georgia, "Times New Roman", "PT Serif", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg-page);
    background-image:
        repeating-linear-gradient(45deg, rgba(46, 38, 54, 0.035) 0 1px, transparent 1px 9px),
        repeating-linear-gradient(-45deg, rgba(46, 38, 54, 0.035) 0 1px, transparent 1px 9px);
    background-size: 18px 18px;
    background-attachment: fixed;
}

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

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

p {
    margin: 0 0 1.1em;
}

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

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

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

/* Анимированное подчёркивание текстовых ссылок */
.text-link,
.entry-content a,
.widget a,
.crumbs a {
    position: relative;
    display: inline;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 1px;
    transition: background-size 0.28s ease;
    padding-bottom: 1px;
}

.text-link:hover,
.entry-content a:hover,
.widget a:hover,
.crumbs a:hover {
    background-size: 100% 1px;
}

/* ------------------------------------------------------------------
   2. Кнопки
   ------------------------------------------------------------------ */

.btn,
.btn-ghost {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.94rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.72rem 1.5rem;
    border-radius: 3px;
    border: 1px solid var(--accent);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
    cursor: pointer;
}

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

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 6px 14px rgba(43, 34, 51, 0.18);
    color: #fff;
}

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

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

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

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

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

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

.brand-mark {
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
}

.brand-logo {
    max-height: 64px;
    width: auto;
}

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

.brand-title {
    font-family: var(--font-head);
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 600;
    color: var(--ink);
    display: block;
    letter-spacing: -0.01em;
}

.brand-title a { color: inherit; }

.brand-desc {
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    margin: 0.3rem 0 0;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.55rem 1rem;
    border-radius: 3px;
    cursor: pointer;
}

.head-nav[hidden] { display: none !important; }

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

.head-nav a {
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    color: var(--ink);
    padding-bottom: 3px;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ------------------------------------------------------------------
   4. Хлебные крошки, каркас страниц
   ------------------------------------------------------------------ */

.site-body {
    padding: 2.2rem 0 4rem;
}

.crumbs {
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    letter-spacing: 0.02em;
}

.crumbs a { color: var(--accent); }
.crumbs-sep { color: var(--accent-soft); margin: 0 0.35rem; }

.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);
    gap: 3.4rem;
    align-items: start;
}

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

/* ------------------------------------------------------------------
   5. Заголовки секций и декор
   ------------------------------------------------------------------ */

.sec-title {
    font-size: 2.1rem;
    margin: 0 0 1.6rem;
    position: relative;
    line-height: 1.2;
}

.sec-title-lead {
    display: inline-block;
    color: var(--accent-soft);
    transform: translateY(-8px);
}

.sec-title-rest { display: inline-block; }

.sec-title::after {
    content: "";
    display: block;
    width: 33%;
    max-width: 220px;
    height: 1px;
    background: var(--accent-soft);
    margin-top: 1rem;
}

.stitch {
    height: 2px;
    border: 0;
    margin: 2.6rem 0;
    background-image: repeating-linear-gradient(90deg,
        var(--accent-soft) 0 16px,
        transparent 16px 24px,
        var(--accent-soft) 24px 30px,
        transparent 30px 42px);
    opacity: 0.7;
}

.wave-divider {
    height: 26px;
    margin: 2.2rem 0;
    opacity: 0.35;
    background-repeat: repeat-x;
    background-size: 220px 26px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='26' viewBox='0 0 220 26'%3E%3Cpath d='M0 13 Q27.5 1 55 13 T110 13 T165 13 T220 13' fill='none' stroke='%239B6B9C' stroke-width='1.4'/%3E%3C/svg%3E");
}

.fs-lead {
    max-width: 70ch;
    color: #4A4053;
    margin-bottom: 2rem;
}

.entry-content h2,
.entry-content h3,
.fs-step h3,
.fs-tl-body h3 {
    position: relative;
    padding-left: 1.15em;
}

.entry-content h2::before,
.entry-content h3::before,
.fs-step h3::before,
.fs-tl-body h3::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0.06em;
    font-size: 0.62em;
    color: var(--accent-soft);
}

/* ------------------------------------------------------------------
   6. Главная — общие секции
   ------------------------------------------------------------------ */

.front-shell { display: block; width: 85%; margin-left: auto; margin-right: auto; }

.fsec {
    padding: 3.6rem 2.4rem;
    border-radius: var(--radius);
    margin-bottom: 2.6rem;
}

.fsec--plain { padding-left: 0; padding-right: 0; }

.fsec--alt {
    background-color: var(--bg-alt);
    border: 1px solid var(--line);
}

/* 6.1 Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    background-color: var(--bg-white);
    background-image:
        linear-gradient(135deg, rgba(155, 107, 156, 0.10) 0%, rgba(249, 246, 242, 0) 62%),
        repeating-linear-gradient(45deg, rgba(46, 38, 54, 0.05) 0 1px, transparent 1px 11px),
        repeating-linear-gradient(-45deg, rgba(46, 38, 54, 0.05) 0 1px, transparent 1px 11px);
    background-size: auto, 22px 22px, 22px 22px;
    border: 1px solid var(--line);
    padding: 4rem 2.8rem;
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: -70px;
    bottom: -90px;
    width: 340px;
    height: 340px;
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cpath d='M43 128c-14-26-3-58 22-74 24-16 60-16 79 5 20 21 17 57-2 78-19 22-55 30-77 16-9-6-16-15-22-25z' fill='%23C9A8B0' fill-opacity='0.15'/%3E%3C/svg%3E");
}

.fs-hero-grid {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
    gap: 3rem;
    align-items: center;
}

.fs-hero h1 {
    font-size: 4.2rem;
    margin-bottom: 1rem;
    letter-spacing: -0.03em;
}

.fs-hero h1 .hero-accent { color: var(--accent); }

.fs-hero-sub {
    font-size: 1.1rem;
    color: #4A4053;
    max-width: 52ch;
}

.fs-hero-note {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.2rem;
}

.fs-hero-actions {
    display: flex;
    gap: 0.9rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.fs-hero-copy { min-width: 0; }

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

.fs-hero-art img {
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: contain;
}

/* 6.2 Пошаговый блок */
.fs-steps-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
    position: relative;
}

.fs-steps-row::before {
    content: "";
    position: absolute;
    top: 34px;
    left: 8%;
    right: 8%;
    height: 1px;
    background-image: repeating-linear-gradient(90deg, var(--accent-soft) 0 8px, transparent 8px 16px);
}

.fs-step {
    position: relative;
    z-index: 1;
    min-width: 0;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
}

.fs-step-num {
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    display: block;
    margin-bottom: 0.6rem;
}

.fs-step-icon {
    width: 34px;
    height: 34px;
    margin-bottom: 0.7rem;
    color: var(--accent-soft);
}

.fs-step h3 {
    font-size: 1.15rem;
    margin-bottom: 0.45rem;
}

.fs-step p {
    font-size: 0.95rem;
    margin: 0;
    color: #4A4053;
}

/* 6.3 Таймлайн */
.fs-timeline {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.fs-tl-item {
    display: grid;
    grid-template-columns: 96px 1fr;
    gap: 1.6rem;
    align-items: start;
    position: relative;
    padding: 1.1rem 0 1.6rem;
}

.fs-tl-item::before {
    content: "";
    position: absolute;
    left: 108px;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--accent-soft);
}

.fs-tl-item:last-child::before { bottom: 50%; }
.fs-tl-item:first-child::before { top: 1.6rem; }

.fs-tl-item::after {
    content: "";
    position: absolute;
    left: 103px;
    top: 1.5rem;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg-page);
    border: 2px solid var(--accent);
}

.fs-tl-num {
    font-family: var(--font-head);
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--accent);
    text-align: right;
    line-height: 1.2;
}

.fs-tl-body {
    min-width: 0;
    padding-left: 2.1rem;
}

.fs-tl-body h3 {
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}

.fs-tl-body p {
    margin: 0;
    font-size: 0.97rem;
    color: #4A4053;
}

/* 6.4 Статистика */
.fs-stats {
    background-color: var(--bg-alt);
    background-image:
        linear-gradient(140deg, rgba(155, 107, 156, 0.16) 0%, rgba(240, 235, 243, 0) 70%),
        repeating-linear-gradient(45deg, rgba(46, 38, 54, 0.07) 0 1px, transparent 1px 10px),
        repeating-linear-gradient(-45deg, rgba(46, 38, 54, 0.07) 0 1px, transparent 1px 10px);
    background-size: auto, 20px 20px, 20px 20px;
    border: 1px solid var(--line);
}

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

.fs-stat {
    min-width: 0;
    text-align: center;
    padding: 0.6rem 0.8rem;
}

.fs-stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.2rem;
    font-weight: 700;
    line-height: 1;
    background-image: linear-gradient(120deg, var(--accent) 0%, var(--accent-soft) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.5rem;
}

.fs-stat-label {
    font-family: var(--font-head);
    font-size: 0.86rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ink);
    display: block;
    margin-bottom: 0.3rem;
}

.fs-stat-note {
    font-size: 0.9rem;
    color: #4A4053;
    margin: 0;
}

/* 6.5 Последние записи на главной */
.fs-latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.fs-latest-head .sec-title { margin-bottom: 1.1rem; }

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-white);
    border-radius: var(--radius);
    border-top: 3px solid var(--accent);
    box-shadow: 0 6px 12px rgba(43, 34, 51, 0.08);
    overflow: hidden;
    transition: box-shadow 0.28s ease, transform 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 26px rgba(43, 34, 51, 0.16);
    border-top-color: var(--accent-soft);
}

.card-thumb {
    padding: 14px 14px 0;
}

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

.card-thumb-empty {
    margin: 14px 14px 0;
    aspect-ratio: 16 / 9;
    border-radius: 3px;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(155, 107, 156, 0.14) 0 2px, transparent 2px 12px);
}

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

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

.card-meta a { color: var(--muted); }
.card-meta a:hover { color: var(--accent); }
.meta-sep { color: var(--accent-soft); }

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

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

.card-excerpt {
    font-size: 0.96rem;
    color: #4A4053;
    margin-bottom: 1.1rem;
}

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

.card-more { margin-top: auto; }

.card-more a {
    font-family: var(--font-head);
    font-size: 0.83rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid var(--accent-soft);
    padding-bottom: 2px;
}

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

/* ------------------------------------------------------------------
   8. Записи и страницы
   ------------------------------------------------------------------ */

.page-head { margin-bottom: 2rem; }

.page-head h1,
.entry-header h1 {
    font-size: 2.8rem;
    margin-bottom: 0.5rem;
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

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

.entry-thumb {
    margin-bottom: 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
    border-top: 3px solid var(--accent);
}

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

.entry-content { font-size: 1.03rem; }

.entry-content h2 { font-size: 1.8rem; margin-top: 2rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.6rem; }

.entry-content ul,
.entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2em; }
.entry-content li { margin-bottom: 0.45em; }

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 3px;
    font-style: italic;
}

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

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--ink);
    font-size: 0.96rem;
}

.entry-content th,
.entry-content td {
    border: 1px solid var(--ink);
    padding: 0.65rem 0.8rem;
    text-align: left;
}

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

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.4rem 0;
    padding: 0.24rem 0.7rem;
    border: 1px solid var(--accent-soft);
    border-radius: 3px;
    color: var(--accent);
}

.entry-tags a:hover { background: var(--accent); color: #fff; }

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

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

/* ------------------------------------------------------------------
   9. Пагинация
   ------------------------------------------------------------------ */

.comments-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 1.4rem 0 2rem;
}

.comments-pagination .page-numbers,
.pager .page-numbers { color: var(--ink); }

.comments-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 3px;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
    justify-content: center;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--ink);
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 3px;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager .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;
}

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

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

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

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

.search-form input[type="search"] {
    width: 100%;
    padding: 0.68rem 0.9rem;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

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

.comments-box h2 { font-size: 1.6rem; }

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

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

.comment-inner {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--ink);
}

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

.comment-actions {
    font-family: var(--font-head);
    font-size: 0.85rem;
}

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

.comment-respond {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
    background: var(--bg-page);
    border: 1px solid var(--line);
    border-radius: 3px;
}

.comment-form textarea { min-height: 140px; }

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.88rem;
    margin-bottom: 0.3rem;
}

.comment-form p { margin-bottom: 1rem; }

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.94rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.72rem 1.5rem;
    border-radius: 3px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease, box-shadow 0.25s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    box-shadow: 0 6px 14px rgba(43, 34, 51, 0.18);
}

/* ------------------------------------------------------------------
   12. Подвал
   ------------------------------------------------------------------ */

.site-foot {
    background: var(--bg-deep);
    color: #E4DCE9;
    padding: 3.2rem 0 1.6rem;
    margin-top: 2rem;
}

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

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

.site-foot .widget {
    color: #E4DCE9;
    margin-bottom: 1.4rem;
}

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(228, 220, 233, 0.22);
}

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

.site-foot .widget a { color: #E9CFD6; }
.site-foot .widget a:hover { color: #FFFFFF; }

.site-foot .widget .post-date { color: #B9A9BF; }

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

.site-foot .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px dashed rgba(228, 220, 233, 0.16);
}

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

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(228, 220, 233, 0.2);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: #C3B5C9;
    text-align: center;
}

/* ------------------------------------------------------------------
   13. 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;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: var(--bg-deep);
    color: #E4DCE9;
    border-top: 3px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    max-width: 70ch;
}

.cookie-banner a { color: #E9CFD6; }

.cookie-accept {
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    border-radius: 3px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

.cookie-accept:hover { background: var(--accent-dark); }

/* ------------------------------------------------------------------
   14. Служебные блоки
   ------------------------------------------------------------------ */

.notice-box {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-left: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 1.4rem 1.6rem;
}

.error-404 {
    background: var(--bg-white);
    border: 1px solid var(--line);
    border-top: 3px solid var(--accent);
    border-radius: var(--radius);
    padding: 2.6rem 2.2rem;
    text-align: center;
}

.error-404 .code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-soft);
    display: block;
    margin-bottom: 0.6rem;
}

.error-404 .search-form { justify-content: center; max-width: 460px; margin: 1.6rem auto 1.4rem; }

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

/* ------------------------------------------------------------------
   15. Адаптив
   ------------------------------------------------------------------ */

@media (max-width: 960px) {
    h1 { font-size: 3rem; }
    .fs-hero h1 { font-size: 3rem; }

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

    .layout-single,
    .front-shell { width: 100%; }

    .fs-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .fs-hero-art img { aspect-ratio: 4 / 3; max-height: 340px; margin-inline: auto; }

    .fs-steps-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-steps-row::before { display: none; }

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

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

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

    h1 { font-size: 2.2rem; }
    h2 { font-size: 1.6rem; }
    .sec-title { font-size: 1.6rem; }
    .fs-hero h1 { font-size: 2.2rem; }
    .page-head h1, .entry-header h1 { font-size: 1.9rem; }

    .nav-toggle { display: inline-block; }

    .head-inner { padding: 1.1rem 0; }

    .head-nav {
        flex: 1 1 100%;
        width: 100%;
    }

    .head-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.7rem;
        padding-top: 0.8rem;
        border-top: 1px solid var(--line);
        width: 100%;
    }

    .fsec { padding: 2.2rem 1.4rem; margin-bottom: 1.8rem; }
    .fsec--plain { padding-left: 0; padding-right: 0; }
    .fs-hero { padding: 2.2rem 1.4rem; }
    .fs-hero::after { width: 200px; height: 200px; right: -50px; bottom: -60px; }

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

    .fs-tl-item { grid-template-columns: 54px 1fr; gap: 0.9rem; }
    .fs-tl-item::before { left: 62px; }
    .fs-tl-item::after { left: 57px; }
    .fs-tl-body { padding-left: 1.2rem; }
    .fs-tl-num { font-size: 1.5rem; }

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

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

    .entry-content blockquote { padding: 1.1rem 1.2rem; }
    .notice-box { padding: 1.1rem 1.2rem; }
    .error-404 { padding: 1.8rem 1.3rem; }
    .comment-respond { padding: 1.2rem 1.2rem; }
    .sidebar .widget { padding: 1.1rem 1.2rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; gap: 0.8rem; }
    .comment-list .children { padding-left: 0.9rem; }
}
