/*
Theme Name: dds_leatlyinsioning.com
Description: Информационная тема для сайта «Разные темы и полезные статьи» — лавандовый техно-минимализм с элементами неоморфизма.
Author: Марина Седова
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lvstat
*/

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

:root {
    --tone-bg: #F4F1F9;
    --tone-alt: #EBE4F0;
    --tone-deep: #1A1625;
    --tone-ink: #1E1A2B;
    --tone-mute: #7A6B8A;
    --tone-accent: #A78BFA;
    --tone-accent-strong: #8B5CF6;
    --tone-line: #C4B5FD;
    --tone-soft: #DDD6FE;
    --tone-veil: #EDE9FE;
    --shell: min(92%, 1180px);
    --radius-card: 20px;
    --radius-btn: 12px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--tone-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='760' height='680' viewBox='0 0 760 680'%3E%3Cg fill='%23DDD6FE' fill-opacity='0.55'%3E%3Cpath d='M600 90c96 0 160 78 160 176s-52 214-158 214-206-84-206-190S504 90 600 90z'/%3E%3Cpath d='M300 350c78 0 132 62 132 146s-46 174-132 174S150 586 150 500s72-150 150-150z' fill-opacity='0.4'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -180px bottom -160px;
    background-attachment: fixed;
    background-size: 760px auto;
    color: var(--tone-ink);
    font-family: "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

.entry-body a,
.widget-text a,
.crumbs a {
    background-image: linear-gradient(var(--tone-accent-strong), var(--tone-accent-strong));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size .28s ease;
}

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

h1, h2, h3, h4, h5 {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    color: var(--tone-ink);
    line-height: 1.22;
    letter-spacing: -0.01em;
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p {
    margin: 0 0 1.15em;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
}

.skip-to {
    position: absolute;
    left: -9999px;
}

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

.top-bar {
    background: rgba(244, 241, 249, 0.62);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(196, 181, 253, .5);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: .95rem;
    min-width: 0;
    text-decoration: none;
    color: inherit;
}

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

.brand-mark {
    display: block;
    flex: 0 0 auto;
}

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

.brand-name {
    display: block;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.3;
    color: var(--tone-ink);
    max-width: 30ch;
}

.brand-tagline {
    display: block;
    font-size: .8rem;
    color: var(--tone-mute);
    line-height: 1.45;
    margin-top: .25rem;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: .55rem;
    border: 1px solid var(--tone-line);
    background: #fff;
    color: var(--tone-ink);
    font: inherit;
    font-size: .92rem;
    padding: .55rem 1rem;
    border-radius: var(--radius-btn);
    cursor: pointer;
}

.nav-toggle span {
    width: 18px;
    height: 2px;
    background: var(--tone-accent-strong);
    display: block;
    position: relative;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--tone-accent-strong);
}

.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

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

.main-nav a {
    position: relative;
    display: inline-block;
    color: var(--tone-ink);
    font-size: .98rem;
    padding: .25rem 0;
}

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

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

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

/* =========================================================
   3. Кнопки, крошки, служебные блоки
   ========================================================= */

.btn {
    display: inline-block;
    padding: .8rem 1.7rem;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: #fff;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    font-size: .97rem;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(139, 92, 246, .24);
    transition: transform .22s ease, box-shadow .22s ease;
}

.btn:hover {
    transform: scale(1.02);
    box-shadow: 0 14px 30px rgba(139, 92, 246, .34);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--tone-accent-strong);
    border: 1.5px solid var(--tone-line);
    box-shadow: none;
}

.btn-ghost:hover {
    color: var(--tone-accent-strong);
    box-shadow: 0 10px 22px rgba(139, 92, 246, .18);
}

.crumbs {
    font-size: .86rem;
    color: var(--tone-mute);
    padding: 1.6rem 0 .4rem;
}

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

.crumbs-sep {
    color: var(--tone-line);
    margin: 0 .2rem;
}

.section-head {
    margin-bottom: 2.4rem;
}

.section-title {
    position: relative;
    display: inline-block;
    margin: 0 0 .35rem;
    padding-bottom: .7rem;
    font-size: 2rem;
}

.section-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: calc(100% + 90px);
    height: 2px;
    background: linear-gradient(90deg, var(--tone-line) 55%, rgba(196, 181, 253, 0) 100%);
}

.section-note {
    color: var(--tone-mute);
    max-width: 70ch;
    margin: .9rem 0 0;
}

.dot-rule {
    height: 6px;
    background-image: radial-gradient(circle, var(--tone-line) 1.6px, transparent 1.8px);
    background-size: 14px 6px;
    background-repeat: repeat-x;
    width: 44%;
    margin: 0 auto 0 0;
    opacity: .85;
}

/* =========================================================
   4. Раскладки
   ========================================================= */

.page-body {
    padding: 2.2rem 0 5rem;
}

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

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: none;
    border-radius: var(--radius-card);
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(139, 92, 246, .12);
    transition: transform .26s ease, box-shadow .26s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 22px 44px rgba(139, 92, 246, .22);
}

.card-thumb {
    display: block;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    overflow: hidden;
    background: var(--tone-veil);
}

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

.card-thumb-empty {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #EDE9FE 0%, #DDD6FE 100%);
}

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

.card-meta {
    font-size: .8rem;
    color: var(--tone-mute);
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: .6rem;
}

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

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

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

.card-excerpt {
    color: var(--tone-mute);
    font-size: .95rem;
    margin-bottom: 1.2rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: .92rem;
    font-weight: 600;
    color: var(--tone-accent-strong);
    position: relative;
    padding-bottom: 3px;
}

.card-more::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--tone-accent-strong);
    transition: width .28s ease;
}

.card-more:hover::after {
    width: 100%;
}

/* горизонтальная карточка ленты */
.card-row {
    flex-direction: row;
}

.card-row .card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--tone-veil);
}

.card-row .card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-row .card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.card-row .card-body {
    flex: 1;
    min-width: 0;
}

/* =========================================================
   6. Главная — секции
   ========================================================= */

.front-section {
    padding: 120px 0;
}

.front-section.tone-alt {
    background: var(--tone-alt);
}

.front-section.tone-plain {
    background: transparent;
}

/* 6.1 Hero */
.hero {
    position: relative;
    padding: 0;
    overflow: hidden;
}

.hero-media {
    position: relative;
    min-height: 520px;
    display: flex;
    align-items: center;
    background: var(--tone-veil);
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-media::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(244, 241, 249, .42) 0%, rgba(237, 233, 254, .72) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    width: var(--shell);
    margin-inline: auto;
    padding: 5.5rem 0;
    text-align: center;
}

.hero-kicker {
    display: inline-block;
    font-size: .82rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--tone-accent-strong);
    background: rgba(255, 255, 255, .7);
    border-radius: 999px;
    padding: .45rem 1.2rem;
    margin-bottom: 1.6rem;
}

.hero-title {
    font-size: 3.2rem;
    margin: 0 0 1.1rem;
    background: linear-gradient(90deg, #8B5CF6 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.hero-sub {
    max-width: 62ch;
    margin: 0 auto 2rem;
    color: #40355A;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* 6.2 Карта тем (неоморфные плашки) */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.topic-tile {
    display: block;
    min-width: 0;
    padding: 2rem 1.7rem;
    border-radius: 18px;
    background: var(--tone-bg);
    color: var(--tone-ink);
    box-shadow: inset 4px 4px 10px rgba(122, 107, 138, .16), inset -4px -4px 10px rgba(255, 255, 255, .92), 0 6px 16px rgba(139, 92, 246, .08);
    transition: transform .24s ease, box-shadow .24s ease;
}

.topic-tile:hover {
    transform: translateY(-4px);
    box-shadow: inset 2px 2px 6px rgba(122, 107, 138, .1), inset -2px -2px 6px rgba(255, 255, 255, .9), 0 16px 32px rgba(139, 92, 246, .2);
    color: var(--tone-ink);
}

.topic-icon {
    display: block;
    margin-bottom: 1.1rem;
}

.topic-name {
    display: block;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.12rem;
    margin-bottom: .5rem;
}

.topic-desc {
    display: block;
    font-size: .92rem;
    color: var(--tone-mute);
    line-height: 1.6;
}

/* 6.3 Лента последних записей */
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 2.4rem;
}

/* 6.4 Таймлайн */
.timeline {
    position: relative;
    margin-top: 3rem;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: linear-gradient(180deg, rgba(196, 181, 253, 0) 0%, var(--tone-line) 12%, var(--tone-line) 88%, rgba(196, 181, 253, 0) 100%);
}

.tl-item {
    position: relative;
    width: 46%;
    margin-bottom: 2.6rem;
    min-width: 0;
}

.tl-item:nth-child(odd) {
    margin-left: 0;
    margin-right: auto;
    text-align: right;
}

.tl-item:nth-child(even) {
    margin-left: auto;
    margin-right: 0;
}

.tl-bubble {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.5rem 1.7rem;
    box-shadow: 0 12px 28px rgba(139, 92, 246, .12);
}

.tl-stage {
    display: inline-block;
    font-size: .78rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--tone-accent-strong);
    background: var(--tone-veil);
    border-radius: 999px;
    padding: .28rem 1rem;
    margin-bottom: .8rem;
}

.tl-title {
    font-size: 1.15rem;
    margin: 0 0 .5rem;
}

.tl-text {
    margin: 0;
    color: var(--tone-mute);
    font-size: .95rem;
}

.tl-item::before {
    content: "";
    position: absolute;
    top: 34px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: var(--tone-accent-strong);
    box-shadow: 0 0 0 5px rgba(167, 139, 250, .28);
    z-index: 2;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: 40px;
    height: 0;
    border-top: 2px dotted var(--tone-line);
    width: 8.5%;
}

.tl-item:nth-child(odd)::before { right: -8.5%; margin-right: -7px; }
.tl-item:nth-child(odd)::after  { right: -8.5%; }
.tl-item:nth-child(even)::before { left: -8.5%; margin-left: -7px; }
.tl-item:nth-child(even)::after  { left: -8.5%; }

/* 6.5 Цитата */
.quote-band {
    background: linear-gradient(120deg, #1A1625 0%, #2D2540 100%);
    border-radius: 24px;
    padding: 3.4rem 3.2rem;
    color: #F3EFFA;
    display: flex;
    gap: 2rem;
    align-items: stretch;
}

.quote-bar {
    flex: 0 0 6px;
    align-self: center;
    height: 70%;
    min-height: 90px;
    background: var(--tone-accent-strong);
    border-radius: 3px;
}

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

.quote-text {
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-size: 1.85rem;
    line-height: 1.42;
    font-weight: 600;
    margin: 0 0 1.2rem;
    color: #FFFFFF;
}

.quote-author {
    margin: 0;
    color: var(--tone-line);
    font-size: .95rem;
    letter-spacing: .04em;
}

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

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

.entry-title {
    font-size: 2.5rem;
    margin: 0 0 .8rem;
}

.entry-meta {
    color: var(--tone-mute);
    font-size: .88rem;
    display: flex;
    gap: 1.2rem;
    flex-wrap: wrap;
}

.entry-cover {
    border-radius: var(--radius-card);
    overflow: hidden;
    margin-bottom: 2rem;
}

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

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

.entry-body h2,
.entry-body h3 {
    margin-top: 2.2rem;
}

.entry-body h2::before,
.entry-body h3::before {
    content: "■";
    color: var(--tone-accent);
    opacity: .55;
    font-size: .62em;
    margin-right: .6em;
    vertical-align: middle;
}

.entry-body blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.8rem;
    background: linear-gradient(120deg, #EDE9FE 0%, #F4F1F9 100%);
    border-radius: 14px;
    border-left: 4px solid var(--tone-accent-strong);
    color: #35294B;
}

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

.entry-body ul,
.entry-body ol {
    padding-left: 1.3rem;
}

.entry-body li {
    margin-bottom: .5em;
}

.entry-body img {
    border-radius: 14px;
    display: block;
}

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.8rem 0;
    background: #fff;
}

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

.entry-body th,
.entry-body td {
    padding: .75rem .9rem;
    text-align: left;
}

.entry-body th {
    background: var(--tone-veil);
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

.entry-tags {
    margin-top: 2.4rem;
    font-size: .9rem;
    color: var(--tone-mute);
}

.entry-tags a {
    display: inline-block;
    background: var(--tone-veil);
    border-radius: 999px;
    padding: .25rem .9rem;
    margin: 0 .35rem .5rem 0;
    color: var(--tone-accent-strong);
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px dashed var(--tone-line);
    font-size: .95rem;
}

.page-lead {
    color: var(--tone-mute);
    margin-bottom: 2rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 .85rem;
    border-radius: var(--radius-btn);
    background: #fff;
    color: var(--tone-ink);
    font-size: .95rem;
    box-shadow: 0 6px 16px rgba(139, 92, 246, .1);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.pager .page-numbers:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 22px rgba(139, 92, 246, .2);
    color: var(--tone-accent-strong);
}

.pager .page-numbers.current {
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: #fff;
    box-shadow: 0 10px 22px rgba(139, 92, 246, .28);
}

.pager .page-numbers.dots {
    background: none;
    box-shadow: none;
    color: var(--tone-mute);
}

/* =========================================================
   9. Виджеты
   ========================================================= */

.widget {
    margin-bottom: 2.4rem;
}

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

.widget-title {
    font-size: 1.12rem;
    margin: 0 0 1rem;
    padding-bottom: .6rem;
    border-bottom: 1px solid var(--tone-line);
}

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

.widget li {
    margin-bottom: .75rem;
    padding-left: 1.15rem;
    position: relative;
    line-height: 1.5;
}

.widget li::before {
    content: "■";
    position: absolute;
    left: 0;
    top: 0;
    font-size: .6em;
    line-height: 2.6;
    color: var(--tone-accent);
    opacity: .6;
}

.sidebar .widget-title,
.sidebar .widget,
.sidebar .widget li,
.sidebar .widget p {
    color: var(--tone-ink);
}

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

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

.sidebar .widget .post-date {
    display: block;
    color: var(--tone-mute);
    font-size: .8rem;
}

.search-box {
    display: flex;
    gap: .6rem;
}

.search-box input[type="search"] {
    flex: 1;
    min-width: 0;
    border: 1px solid var(--tone-line);
    border-radius: var(--radius-btn);
    padding: .7rem 1rem;
    font: inherit;
    font-size: .95rem;
    background: #fff;
    color: var(--tone-ink);
}

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

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

.site-foot {
    background: var(--tone-deep);
    color: #D9D1E8;
    padding: 4rem 0 2rem;
    margin-top: 4rem;
}

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

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

.site-foot .widget-title {
    color: #FFFFFF;
    border-bottom-color: rgba(196, 181, 253, .35);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #D9D1E8;
}

.site-foot .widget a {
    color: #E4DCF3;
}

.site-foot .widget a:hover {
    color: var(--tone-line);
}

.site-foot .widget li::before {
    color: var(--tone-accent);
    opacity: .8;
}

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

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(196, 181, 253, .22);
    font-size: .88rem;
    color: #A79BBE;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
}

.foot-bottom a {
    color: #CBBEE4;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: rgba(26, 22, 37, .96);
    color: #EFE9F8;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    box-shadow: 0 -10px 30px rgba(26, 22, 37, .25);
}

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

.cookie-banner a {
    color: var(--tone-line);
}

.cookie-accept {
    flex: 0 0 auto;
}

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

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

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

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

.comment-body {
    background: #fff;
    border-radius: 16px;
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.1rem;
    box-shadow: 0 8px 20px rgba(139, 92, 246, .1);
}

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

.comment-author {
    font-weight: 600;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
}

.comment-date,
.comment-await {
    font-size: .82rem;
    color: var(--tone-mute);
}

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

.comment-respond {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 1.8rem 2rem;
    box-shadow: 0 10px 26px rgba(139, 92, 246, .1);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    border: 1px solid var(--tone-line);
    border-radius: var(--radius-btn);
    padding: .7rem 1rem;
    font: inherit;
    font-size: .95rem;
    background: var(--tone-bg);
    color: var(--tone-ink);
}

.comment-form label {
    display: block;
    font-size: .88rem;
    margin-bottom: .3rem;
    color: var(--tone-mute);
}

.comment-form .submit {
    display: inline-block;
    padding: .8rem 1.7rem;
    border-radius: var(--radius-btn);
    background: linear-gradient(135deg, #8B5CF6 0%, #A78BFA 100%);
    color: #fff;
    font-family: "Manrope", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 600;
    border: none;
    cursor: pointer;
    box-shadow: 0 8px 20px rgba(139, 92, 246, .24);
}

/* =========================================================
   13. 404 и поиск
   ========================================================= */

.notfound {
    text-align: center;
    padding: 3rem 2rem 4rem;
    background: linear-gradient(120deg, #EDE9FE 0%, #F4F1F9 100%);
    border-radius: 24px;
}

.notfound-code {
    font-size: 5rem;
    line-height: 1;
    margin: 0 0 1rem;
    background: linear-gradient(90deg, #8B5CF6 0%, #A78BFA 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}

.notfound .search-box {
    max-width: 460px;
    margin: 1.8rem auto;
}

.list-head {
    margin-bottom: 2.4rem;
}

.empty-note {
    background: #fff;
    border-radius: var(--radius-card);
    padding: 2rem 2.2rem;
    box-shadow: 0 10px 26px rgba(139, 92, 246, .1);
}

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

@media (min-width: 961px) {
    .main-nav[hidden] {
        display: block !important;
    }
}

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .entry-title { font-size: 2rem; }

    .front-section {
        padding: 80px 0;
    }

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

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

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

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

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

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

    .main-nav {
        flex-basis: 100%;
    }

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

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2rem; }
    .section-title { font-size: 1.6rem; }
    .entry-title { font-size: 1.7rem; }

    .front-section {
        padding: 64px 0;
    }

    .hero-media {
        min-height: 400px;
    }

    .hero-inner {
        padding: 3.4rem 0;
    }

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

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

    .quote-band {
        padding: 2.2rem 1.5rem;
        border-radius: 18px;
        flex-direction: column;
        gap: 1.4rem;
    }

    .quote-bar {
        flex: 0 0 4px;
        width: 60px;
        height: 4px;
        min-height: 0;
        align-self: flex-start;
    }

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

    .timeline::before {
        left: 7px;
        margin-left: 0;
    }

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

    .tl-item:nth-child(odd)::before,
    .tl-item:nth-child(even)::before {
        left: 0;
        right: auto;
        margin-left: 0;
        margin-right: 0;
        top: 30px;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 14px;
        right: auto;
        width: 16px;
        top: 36px;
    }

    .tl-bubble {
        padding: 1.2rem 1.2rem;
    }

    .card-row {
        flex-direction: column;
    }

    .card-row .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
    }

    .card-row .card-thumb-wrap a {
        position: static;
    }

    .card-row .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .notfound {
        padding: 2.2rem 1.3rem 2.6rem;
    }

    .comment-respond {
        padding: 1.4rem 1.2rem;
    }

    .empty-note {
        padding: 1.5rem 1.3rem;
    }

    .dot-rule {
        width: 70%;
    }
}
