/*
Theme Name: dds_babauthang9.com
Theme URI: https://babauthang9.com/
Author: Екатерина Фомина
Description: Информационная тема о беременности, материнстве и уходе. Лавандовый техно-минимализм с элементами неоморфизма.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mamapath
*/

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

:root {
    --bg: #F4F1F8;
    --bg-alt: #EAE5F0;
    --head-bg: #2D2438;
    --foot-bg: #1A1423;
    --side-bg: #FFFFFF;
    --ink: #1E1826;
    --accent: #9B7BBE;
    --accent-2: #D4C4E8;
    --accent-3: #B39DDB;
    --muted: #8A7A96;
    --deep: #6A4C8C;
    --font-head: "Montserrat", "Inter", "Segoe UI", "Trebuchet MS", sans-serif;
    --font-body: "Lora", "Playfair Display", Georgia, "Times New Roman", serif;
    --shadow: 0 10px 30px rgba(100, 70, 130, 0.10);
    --radius: 16px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(155, 123, 190, 0.05) 0,
        rgba(155, 123, 190, 0.05) 0.5px,
        transparent 0.5px,
        transparent 14px
    );
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

/* Текстовые ссылки: подчёркивание заполняется слева направо */
.entry-content a,
.widget .textwidget a,
.comment-text a {
    position: relative;
    color: var(--accent);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.28s ease;
}

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

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

h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    letter-spacing: 0.015em;
}

h2 {
    font-size: clamp(1.5rem, 3vw, 2.1rem);
}

h3 {
    font-size: clamp(1.25rem, 2.2vw, 1.5rem);
}

p {
    margin: 0 0 1.15em;
}

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

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.8rem;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-style: italic;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6em 0;
    background: #fff;
    border: 1px solid var(--accent-2);
}

th, td {
    border: 1px solid var(--accent-2);
    padding: 0.65rem 0.9rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--bg-alt);
    border-radius: 10px;
}

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

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

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

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

.page-body {
    padding-top: 2.4rem;
}

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

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

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

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

.btn,
.entry-content .btn {
    display: inline-block;
    padding: 0.72rem 1.85rem;
    border-radius: 100px;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    line-height: 1.4;
    border: 2px solid transparent;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background-color 0.25s ease, color 0.25s ease;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 26px rgba(155, 123, 190, 0.45);
}

.btn-outline {
    background-image: none;
    background-color: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
}

.btn-outline:hover {
    background-color: var(--accent);
    color: #fff;
    box-shadow: 0 8px 26px rgba(155, 123, 190, 0.35);
}

.btn-light {
    background-image: none;
    background-color: transparent;
    border: 2px solid var(--accent-2);
    color: var(--accent-2);
}

.btn-light:hover {
    background-color: var(--accent-2);
    color: var(--head-bg);
}

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

.site-header {
    position: relative;
    background: var(--head-bg);
    color: #F2EDF8;
    padding: 1.4rem 0;
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -140px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--accent-3);
    opacity: 0.07;
    filter: blur(10px);
    pointer-events: none;
}

.header-inner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

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

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

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

.brand-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    max-width: 32ch;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.83rem;
    line-height: 1.5;
    color: #B9A9CB;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid rgba(212, 196, 232, 0.5);
    background: transparent;
    color: #EDE6F5;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    cursor: pointer;
}

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

.site-nav a {
    display: inline-block;
    position: relative;
    padding: 0.3rem 0;
    font-family: var(--font-head);
    font-size: 0.93rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: #E6DDF1;
}

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

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

.site-nav .current-menu-item > a {
    color: #FFFFFF;
}

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

.breadcrumbs {
    padding: 1.3rem 0 0.2rem;
    font-family: var(--font-head);
    font-size: 0.83rem;
    letter-spacing: 0.04em;
    color: var(--muted);
}

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

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

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

/* =========================================================
   6. Заголовки секций
   ========================================================= */

.section-title {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 1.6rem;
}

.section-title::before {
    content: "";
    flex: 0 0 auto;
    width: 2px;
    height: 0.55em;
    background: var(--accent);
}

.dots-divider {
    margin: 3.2rem 0;
    text-align: center;
    color: var(--accent);
    font-size: 1.6rem;
    letter-spacing: 0.7em;
    line-height: 1;
}

.thin-divider {
    height: 1px;
    border: 0;
    margin: 0;
    background: rgba(212, 196, 232, 0.4);
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: none;
    border-radius: var(--radius);
    overflow: hidden;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 20px), calc(100% - 20px) 100%, 0 100%);
    filter: drop-shadow(0 10px 22px rgba(100, 70, 130, 0.10));
    transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    filter: drop-shadow(0 16px 30px rgba(100, 70, 130, 0.20));
}

.card-thumb-wrap {
    position: relative;
    overflow: hidden;
}

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

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

.card-thumb-wrap .thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, var(--accent-2) 0%, var(--accent-3) 100%);
}

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(155, 123, 190, 0.32);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.card:hover .card-thumb-wrap::after {
    opacity: 1;
}

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

.card-title {
    font-size: 1.16rem;
    line-height: 1.32;
    margin: 0 0 0.55rem;
}

.card-title a {
    color: var(--ink);
    transition: color 0.25s ease;
}

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

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

.card-excerpt {
    flex: 1;
    font-size: 0.97rem;
    color: #3B3247;
}

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

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

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

.front-section {
    position: relative;
    padding: 4.2rem 0;
}

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

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

/* --- Hero --- */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(140deg, var(--bg) 0%, var(--bg-alt) 100%);
    padding: 4.6rem 0 4.4rem;
}

.fs-hero::before,
.fs-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    background: var(--accent-3);
    pointer-events: none;
}

.fs-hero::before {
    top: -110px;
    left: -90px;
    width: 320px;
    height: 320px;
    opacity: 0.07;
    filter: blur(6px);
}

.fs-hero::after {
    right: -120px;
    bottom: -130px;
    width: 360px;
    height: 360px;
    opacity: 0.05;
    filter: blur(8px);
}

.hero-grid {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3.5rem;
    align-items: center;
}

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

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: 0.35rem 1rem;
    border-radius: 100px;
    background: rgba(212, 196, 232, 0.55);
    font-family: var(--font-head);
    font-size: 0.76rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--deep);
}

.hero-title {
    margin: 0 0 1.1rem;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
}

.hero-lead {
    max-width: 54ch;
    font-size: 1.06rem;
    color: #453B52;
}

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

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

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

/* --- Таймлайн --- */

.tl {
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    list-style: none;
}

.tl::before {
    content: "";
    position: absolute;
    top: 0.6rem;
    bottom: 0.6rem;
    left: 8.6rem;
    width: 4px;
    background: var(--accent);
    opacity: 0.55;
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: 7.2rem minmax(0, 1fr);
    gap: 3.4rem;
    padding: 0 0 2.2rem;
}

.tl-item:last-child {
    padding-bottom: 0;
}

.tl-stage {
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    color: var(--accent);
    text-align: right;
    padding-top: 0.15rem;
}

.tl-item::before {
    content: "";
    position: absolute;
    left: 8.6rem;
    top: 0.55rem;
    width: 18px;
    height: 18px;
    margin-left: -7px;
    border-radius: 50%;
    background: var(--bg-alt);
    border: 4px solid var(--accent);
}

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

.tl-body h3 {
    margin: 0 0 0.35rem;
    font-size: 1.16rem;
}

.tl-body p {
    margin: 0 0 0.5rem;
    font-size: 0.99rem;
    color: #453B52;
}

.tl-link {
    font-family: var(--font-head);
    font-size: 0.84rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--deep);
}

.tl-link:hover {
    color: var(--accent);
}

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

.fs-latest .front-wrap > .section-title {
    margin-bottom: 2rem;
}

.latest-more {
    margin-top: 2.4rem;
    text-align: center;
}

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

.fs-quote {
    background: var(--head-bg);
    color: #F4F0FA;
    padding: 4.4rem 0;
}

.quote-plate {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.4rem 2.6rem;
    background: rgba(255, 255, 255, 0.035);
    border-radius: var(--radius);
}

.quote-bar {
    flex: 0 0 5px;
    align-self: stretch;
    min-height: 90px;
    background: var(--accent);
}

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

.quote-inner p {
    margin: 0 0 1rem;
    font-family: var(--font-body);
    font-size: clamp(1.25rem, 2.4vw, 1.85rem);
    line-height: 1.5;
    font-style: italic;
    color: #FFFFFF;
}

.quote-source {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-2);
}

/* --- Рубрикатор (неоморфизм) --- */

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

.rubric-tile {
    display: block;
    padding: 1.9rem 1.7rem;
    border: none;
    border-radius: var(--radius);
    background: var(--bg);
    box-shadow: inset 6px 6px 14px rgba(120, 96, 150, 0.16), inset -6px -6px 14px rgba(255, 255, 255, 0.95);
    color: var(--ink);
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.rubric-tile:hover {
    box-shadow: 8px 8px 18px rgba(120, 96, 150, 0.20), -8px -8px 18px rgba(255, 255, 255, 0.95);
    transform: translateY(-3px);
}

.rubric-tile svg {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.rubric-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    margin-bottom: 0.4rem;
}

.rubric-note {
    display: block;
    font-size: 0.92rem;
    color: var(--muted);
}

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

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

.entry-title {
    margin: 0.4rem 0 0.7rem;
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: var(--radius);
    overflow: hidden;
}

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

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

.entry-content h2,
.entry-content h3 {
    margin-top: 1.8em;
}

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

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(212, 196, 232, 0.7);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--muted);
}

.entry-footer a {
    color: var(--deep);
}

.archive-header {
    margin-bottom: 2rem;
}

.no-results {
    padding: 2rem 2.2rem;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.95rem;
    border: 1px solid var(--accent-2);
    border-radius: 100px;
    background: #fff;
    font-family: var(--font-head);
    font-size: 0.9rem;
    color: var(--ink);
    transition: background-color 0.25s ease, color 0.25s ease, box-shadow 0.25s ease;
}

.pager .page-numbers:hover {
    background: var(--accent-2);
    color: var(--deep);
}

.pager .page-numbers.current {
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 6px 18px rgba(155, 123, 190, 0.35);
}

.pager .page-numbers.dots {
    border: none;
    background: transparent;
    min-width: auto;
    padding: 0 0.3rem;
    color: var(--muted);
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--side-bg);
    border-radius: var(--radius);
    padding: 1.6rem 1.6rem 1.7rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow);
    color: var(--ink);
}

.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 1rem;
    font-size: 1.05rem;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: "";
    flex: 0 0 auto;
    width: 2px;
    height: 0.6em;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(212, 196, 232, 0.5);
    font-size: 0.96rem;
}

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

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

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

.sidebar .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    color: var(--muted);
}

.sidebar .textwidget {
    font-size: 0.96rem;
    color: #3B3247;
}

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

.site-footer {
    position: relative;
    background: var(--foot-bg);
    color: #D9CEE7;
    padding: 3.4rem 0 1.6rem;
    overflow: hidden;
}

.site-footer::before {
    content: "";
    position: absolute;
    left: -140px;
    bottom: -160px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--accent-3);
    opacity: 0.06;
    filter: blur(10px);
    pointer-events: none;
}

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

.footer-cols .widget {
    min-width: 0;
    margin: 0 0 1.4rem;
    color: #D9CEE7;
}

.footer-cols .widget-title {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0 0 0.9rem;
    font-size: 1rem;
    color: #FFFFFF;
}

.footer-cols .widget-title::before {
    content: "";
    flex: 0 0 auto;
    width: 2px;
    height: 0.6em;
    background: var(--accent);
}

.footer-cols .widget,
.footer-cols .textwidget,
.footer-cols p,
.footer-cols li {
    font-size: 0.93rem;
    color: #D9CEE7;
}

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

.footer-cols li {
    padding: 0.35rem 0;
}

.footer-cols a {
    color: #D4C4E8;
    transition: color 0.25s ease;
}

.footer-cols a:hover {
    color: #FFFFFF;
}

.footer-bottom {
    position: relative;
    z-index: 2;
    margin-top: 2rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(212, 196, 232, 0.22);
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #A695B8;
}

/* =========================================================
   13. 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: 1rem 1.6rem;
    background: var(--head-bg);
    color: #EDE6F5;
    box-shadow: 0 -8px 26px rgba(26, 20, 35, 0.25);
}

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

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

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

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

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

.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

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

.comments-title {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    font-size: 1.3rem;
}

.comments-title::before {
    content: "";
    flex: 0 0 auto;
    width: 2px;
    height: 0.6em;
    background: var(--accent);
}

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

.comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 2px solid var(--accent-2);
}

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

.comment-body {
    padding: 1.1rem 1.3rem;
    background: var(--bg);
    border-radius: 12px;
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
    margin-bottom: 0.5rem;
    font-family: var(--font-head);
    font-size: 0.83rem;
    letter-spacing: 0.05em;
}

.comment-author {
    font-weight: 700;
    color: var(--deep);
}

.comment-date {
    color: var(--muted);
}

.comment-actions a {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

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

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

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

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

.comment-form .submit {
    display: inline-block;
    padding: 0.72rem 1.85rem;
    border: none;
    border-radius: 100px;
    background-image: linear-gradient(135deg, var(--accent) 0%, var(--accent-3) 100%);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comment-form .submit:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 26px rgba(155, 123, 190, 0.45);
}

/* =========================================================
   15. Страница 404
   ========================================================= */

.error-plate {
    padding: 2.6rem 2.4rem;
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--accent-2) 100%);
    border-radius: var(--radius);
}

.error-code {
    font-family: var(--font-head);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    background: linear-gradient(135deg, var(--accent) 0%, var(--deep) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

.error-search {
    margin-top: 1.8rem;
    max-width: 480px;
}

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

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

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

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

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

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

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

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

    .site-nav.nav-open {
        display: block;
    }

    .site-nav ul {
        flex-direction: column;
        gap: 0;
        padding-top: 0.8rem;
    }

    .site-nav li {
        border-top: 1px solid rgba(212, 196, 232, 0.2);
    }

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

@media (max-width: 600px) {
    .front-section {
        padding: 3rem 0;
    }

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

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

    .quote-plate {
        padding: 1.8rem 1.4rem;
        gap: 1.2rem;
    }

    .error-plate {
        padding: 1.9rem 1.4rem;
    }

    .comments-area {
        padding: 1.5rem 1.3rem;
    }

    .no-results {
        padding: 1.5rem 1.3rem;
    }

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

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

    .tl::before {
        left: 8px;
    }

    .tl-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
        padding-left: 2.2rem;
    }

    .tl-item::before {
        left: 8px;
        top: 0.4rem;
    }

    .tl-stage {
        text-align: left;
    }

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

    .cookie-banner {
        padding: 0.9rem 1.1rem;
    }

    .brand-desc {
        display: none;
    }
}
