/*
Theme Name: dds_expert-dtp.ru
Theme URI: https://expert-dtp.ru/
Author: Алексей Громов
Description: Тема для агрегатора и обзорного ресурса по легалтех-решениям: подборки ИИ-сервисов, системы ЭДО, инструменты проверки контрагентов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: ltnav
*/

:root {
    --bg: #F7F5FC;
    --bg-alt: #EDE9F6;
    --side: #F0EDF8;
    --dark: #1A1526;
    --ink: #1E1A2B;
    --muted: #8A82A0;
    --accent: #9B6BFF;
    --accent-2: #FF5E7E;
    --line: rgba(155, 107, 255, 0.3);
    --glow: 0 10px 30px rgba(155, 107, 255, 0.1);
    --glow-hover: 0 16px 40px rgba(155, 107, 255, 0.25);
    --font-head: "Manrope", "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "IBM Plex Sans", "Inter", "Segoe UI", Tahoma, Arial, sans-serif;
}

/* ---------- Скрытие по атрибуту hidden ---------- */

.cookie-note[hidden],
.nav-list[hidden],
.skip-to-content[hidden] {
    display: none !important;
}

/* ---------- База ---------- */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        radial-gradient(circle at 85% 8%, rgba(255, 94, 126, 0.05) 0, rgba(255, 94, 126, 0) 38%),
        radial-gradient(circle at 5% 82%, rgba(255, 94, 126, 0.05) 0, rgba(255, 94, 126, 0) 34%),
        radial-gradient(rgba(155, 107, 255, 0.18) 1px, transparent 1px);
    background-size: auto, auto, 26px 26px;
    background-attachment: fixed, fixed, scroll;
}

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.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.6em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 800;
    text-shadow: 2px 0 rgba(255, 94, 126, 0.35), -2px 0 rgba(107, 140, 255, 0.3);
}

h2 { font-size: 2.1rem; font-weight: 800; }
h3 { font-size: 1.4rem; font-weight: 700; }
h4 { font-size: 1.15rem; font-weight: 700; }

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

.shell-wide {
    width: min(85%, 1240px);
    margin-inline: auto;
}

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

/* ---------- Текстовые ссылки с анимированным подчёркиванием ---------- */

.entry-body a,
.widget a,
.crumbs a,
.card-title a {
    position: relative;
}

.entry-body a::after,
.crumbs a::after,
.card-title a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 0;
    height: 1px;
    background: currentColor;
    transition: width 0.28s ease;
}

.entry-body a:hover::after,
.crumbs a:hover::after,
.card-title a:hover::after {
    width: 100%;
}

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

.btn,
.btn-ghost,
.entry-body .btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.85rem 1.9rem;
    border-radius: 50px;
    border: 1px solid var(--accent);
    color: var(--accent);
    background: transparent;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn:hover,
.btn-ghost:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 10px 26px rgba(155, 107, 255, 0.45);
}

.btn-cta {
    border: none;
    color: #fff;
    background: linear-gradient(120deg, #9B6BFF 0%, #FF5E7E 100%);
}

.btn-cta:hover {
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 12px 34px rgba(255, 94, 126, 0.45);
}

/* ---------- Шапка ---------- */

.site-header {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(155, 107, 255, 0.18);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    text-decoration: none;
    color: var(--ink);
}

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.05rem;
    line-height: 1.25;
    color: var(--ink);
    max-width: 42ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-tagline {
    display: block;
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--muted);
    max-width: 52ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--line);
    background: transparent;
    color: var(--ink);
    border-radius: 50px;
    padding: 0.55rem 1.1rem;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.nav-list li a {
    display: inline-block;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    color: var(--ink);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    border: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.nav-list li a:hover,
.nav-list li.current-menu-item > a {
    color: var(--accent);
    border-color: var(--line);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(155, 107, 255, 0.18);
}

/* ---------- Хлебные крошки ---------- */

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

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

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

/* ---------- Раскладки ---------- */

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

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

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

.sidebar {
    min-width: 0;
    background: var(--side);
    border: 1px solid rgba(155, 107, 255, 0.18);
    border-radius: 16px;
    padding: 1.6rem 1.5rem;
    color: var(--ink);
}

.sidebar .widget + .widget {
    margin-top: 1.8rem;
}

.sidebar .widget-title {
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent);
}

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

.sidebar ul li {
    padding: 0.5rem 0;
    border-bottom: 1px dotted rgba(155, 107, 255, 0.35);
}

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

.sidebar a {
    color: var(--ink);
    font-size: 0.95rem;
}

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

.sidebar .post-date,
.sidebar .rss-date,
.sidebar .widget time {
    color: var(--muted);
    font-size: 0.8rem;
}

/* ---------- Заголовки секций ---------- */

.section-head {
    margin-bottom: 1.6rem;
    padding-left: 1rem;
    border-left: 3px solid var(--accent);
    box-shadow: -1px 0 12px rgba(155, 107, 255, 0.35);
}

.section-head h2 {
    margin: 0 0 0.35rem;
}

.section-sub {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
}

/* ---------- Техно-разделитель ---------- */

.techline {
    height: 2px;
    border: none;
    margin: 2.6rem 0;
    background-image: radial-gradient(circle, var(--accent) 1px, transparent 1px);
    background-size: 10px 2px;
    background-repeat: repeat-x;
    opacity: 0.55;
}

.diamonds {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.7rem;
    padding: 1.6rem 0;
}

.diamonds span {
    width: 10px;
    height: 10px;
    transform: rotate(45deg);
    background: rgba(155, 107, 255, 0.35);
}

.diamonds span:nth-child(2) {
    width: 14px;
    height: 14px;
    background: rgba(255, 94, 126, 0.35);
    border-radius: 50%;
    transform: none;
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--glow);
    overflow: hidden;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-hover);
    border-color: var(--accent);
}

.card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    min-width: 0;
}

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

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

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

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

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

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

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

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

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

.card-foot {
    margin-top: 1rem;
}

.post-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-bottom: 0.7rem;
    font-size: 0.82rem;
    color: var(--muted);
}

.chip-row {
    display: inline-flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.chip {
    display: inline-block;
    padding: 0.2rem 0.75rem;
    border-radius: 50px;
    background: var(--dark);
    border: 1px solid var(--accent);
    color: #D9CBFF;
    font-size: 0.74rem;
    font-family: var(--font-head);
    font-weight: 600;
    letter-spacing: 0.02em;
    box-shadow: 0 0 10px rgba(155, 107, 255, 0.35);
}

.chip:hover {
    color: #fff;
    border-color: var(--accent-2);
    box-shadow: 0 0 14px rgba(255, 94, 126, 0.5);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 1rem;
    border-radius: 50px;
    border: 1px solid var(--line);
    color: var(--accent);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(155, 107, 255, 0.35);
}

.pager .page-numbers.current {
    background: linear-gradient(120deg, #9B6BFF 0%, #FF5E7E 100%);
    border-color: transparent;
    color: #fff;
}

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

/* ---------- Главная ---------- */

.front-section {
    padding: 3.2rem 0;
}

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

/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(120deg, #241A3D 0%, #2E2159 45%, #1B2A63 100%);
    padding: 0;
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 4rem 2.2rem;
    max-width: 46rem;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
    text-shadow: 2px 0 rgba(255, 94, 126, 0.55), -2px 0 rgba(90, 190, 255, 0.5);
}

.hero p {
    color: #D8D2EC;
    font-size: 1.12rem;
    max-width: 40rem;
}

.hero-art {
    position: absolute;
    top: 0;
    right: 0;
    height: 100%;
    width: 58%;
    object-fit: cover;
    opacity: 0.55;
    z-index: 1;
    pointer-events: none;
}

.hero .btn-cta {
    margin-top: 1.2rem;
}

/* Статистика */

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

.stat {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--glow);
    padding: 1.7rem 1.4rem;
    text-align: center;
    min-width: 0;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 2.6rem;
    line-height: 1.1;
    color: var(--accent);
    text-shadow: 2px 0 rgba(255, 94, 126, 0.45), -2px 0 rgba(107, 140, 255, 0.4);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.9rem;
    color: var(--muted);
}

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

.timeline {
    position: relative;
    margin: 0;
    padding: 0.5rem 0 0.5rem 2.6rem;
    list-style: none;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, rgba(155, 107, 255, 0.85), rgba(255, 94, 126, 0.65));
}

.timeline li {
    position: relative;
    padding: 0 0 1.8rem 0;
    min-width: 0;
}

.timeline li:last-child {
    padding-bottom: 0;
}

.timeline li::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 0.45rem;
    width: 14px;
    height: 14px;
    margin-left: 2px;
    transform: rotate(45deg);
    background: var(--accent);
    box-shadow: 0 0 12px rgba(155, 107, 255, 0.7);
}

.timeline h3 {
    margin: 0 0 0.3rem;
    font-size: 1.15rem;
}

.timeline p {
    margin: 0;
    color: #453f5c;
    font-size: 0.97rem;
}

/* Zigzag */

.zigzag-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.4rem;
    align-items: center;
}

.zigzag-row + .zigzag-row {
    margin-top: 2.8rem;
}

.zigzag-row.reverse .zigzag-media {
    order: -1;
}

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

.zigzag-text h3 {
    font-size: 1.55rem;
}

.zigzag-media {
    min-width: 0;
    display: flex;
    justify-content: center;
}

.zigzag-media img {
    width: 100%;
    max-width: 340px;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    filter: drop-shadow(0 0 22px rgba(155, 107, 255, 0.45));
}

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

.zigzag-list li {
    position: relative;
    padding-left: 1.4rem;
    margin-bottom: 0.45rem;
    font-size: 0.97rem;
}

.zigzag-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62rem;
    width: 8px;
    height: 8px;
    transform: rotate(45deg);
    background: var(--accent-2);
}

/* Блок последних записей на главной */

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

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

.mini-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--glow-hover);
    border-color: var(--accent);
}

.mini-thumb {
    display: block;
}

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

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

.mini-body h3 {
    font-size: 1.15rem;
    margin: 0 0 0.5rem;
}

.mini-body h3 a {
    color: var(--ink);
}

.mini-body h3 a:hover {
    color: var(--accent);
}

.mini-excerpt {
    flex: 1;
    font-size: 0.93rem;
    color: #3b3550;
}

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

.front-more {
    margin-top: 1.8rem;
    text-align: center;
}

/* ---------- Запись и страница ---------- */

.entry-head h1 {
    font-size: 2.6rem;
}

.entry-thumb {
    margin: 1.2rem 0 1.6rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.entry-body {
    background: #fff;
    border: 1px solid rgba(155, 107, 255, 0.18);
    border-radius: 16px;
    box-shadow: var(--glow);
    padding: 2rem 2.1rem;
}

.entry-body h2 {
    font-size: 1.7rem;
    margin-top: 1.6em;
    padding-left: 0.85rem;
    border-left: 3px solid var(--accent);
}

.entry-body h3 {
    margin-top: 1.4em;
}

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

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

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

.entry-body blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent-2);
    border-radius: 12px;
    font-size: 1.05rem;
}

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

.entry-body table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    border: 1px solid var(--line);
}

.entry-body th,
.entry-body td {
    border: 1px solid var(--line);
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

.entry-tags {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

/* ---------- Комментарии ---------- */

.comments-area {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid rgba(155, 107, 255, 0.18);
    border-radius: 16px;
    box-shadow: var(--glow);
    padding: 1.8rem 2rem;
}

.comments-title,
.comment-reply-title {
    font-size: 1.35rem;
    padding-left: 0.8rem;
    border-left: 3px solid var(--accent);
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 1px dotted var(--line);
}

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

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

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}

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

.comment-actions a {
    font-size: 0.85rem;
}

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

.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: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    padding: 0.8rem 1.9rem;
    border-radius: 50px;
    border: none;
    color: #fff;
    background: linear-gradient(120deg, #9B6BFF 0%, #FF5E7E 100%);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.comment-form .submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(255, 94, 126, 0.4);
}

/* ---------- Форма поиска ---------- */

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

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

.search-form button {
    padding: 0.75rem 1.6rem;
    border-radius: 50px;
    border: none;
    background: linear-gradient(120deg, #9B6BFF 0%, #FF5E7E 100%);
    color: #fff;
    font-family: var(--font-head);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.search-form button:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(155, 107, 255, 0.4);
}

/* ---------- 404 ---------- */

.notfound {
    text-align: center;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--glow);
    padding: 3rem 2rem;
    max-width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.notfound .search-form {
    justify-content: center;
    margin: 1.6rem 0;
}

.no-results {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    box-shadow: var(--glow);
    padding: 2rem 2.1rem;
}

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

.site-footer {
    margin-top: 3rem;
    background: var(--dark);
    color: #CFC7E4;
    background-image: radial-gradient(rgba(155, 107, 255, 0.2) 1px, transparent 1px);
    background-size: 26px 26px;
}

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

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

.site-footer .widget-title {
    color: #fff;
    font-size: 1.05rem;
    padding-left: 0.75rem;
    border-left: 3px solid var(--accent-2);
    margin-bottom: 0.9rem;
}

.site-footer p,
.site-footer li {
    color: #CFC7E4;
    font-size: 0.94rem;
}

.site-footer a {
    color: #D9CBFF;
}

.site-footer a:hover {
    color: #FF5E7E;
}

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

.site-footer ul li {
    padding: 0.4rem 0;
    border-bottom: 1px dotted rgba(207, 199, 228, 0.2);
}

.site-footer ul li:last-child {
    border-bottom: none;
}

.site-footer .post-date,
.site-footer time {
    color: #9A91B5;
    font-size: 0.8rem;
}

.footer-bottom {
    border-top: 1px solid rgba(207, 199, 228, 0.16);
    padding: 1.2rem 0 1.6rem;
    font-size: 0.85rem;
    color: #9A91B5;
}

/* ---------- Cookie ---------- */

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem 1.6rem;
    background: rgba(26, 21, 38, 0.96);
    border-top: 1px solid var(--accent);
    color: #E3DCF3;
    font-size: 0.9rem;
}

.cookie-note p {
    margin: 0;
    max-width: 60ch;
}

.cookie-note button {
    border: none;
    border-radius: 50px;
    padding: 0.7rem 1.7rem;
    font-family: var(--font-head);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(120deg, #9B6BFF 0%, #FF5E7E 100%);
    cursor: pointer;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cookie-note button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(255, 94, 126, 0.4);
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }

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

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

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

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

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

    .hero-art {
        width: 100%;
        opacity: 0.3;
    }

    .hero-inner {
        max-width: none;
    }

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

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }

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

    .nav-list {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .nav-list.is-open {
        display: flex;
    }

    .header-inner {
        flex-wrap: wrap;
    }

    .front-section {
        padding: 2.2rem 0;
    }

    .hero-inner {
        padding: 2.6rem 1.4rem;
    }

    .entry-body,
    .comments-area,
    .no-results,
    .notfound {
        padding: 1.5rem 1.3rem;
    }

    .sidebar {
        padding: 1.4rem 1.3rem;
    }

    .stats-grid,
    .latest-grid,
    .footer-cols,
    .zigzag-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .zigzag-row.reverse .zigzag-media {
        order: 0;
    }

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

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

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

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

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

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

/* ---------- Служебные классы WordPress ---------- */

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

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

.alignleft {
    float: left;
    margin: 0 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0 0 1rem 1.4rem;
}

.aligncenter {
    margin-left: auto;
    margin-right: auto;
}

.entry-body .wp-caption,
.entry-body figure {
    max-width: 100%;
    margin: 1.4em 0;
}

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

.sticky .card-title::before {
    content: "◆ ";
    color: var(--accent-2);
}

@media (max-width: 600px) {
    .alignleft,
    .alignright {
        float: none;
        margin: 0 0 1rem;
    }
}
