/*
Theme Name: dds_dietetyczneniebo.com
Theme URI: https://dietetyczneniebo.com/
Author: Диана Лазарева
Description: Индивидуальная тема информационного сайта о женской одежде и современном гардеробе. Лавандово-сливовая палитра, крупная типографика, детали кроя.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dnwear
*/

/* =========================================================
   1. Переменные и базовый сброс
   ========================================================= */

:root {
    --bg: #F7F5FA;
    --bg-alt: #EDE8F4;
    --bg-head: #FFFFFF;
    --bg-foot: #1B1723;
    --bg-quote: #2A2436;
    --bg-soft: #E5D9F2;
    --ink: #221F2B;
    --accent: #8B5CF6;
    --accent-dark: #7C3AED;
    --accent-2: #2DD4BF;
    --muted: #9A91A6;
    --card-shadow: 0 10px 30px -10px rgba(139, 92, 246, 0.15);
    --card-shadow-hover: 0 18px 40px -12px rgba(139, 92, 246, 0.32);
    --font-display: "Unbounded", "Onest", "Manrope", "Segoe UI Variable Display", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
    --stitch: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
    --diag: repeating-linear-gradient(45deg, rgba(139, 92, 246, 0.10) 0 1px, transparent 1px 11px);
}

*,
*::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.72;
    -webkit-font-smoothing: antialiased;
}

/* зернистый шум поверх фона страницы */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    opacity: 0.05;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='180' height='180' filter='url(%23n)'/%3E%3C/svg%3E");
}

.site-header,
.site-main,
.site-footer,
.cookie-banner {
    position: relative;
    z-index: 1;
}

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

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

/* =========================================================
   2. Типографика
   ========================================================= */

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

h1 { font-size: 2.4rem; }
h2 { font-size: 1.9rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.18rem; }

p {
    margin: 0 0 1.1em;
}

.lead {
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.28s ease, color 0.2s ease;
}

a:hover,
a:focus-visible {
    background-size: 100% 1px;
    color: var(--accent-dark);
}

.btn,
.brand,
.main-nav a,
.card a,
.pager a,
.pager span,
.rubric-tile,
.site-footer a,
.widget a,
.breadcrumbs a,
.check-list a {
    background-image: none;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-soft);
    background-image: var(--diag);
    border-radius: 12px;
    font-size: 1.08rem;
}

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

code, pre {
    font-family: "JetBrains Mono", Consolas, monospace;
    background: var(--bg-alt);
    border-radius: 6px;
}

code { padding: 0.1em 0.4em; }

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4rem 0;
    border: 1px solid #D8CEE8;
    background: #fff;
}

th, td {
    border: 1px solid #D8CEE8;
    padding: 0.7rem 0.9rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-display);
    font-size: 0.95rem;
}

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

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.94rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.btn:hover,
.btn:focus-visible {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #fff;
    box-shadow: inset 0 0 20px rgba(255, 255, 255, 0.28), 0 8px 22px -10px rgba(124, 58, 237, 0.85);
}

.btn-ghost {
    border-radius: 40px;
    background: transparent;
    color: var(--accent);
}

.btn-ghost:hover,
.btn-ghost:focus-visible {
    background: rgba(139, 92, 246, 0.10);
    border-color: var(--accent);
    color: var(--accent-dark);
    box-shadow: none;
}

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

.site-header {
    background: var(--bg-head);
    border-bottom: 1px solid #E4DDEE;
}

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

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

.brand-logo,
.brand svg {
    flex: none;
    width: 54px;
    height: 54px;
}

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

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

.brand-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
}

.brand-desc {
    display: block;
    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.55rem 1rem;
    border: 2px solid var(--accent);
    border-radius: 40px;
    background: transparent;
    color: var(--accent);
    font-family: var(--font-display);
    font-size: 0.85rem;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    position: relative;
    padding: 0.35rem 0;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 600;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.28s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

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

/* =========================================================
   5. Общая раскладка
   ========================================================= */

.site-main {
    padding: 2.2rem 0 3.4rem;
}

.layout-single {
    display: block;
}

.layout-single > .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

.sidebar {
    min-width: 0;
}

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

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

.breadcrumbs a:hover {
    color: var(--accent-dark);
    text-decoration: underline;
}

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

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

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

.sec-rule {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    margin: 0.55rem 0 0;
}

.sec-rule::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    background: var(--accent);
    transform: rotate(45deg);
}

.sec-rule::after {
    content: "";
    flex: 1;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(139, 92, 246, 0));
}

.soft-divider {
    height: 1px;
    margin: 2.6rem 0;
    border: 0;
    background: linear-gradient(90deg, rgba(139, 92, 246, 0), var(--accent), rgba(139, 92, 246, 0));
}

.stitch-line {
    height: 2px;
    background-image: var(--stitch);
    opacity: 0.55;
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 0;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--card-shadow);
    transition: transform 0.28s ease, box-shadow 0.28s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: var(--card-shadow-hover);
}

.card-thumb {
    position: relative;
    display: block;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.card-veil {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 55%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(27, 23, 35, 0), rgba(27, 23, 35, 0.55));
}

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

.card-title {
    font-size: 1.14rem;
    margin: 0 0 0.5rem;
}

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

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

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

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

.post-meta .dot {
    margin: 0 0.35rem;
}

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

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 2px solid #DDD3EC;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-display);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    background: rgba(139, 92, 246, 0.10);
    color: var(--accent-dark);
}

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

.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    min-width: 26px;
    color: var(--muted);
}

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

.entry {
    background: #fff;
    border-radius: 16px;
    padding: 2rem 2.1rem 2.2rem;
    box-shadow: var(--card-shadow);
}

.entry-thumb {
    margin: 0 0 1.6rem;
    border-radius: 12px;
    overflow: hidden;
}

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

.entry-content h2 {
    margin-top: 1.9rem;
    font-size: 1.6rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
    font-size: 1.28rem;
}

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

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

.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.72em;
    width: 12px;
    height: 2px;
    background-image: repeating-linear-gradient(90deg, var(--accent-2) 0 4px, transparent 4px 7px);
}

.entry-content ol li {
    margin-bottom: 0.5rem;
}

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

.note-box {
    margin: 1.6rem 0;
    padding: 1.2rem 1.4rem;
    border-left: 4px solid var(--accent-2);
    border-radius: 0 10px 10px 0;
    background: #F1EDF7;
}

.entry-tags {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 2px dashed #DDD3EC;
    font-size: 0.9rem;
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.3rem 0.85rem;
    border: 2px solid var(--accent-2);
    border-radius: 40px;
    color: #16867C;
    font-size: 0.82rem;
}

.entry-tags a:hover {
    background: rgba(45, 212, 191, 0.14);
}

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

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

.sidebar .widget {
    background: #FFFFFF;
    border-radius: 16px;
    padding: 1.4rem 1.5rem 1.5rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--card-shadow);
    color: var(--ink);
}

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

.sidebar .widget-title::after {
    content: "";
    display: block;
    width: 46px;
    height: 2px;
    margin-top: 0.5rem;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: 0.55rem 0 0.55rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed #E2D9EF;
    font-size: 0.93rem;
    color: var(--ink);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    transform: rotate(45deg);
}

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

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

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

.sidebar .widget p {
    color: #4A4356;
    font-size: 0.93rem;
}

/* =========================================================
   10. Форма поиска
   ========================================================= */

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

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

.search-form input[type="search"] {
    width: 100%;
    padding: 0.7rem 1rem;
    border: 2px solid #DDD3EC;
    border-radius: 8px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

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

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

.comments-area {
    margin-top: 2.2rem;
    background: #fff;
    border-radius: 16px;
    padding: 1.8rem 2rem 2rem;
    box-shadow: var(--card-shadow);
}

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

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

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

.comment-inner {
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border-left: 4px solid var(--accent-2);
    border-radius: 0 12px 12px 0;
}

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

.comment-author {
    font-family: var(--font-display);
    font-weight: 600;
}

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

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

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

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

.comment-form .submit {
    display: inline-flex;
    padding: 0.72rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-display);
    font-weight: 600;
    cursor: pointer;
}

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

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

.front-stack {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.front-section {
    margin-bottom: 3rem;
}

/* 12.1 Hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    align-items: center;
    gap: 2.4rem;
    padding: 3rem 2.6rem;
    border-radius: 20px;
    background: var(--bg-alt);
}

.fs-hero::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(139, 92, 246, 0.22), rgba(139, 92, 246, 0) 70%);
    pointer-events: none;
}

.hero-text {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.95rem;
    border: 2px solid var(--accent-2);
    border-radius: 40px;
    color: #16867C;
    font-family: var(--font-display);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.hero-title {
    font-size: 4.2rem;
    line-height: 1.02;
    margin: 0 0 1.1rem;
}

.hero-title .accent-word {
    color: var(--accent-2);
    display: inline-block;
    transform: rotate(-2deg);
}

.hero-sub {
    max-width: 34em;
    color: #4A4356;
    font-size: 1.03rem;
    margin-bottom: 1.6rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
}

.hero-art {
    position: relative;
    z-index: 2;
    min-width: 0;
}

.hero-art img {
    width: 100%;
    border-radius: 16px;
}

/* 12.2 Карта тем (рубрикатор) */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
    gap: 1.4rem;
}

.rubric-tile {
    position: relative;
    display: block;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.6rem;
    background: #FFFFFF;
    border: 0;
    border-bottom: 5px solid var(--accent);
    border-radius: 12px;
    color: var(--ink);
    overflow: hidden;
    transition: border-color 0.25s ease, transform 0.25s ease;
}

.rubric-tile::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 0;
    background: var(--accent);
    transition: width 0.28s ease;
}

.rubric-tile:hover {
    border-bottom-color: transparent;
    transform: translateY(-3px);
}

.rubric-tile:hover::before {
    width: 5px;
}

.rubric-icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0.9rem;
}

.rubric-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.rubric-note {
    display: block;
    font-size: 0.88rem;
    color: #58506A;
    line-height: 1.55;
}

/* 12.3 Последние записи */

.fs-latest {
    padding: 2.4rem 2.2rem 2.6rem;
    border-radius: 20px;
    background: var(--bg-alt);
}

.fs-latest .card {
    background: #fff;
}

.latest-foot {
    margin-top: 1.8rem;
    display: flex;
    justify-content: center;
}

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

.fs-check {
    padding: 2.4rem 2.2rem 2.6rem;
    border-radius: 20px;
    background: #FFFFFF;
    box-shadow: var(--card-shadow);
}

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1rem 1.2rem;
    border-radius: 12px;
    background: var(--bg);
    border-top: 2px dashed #DDD3EC;
}

.check-num {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: 2px solid var(--accent-2);
    border-radius: 50%;
    color: #16867C;
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 700;
}

.check-body {
    min-width: 0;
}

.check-title {
    display: flex;
    align-items: center;
    gap: 0.55rem;
    font-family: var(--font-display);
    font-size: 1.02rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

.check-title::before {
    content: "";
    flex: none;
    width: 16px;
    height: 9px;
    border-left: 3px solid var(--accent);
    border-bottom: 3px solid var(--accent);
    transform: rotate(-45deg) translateY(-2px);
}

.check-text {
    margin: 0;
    font-size: 0.95rem;
    color: #4A4356;
}

/* 12.5 Цитата */

.fs-quote {
    position: relative;
    padding: 2.8rem 2.4rem;
    border-radius: 20px;
    background-color: var(--bg-quote);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 12px);
    color: #F3EFFA;
    border-top: 2px dashed rgba(45, 212, 191, 0.55);
    border-bottom: 2px dashed rgba(45, 212, 191, 0.55);
}

.quote-row {
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    min-width: 0;
}

.quote-mark {
    flex: none;
    font-family: var(--font-display);
    font-size: 6rem;
    line-height: 0.8;
    color: var(--accent-2);
}

.quote-body {
    min-width: 0;
}

.quote-text {
    font-family: var(--font-display);
    font-size: 1.55rem;
    line-height: 1.35;
    margin: 0 0 1rem;
    color: #FFFFFF;
}

.quote-author {
    font-size: 0.9rem;
    color: #C6BBDA;
    letter-spacing: 0.04em;
}

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

.site-footer {
    background: var(--bg-foot);
    color: #D9D2E6;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2rem;
}

.footer-cols .widget {
    min-width: 0;
    color: #D9D2E6;
}

.footer-cols .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
}

.footer-cols .widget-title::after {
    content: "";
    display: block;
    width: 44px;
    height: 2px;
    margin-top: 0.5rem;
    background: var(--accent-2);
}

.footer-cols .widget p,
.footer-cols .widget li,
.footer-cols .widget {
    font-size: 0.92rem;
    color: #C8C0D8;
}

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

.footer-cols .widget li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.05rem;
    border-bottom: 1px dashed rgba(217, 210, 230, 0.18);
}

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

.footer-cols .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
    transform: rotate(45deg);
}

.footer-cols .widget a {
    color: #E7E1F2;
}

.footer-cols .widget a:hover {
    color: var(--accent-2);
}

.footer-cols .widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: #9E95B0;
}

.footer-bottom {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px dashed rgba(217, 210, 230, 0.22);
    font-size: 0.85rem;
    color: #A79EB8;
}

/* =========================================================
   14. 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: space-between;
    gap: 1rem 1.6rem;
    padding: 1.1rem 1.6rem;
    background: var(--bg-quote);
    color: #EDE8F4;
    border-top: 2px dashed rgba(45, 212, 191, 0.5);
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 60em;
    min-width: 0;
}

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

/* =========================================================
   15. Служебные блоки
   ========================================================= */

.empty-note {
    padding: 1.8rem 2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.error-404 {
    padding: 2.4rem 2.2rem;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--card-shadow);
}

.error-code {
    font-family: var(--font-display);
    font-size: 5rem;
    line-height: 1;
    margin: 0 0 0.6rem;
    background: linear-gradient(90deg, var(--accent), var(--accent-2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

.sec-head {
    margin-bottom: 1.7rem;
}

.sec-head h2 {
    margin: 0;
    font-size: 1.85rem;
}

.archive-note {
    margin-top: 0.9rem;
    color: #4A4356;
    font-size: 0.95rem;
}

.comment-note {
    font-size: 0.85rem;
    color: var(--muted);
}

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

.page-links {
    margin-top: 1.2rem;
    font-size: 0.9rem;
}

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

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        column-gap: 0;
    }

    .layout-single > .content-area,
    .front-stack {
        width: 100%;
    }

    .fs-hero {
        grid-template-columns: minmax(0, 1fr);
        padding: 2.4rem 1.8rem;
    }

    .hero-title {
        font-size: 3rem;
    }

    .hero-art {
        order: -1;
    }
}

@media (max-width: 700px) {
    .nav-toggle {
        display: inline-flex;
    }

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

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

    .main-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0;
        padding-top: 0.8rem;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px dashed #E4DDEE;
    }

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

    .hero-title {
        font-size: 2.4rem;
    }

    .fs-hero {
        padding: 2rem 1.3rem;
    }

    .fs-latest,
    .fs-check {
        padding: 1.8rem 1.4rem;
    }

    .fs-quote {
        padding: 2rem 1.4rem;
    }

    .quote-row {
        gap: 0.9rem;
    }

    .quote-mark {
        font-size: 4rem;
    }

    .quote-text {
        font-size: 1.2rem;
    }

    .entry,
    .comments-area,
    .error-404,
    .empty-note {
        padding: 1.5rem 1.3rem;
    }

    .rubric-tile {
        padding: 1.3rem 1.3rem 1.4rem;
    }

    .check-item {
        padding: 1rem 1.1rem;
    }

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

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

    .site-footer {
        padding: 2.4rem 0 1.4rem;
    }
}
