/*
Theme Name: dds_net4women.ru
Theme URI: https://net4women.ru/
Author: Анна Соколова
Description: Lavender Circuit — лавандовый техно-минимализм с элементами glassmorphism для медиа о цифровом контенте, медиапроизводстве и digital-профессиях.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: nfwm
*/

/* ---------- Служебные правила hidden (до основных стилей) ---------- */
.nfwm-cookie[hidden] { display: none !important; }
.nfwm-nav[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --nfwm-bg: #F7F5FB;
    --nfwm-bg-alt: #EFEAF7;
    --nfwm-side: #F0ECF9;
    --nfwm-foot: #2A1F3D;
    --nfwm-ink: #1E1B2E;
    --nfwm-accent: #7C5CFC;
    --nfwm-accent-deep: #6640F0;
    --nfwm-fuchsia: #E879C8;
    --nfwm-muted: #7B7394;
    --nfwm-line: rgba(124, 92, 252, 0.15);
    --nfwm-shadow: 0 10px 30px rgba(124, 92, 252, 0.08);
    --nfwm-shadow-hi: 0 18px 44px rgba(124, 92, 252, 0.18);
    --nfwm-grad: linear-gradient(135deg, #7C5CFC 0%, #E879C8 100%);
    --nfwm-head: "Manrope", "Inter Tight", "Segoe UI", Arial, sans-serif;
    --nfwm-body: "Nunito Sans", "Source Sans 3", "Segoe UI", Arial, sans-serif;
    --nfwm-serif: "Lora", Georgia, "Times New Roman", serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
    margin: 0;
    position: relative;
    overflow-x: hidden;
    color: var(--nfwm-ink);
    font-family: var(--nfwm-body);
    font-size: 1.0625rem;
    line-height: 1.7;
    background-color: var(--nfwm-bg);
    background-image: radial-gradient(rgba(124, 92, 252, 0.08) 1.2px, transparent 1.4px);
    background-size: 24px 24px;
    overflow-wrap: break-word;
}
body::before {
    content: "";
    position: absolute;
    top: -160px;
    right: -180px;
    width: 560px;
    height: 560px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cdefs%3E%3CradialGradient id='g' cx='40%25' cy='40%25' r='60%25'%3E%3Cstop offset='0' stop-color='%23E879C8' stop-opacity='.55'/%3E%3Cstop offset='.55' stop-color='%237C5CFC' stop-opacity='.35'/%3E%3Cstop offset='1' stop-color='%237C5CFC' stop-opacity='0'/%3E%3C/radialGradient%3E%3C/defs%3E%3Cpath fill='url(%23g)' d='M302 72c44 38 64 104 44 160s-80 98-142 102S82 306 56 252 34 128 78 86 258 34 302 72z'/%3E%3C/svg%3E") no-repeat center / contain;
    filter: blur(40px);
    opacity: 0.55;
    pointer-events: none;
    z-index: 0;
}

img { max-width: 100%; height: auto; }
a { color: var(--nfwm-accent); text-decoration: none; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--nfwm-accent);
    outline-offset: 3px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--nfwm-head);
    color: var(--nfwm-ink);
    line-height: 1.22;
    margin: 1.6em 0 0.6em;
    font-weight: 700;
    letter-spacing: -0.01em;
    hyphens: auto;
}
h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: clamp(1.55rem, 2.6vw, 2.05rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1.1em; }
ul, ol { margin: 0 0 1.1em; padding-left: 1.4em; }

table { width: 100%; border-collapse: collapse; margin: 0 0 1.4em; border: 1px solid rgba(124, 92, 252, 0.3); }
th, td { border: 1px solid rgba(124, 92, 252, 0.3); padding: 0.6em 0.8em; text-align: left; }
th { background: var(--nfwm-bg-alt); font-family: var(--nfwm-head); }

.nfwm-sr {
    position: absolute; width: 1px; height: 1px; overflow: hidden;
    clip: rect(0 0 0 0); white-space: nowrap;
}
.nfwm-skip {
    position: absolute; left: 1rem; top: -100px; z-index: 100;
    background: var(--nfwm-accent); color: #fff; padding: 0.6rem 1rem; border-radius: 10px;
}
.nfwm-skip:focus { top: 1rem; }

/* ---------- Контейнер ---------- */
.nfwm-shell { width: min(92%, 1180px); margin-inline: auto; position: relative; z-index: 1; }
.nfwm-main { position: relative; z-index: 1; padding-bottom: 4.5rem; }

/* ---------- Полоса сверху ---------- */
.nfwm-topline { height: 3px; background: linear-gradient(90deg, #7C5CFC, #E879C8); position: relative; z-index: 2; }

/* ---------- Кнопки ---------- */
.nfwm-btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.8rem 1.5rem;
    border-radius: 12px;
    font-family: var(--nfwm-head);
    font-weight: 700;
    font-size: 0.98rem;
    line-height: 1.3;
    text-align: center;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform .25s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease, border-color .25s ease;
}
.nfwm-btn:hover { transform: translateY(-2px); }
.nfwm-btn-primary { background: var(--nfwm-accent); color: #fff; box-shadow: 0 6px 16px rgba(124, 92, 252, 0.25); }
.nfwm-btn-primary:hover { background: var(--nfwm-accent-deep); color: #fff; box-shadow: 0 12px 26px rgba(102, 64, 240, 0.35); }
.nfwm-btn-ghost { background: transparent; color: var(--nfwm-accent); border-color: var(--nfwm-accent); }
.nfwm-btn-ghost:hover { background: var(--nfwm-accent); color: #fff; box-shadow: 0 10px 22px rgba(124, 92, 252, 0.28); }
.nfwm-btn-white { background: #fff; color: var(--nfwm-accent); box-shadow: 0 8px 22px rgba(30, 27, 46, 0.18); }
.nfwm-btn-white:hover { color: var(--nfwm-accent-deep); box-shadow: 0 14px 30px rgba(30, 27, 46, 0.26); }

/* ---------- Ссылки в тексте ---------- */
.nfwm-entry a, .nfwm-page-lead a, .nfwm-crumbs a, .nfwm-card-more, .nfwm-sidebar a, .nfwm-comment-text a {
    background-image: linear-gradient(90deg, #7C5CFC, #E879C8);
    background-size: 0 1.5px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    padding-bottom: 1px;
    transition: background-size .3s ease, color .2s ease;
}
.nfwm-entry a:hover, .nfwm-page-lead a:hover, .nfwm-crumbs a:hover, .nfwm-card-more:hover, .nfwm-sidebar a:hover, .nfwm-comment-text a:hover {
    background-size: 100% 1.5px;
}

/* ---------- Шапка ---------- */
.nfwm-header {
    position: relative;
    z-index: 5;
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--nfwm-line);
}
.nfwm-header-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 1.5rem; padding: 0.9rem 0; flex-wrap: wrap;
}
.nfwm-brand { display: flex; align-items: center; gap: 0.9rem; min-width: 0; flex: 1 1 420px; color: var(--nfwm-ink); }
.nfwm-brand-mark { flex: 0 0 auto; display: block; }
.nfwm-brand-logo, .nfwm-brand-svg { display: block; width: 48px; height: 48px; object-fit: contain; }
.nfwm-brand-text { display: flex; flex-direction: column; min-width: 0; max-width: 560px; }
.nfwm-brand-name {
    font-family: var(--nfwm-head); font-weight: 800; font-size: 0.98rem; line-height: 1.3; color: var(--nfwm-ink);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.nfwm-brand-desc {
    font-size: 0.8rem; line-height: 1.4; color: var(--nfwm-muted); margin-top: 0.15rem;
    display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
}
.nfwm-nav-toggle {
    display: none; align-items: center; gap: 0.6rem;
    background: transparent; border: 1.5px solid var(--nfwm-accent); color: var(--nfwm-accent);
    border-radius: 12px; padding: 0.55rem 0.9rem; font-family: var(--nfwm-head); font-weight: 700; cursor: pointer;
}
.nfwm-nav-toggle-bars, .nfwm-nav-toggle-bars::before, .nfwm-nav-toggle-bars::after {
    display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; position: relative;
}
.nfwm-nav-toggle-bars::before, .nfwm-nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nfwm-nav-toggle-bars::before { top: -6px; }
.nfwm-nav-toggle-bars::after { top: 6px; }
.nfwm-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.3rem; }
.nfwm-menu a {
    display: block; padding: 0.5rem 0.95rem; border-radius: 12px;
    font-family: var(--nfwm-head); font-weight: 600; font-size: 0.97rem; color: var(--nfwm-ink);
    transition: background-color .2s ease, color .2s ease;
}
.nfwm-menu a:hover, .nfwm-menu .current-menu-item > a { background: rgba(124, 92, 252, 0.1); color: var(--nfwm-accent); }

/* ---------- Хлебные крошки ---------- */
.nfwm-crumbs { padding: 1.6rem 0 0.4rem; font-size: 0.9rem; color: var(--nfwm-muted); }
.nfwm-crumbs span:last-child { color: var(--nfwm-ink); }
.nfwm-crumb-sep { color: var(--nfwm-fuchsia); margin: 0 0.25rem; }

/* ---------- Заголовки секций ---------- */
.nfwm-sec-title {
    position: relative;
    font-size: clamp(1.6rem, 2.8vw, 2.15rem);
    font-weight: 800;
    margin: 0 0 1.6rem;
    padding-left: 54px;
}
.nfwm-sec-title::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 34px; height: 3px; border-radius: 3px; background: linear-gradient(90deg, #7C5CFC, #E879C8);
}
.nfwm-sec-title::after {
    content: ""; position: absolute; left: 42px; top: calc(0.62em - 1.5px);
    width: 6px; height: 6px; border-radius: 50%; background: var(--nfwm-accent);
    transition: transform .3s ease;
}
.nfwm-sec-title:hover::after { transform: scale(1.7); }
.nfwm-sec-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.5rem; flex-wrap: wrap; margin-bottom: 1.6rem; }
.nfwm-sec-head .nfwm-sec-title { margin: 0; }

/* Точка-буллет у H2/H3 в контенте */
.nfwm-entry h2, .nfwm-entry h3, .nfwm-comments-title {
    position: relative; padding-left: 18px;
}
.nfwm-entry h2::before, .nfwm-entry h3::before, .nfwm-comments-title::before {
    content: ""; position: absolute; left: 0; top: 0.5em;
    width: 6px; height: 6px; border-radius: 50%; background: var(--nfwm-accent);
    transition: transform .3s ease;
}
.nfwm-entry h2:hover::before, .nfwm-entry h3:hover::before, .nfwm-comments-title:hover::before { transform: scale(1.7); }

/* ---------- Главная ---------- */
.nfwm-front { width: 85%; margin: 0 auto; padding-top: 2.2rem; }
.nfwm-front > section { margin-bottom: 3rem; }

.nfwm-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
    align-items: center;
    gap: 2rem;
    padding: 3.6rem 3.4rem;
    border-radius: 24px;
    overflow: hidden;
    background-color: #7C5CFC;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, #7C5CFC 0%, #E879C8 100%);
    box-shadow: 0 24px 60px rgba(124, 92, 252, 0.25);
    color: #fff;
}
.nfwm-hero-text { min-width: 0; }
.nfwm-hero-title { color: #fff; margin: 0 0 1rem; font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
.nfwm-hero-sub { color: rgba(255, 255, 255, 0.82); font-size: 1.12rem; max-width: 34em; margin-bottom: 1.8rem; }
.nfwm-hero-art { min-width: 0; justify-self: center; }
.nfwm-hero-art img { display: block; width: 100%; height: auto; max-width: 460px; }

.nfwm-stats {
    background: var(--nfwm-bg-alt);
    border-radius: 20px;
    padding: 2.6rem 2.4rem;
    border: 1px solid var(--nfwm-line);
}
.nfwm-stats-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.nfwm-stat {
    min-width: 0;
    display: flex; flex-direction: column; align-items: center; text-align: center;
    padding: 0.4rem 1rem;
    border-left: 1px solid rgba(124, 92, 252, 0.3);
}
.nfwm-stat:first-child { border-left: 0; }
.nfwm-stat-num {
    font-family: var(--nfwm-head); font-weight: 800; font-size: clamp(2.4rem, 4.2vw, 3.4rem); line-height: 1.1;
    background: linear-gradient(135deg, #7C5CFC, #E879C8);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nfwm-stat-label { color: var(--nfwm-muted); font-size: 0.95rem; margin-top: 0.35rem; line-height: 1.45; }

.nfwm-wave { height: 40px; margin: -1.2rem 0 1.8rem; opacity: 0.9; }
.nfwm-wave svg { display: block; width: 100%; height: 100%; }

.nfwm-directions {
    background: var(--nfwm-bg-alt);
    border-radius: 20px;
    padding: 2.6rem 2.4rem;
    border: 1px solid var(--nfwm-line);
    position: relative;
    overflow: hidden;
}
.nfwm-directions::before {
    content: ""; position: absolute; width: 280px; height: 280px; border-radius: 50%;
    right: -80px; bottom: -120px; background: radial-gradient(circle, rgba(232, 121, 200, 0.28), transparent 70%);
    pointer-events: none;
}
.nfwm-dir-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; position: relative; }
.nfwm-dir {
    min-width: 0;
    padding: 1.9rem 1.7rem;
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(124, 92, 252, 0.18);
    box-shadow: var(--nfwm-shadow);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nfwm-dir:hover { transform: translateY(-4px); border-color: rgba(124, 92, 252, 0.55); box-shadow: 0 0 0 4px rgba(124, 92, 252, 0.08), var(--nfwm-shadow-hi); }
.nfwm-dir-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 58px; height: 58px; border-radius: 50%;
    background: rgba(124, 92, 252, 0.12); color: var(--nfwm-accent); margin-bottom: 1.1rem;
}
.nfwm-dir-title { margin: 0 0 0.5rem; font-size: 1.2rem; }
.nfwm-dir-text { margin: 0; color: var(--nfwm-muted); font-size: 0.98rem; }

.nfwm-quote {
    border-radius: 22px;
    padding: 3.4rem 3.2rem;
    background-color: #7C5CFC;
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 14px),
        linear-gradient(135deg, #7C5CFC 0%, #E879C8 100%);
    color: #fff;
}
.nfwm-quote-body {
    margin: 0; padding: 0.3rem 0 0.3rem 2rem;
    border-left: 3px solid rgba(255, 255, 255, 0.55);
}
.nfwm-quote-body p {
    font-family: var(--nfwm-serif); font-style: italic; font-weight: 500;
    font-size: clamp(1.45rem, 2.7vw, 2.1rem); line-height: 1.45; color: #fff; margin: 0 0 1.2rem;
}
.nfwm-quote-author { color: rgba(255, 255, 255, 0.75); font-size: 0.98rem; font-family: var(--nfwm-head); font-weight: 600; }

/* ---------- Сетка записей и карточки ---------- */
.nfwm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 1.6rem; }
.nfwm-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.nfwm-card {
    display: flex; flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid rgba(124, 92, 252, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(124, 92, 252, 0.08);
    transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.nfwm-card:hover { transform: translateY(-4px); border-color: var(--nfwm-accent); box-shadow: 0 16px 38px rgba(124, 92, 252, 0.18); }
.nfwm-card-thumb { display: block; overflow: hidden; background: var(--nfwm-bg-alt); }
.nfwm-card-thumb img, .nfwm-card-noimg img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    transition: transform .45s ease;
}
.nfwm-card-noimg { display: block; }
.nfwm-card:hover .nfwm-card-thumb img { transform: scale(1.03); }
.nfwm-card-body { flex: 1; display: flex; flex-direction: column; padding: 1.3rem 1.4rem 1.5rem; min-width: 0; }
.nfwm-card-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem 0.8rem; font-size: 0.85rem; color: var(--nfwm-muted); margin-bottom: 0.7rem; }
.nfwm-card-title { margin: 0 0 0.6rem; font-size: 1.18rem; line-height: 1.32; }
.nfwm-card-title a { color: var(--nfwm-ink); transition: color .2s ease; }
.nfwm-card-title a:hover { color: var(--nfwm-accent); }
.nfwm-card-excerpt { color: #4A4560; font-size: 0.97rem; flex: 1; }
.nfwm-card-excerpt p { margin: 0 0 0.5em; background: none; }
.nfwm-card-more { align-self: flex-start; margin-top: 0.6rem; font-family: var(--nfwm-head); font-weight: 700; font-size: 0.93rem; }

/* Цветные pill-теги */
.nfwm-pill {
    display: inline-block; padding: 0.22rem 0.75rem; border-radius: 999px;
    font-family: var(--nfwm-head); font-size: 0.78rem; font-weight: 700; line-height: 1.4;
    border: 1px solid; transition: background-color .2s ease;
}
.nfwm-tone-0 { color: #6A47F5; background: rgba(124, 92, 252, 0.1); border-color: rgba(124, 92, 252, 0.3); }
.nfwm-tone-1 { color: #B4429A; background: rgba(232, 121, 200, 0.12); border-color: rgba(232, 121, 200, 0.4); }
.nfwm-tone-2 { color: #8A4FD8; background: rgba(166, 110, 236, 0.12); border-color: rgba(166, 110, 236, 0.35); }
.nfwm-tone-3 { color: #5A55C9; background: rgba(110, 120, 240, 0.12); border-color: rgba(110, 120, 240, 0.35); }
.nfwm-tone-4 { color: #A0479E; background: rgba(200, 110, 210, 0.12); border-color: rgba(200, 110, 210, 0.35); }
.nfwm-pill:hover { background-color: rgba(124, 92, 252, 0.18); }

.nfwm-empty { color: var(--nfwm-muted); }
.nfwm-empty-box { padding: 2rem 2rem; background: #fff; border-radius: 16px; border: 1px solid var(--nfwm-line); }

/* ---------- Раскладки ---------- */
.nfwm-layout { padding-top: 1rem; }
.nfwm-layout-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    align-items: start;
}
.nfwm-layout-single { display: block; }
.nfwm-layout-single .nfwm-content-area { width: 85%; margin-left: auto; margin-right: auto; }
.nfwm-content-area { min-width: 0; }
.nfwm-page-head { margin-bottom: 1.8rem; }
.nfwm-page-title { margin: 0.4rem 0 0.6rem; }
.nfwm-page-lead { color: var(--nfwm-muted); font-size: 1.08rem; margin: 0; }

/* ---------- Сайдбар ---------- */
.nfwm-sidebar {
    min-width: 0;
    background: var(--nfwm-side);
    border: 1px solid var(--nfwm-line);
    border-radius: 18px;
    padding: 1.6rem 1.5rem;
    color: var(--nfwm-ink);
}
.nfwm-sidebar .nfwm-widget + .nfwm-widget { margin-top: 1.8rem; }
.nfwm-sidebar .nfwm-widget-title { margin: 0 0 0.9rem; font-size: 1.12rem; color: var(--nfwm-ink); position: relative; padding-left: 16px; }
.nfwm-sidebar .nfwm-widget-title::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--nfwm-accent); }
.nfwm-sidebar ul { list-style: none; margin: 0; padding: 0; }
.nfwm-sidebar li { padding: 0.55rem 0; border-bottom: 1px dashed rgba(124, 92, 252, 0.22); color: var(--nfwm-ink); }
.nfwm-sidebar li:last-child { border-bottom: 0; }
.nfwm-sidebar a { color: #3E3460; font-weight: 600; }
.nfwm-sidebar a:hover { color: var(--nfwm-accent); }
.nfwm-sidebar .post-date { display: block; font-size: 0.82rem; color: var(--nfwm-muted); }
.nfwm-sidebar p, .nfwm-sidebar .textwidget { color: #3E3A52; }

/* ---------- Запись и страница ---------- */
.nfwm-article {
    background: #fff;
    border: 1px solid var(--nfwm-line);
    border-radius: 20px;
    padding: 2.4rem 2.6rem;
    box-shadow: var(--nfwm-shadow);
}
.nfwm-article-head .nfwm-page-title { margin-top: 0.3rem; }
.nfwm-article-cover { margin: 1.2rem 0 1.8rem; }
.nfwm-article-cover img { display: block; width: 100%; height: auto; border-radius: 16px; aspect-ratio: 16 / 9; object-fit: cover; }
.nfwm-entry { hyphens: auto; }
.nfwm-entry > *:first-child { margin-top: 0; }
.nfwm-entry img { border-radius: 12px; height: auto; }
.nfwm-entry blockquote {
    margin: 1.6em 0; padding: 1.2rem 1.5rem; border-left: 3px solid var(--nfwm-accent);
    background: var(--nfwm-bg-alt); border-radius: 0 14px 14px 0; font-family: var(--nfwm-serif); font-style: italic;
}
.nfwm-entry blockquote p:last-child { margin-bottom: 0; }
.nfwm-entry pre { overflow-x: auto; background: #1E1B2E; color: #EDE8FA; padding: 1rem 1.2rem; border-radius: 12px; }
.nfwm-entry hr { border: 0; height: 1px; margin: 2.2em 0; background: linear-gradient(90deg, transparent, rgba(124, 92, 252, 0.6), transparent); }
.nfwm-entry figure { margin: 1.5em 0; }
.nfwm-entry figcaption { font-size: 0.88rem; color: var(--nfwm-muted); margin-top: 0.4rem; }
.nfwm-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.8rem; padding-top: 1.4rem; border-top: 1px solid var(--nfwm-line); }

/* ---------- Пагинация ---------- */
.nfwm-pager { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 2.4rem; align-items: center; }
.nfwm-pager .page-numbers, .nfwm-pager > a, .nfwm-pager > span:not(.page-numbers) {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 44px; height: 44px; padding: 0 0.9rem;
    border-radius: 12px; border: 1.5px solid rgba(124, 92, 252, 0.3);
    background: #fff; color: var(--nfwm-ink);
    font-family: var(--nfwm-head); font-weight: 700; font-size: 0.95rem;
    transition: transform .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}
.nfwm-pager a.page-numbers:hover, .nfwm-pager > a:hover { border-color: var(--nfwm-accent); color: var(--nfwm-accent); transform: translateY(-2px); }
.nfwm-pager .page-numbers.current { background: var(--nfwm-accent); border-color: var(--nfwm-accent); color: #fff; }
.nfwm-pager .page-numbers.dots { border: 0; background: none; min-width: auto; padding: 0 0.3rem; }

/* ---------- Поиск ---------- */
.nfwm-search { display: flex; gap: 0.6rem; flex-wrap: wrap; margin: 1.2rem 0; }
.nfwm-search-field {
    flex: 1 1 220px; min-width: 0; padding: 0.75rem 1rem; border-radius: 12px;
    border: 1.5px solid rgba(124, 92, 252, 0.3); background: #fff; font: inherit; color: var(--nfwm-ink);
}
.nfwm-search-field:focus { border-color: var(--nfwm-accent); outline: none; box-shadow: 0 0 0 4px rgba(124, 92, 252, 0.15); }

/* ---------- 404 ---------- */
.nfwm-404 {
    text-align: center; padding: 3rem 2.4rem 3.4rem; margin: 1.5rem auto 0; width: 85%;
    background: #fff; border-radius: 22px; border: 1px solid var(--nfwm-line); box-shadow: var(--nfwm-shadow);
}
.nfwm-404 .nfwm-search { justify-content: center; max-width: 520px; margin: 1.4rem auto 1.6rem; }
.nfwm-404-code {
    display: block; font-family: var(--nfwm-head); font-weight: 800; font-size: clamp(4.5rem, 12vw, 8rem); line-height: 1;
    background: linear-gradient(135deg, #7C5CFC, #E879C8); -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ---------- Комментарии ---------- */
.nfwm-comments {
    margin-top: 2rem; background: #fff; border: 1px solid var(--nfwm-line);
    border-radius: 20px; padding: 2rem 2.4rem;
}
.nfwm-comments-title { margin-top: 0; font-size: 1.4rem; }
.nfwm-comment-list, .nfwm-comment-list .children { list-style: none; margin: 0; padding: 0; }
.nfwm-comment-list .children { padding-left: 1.6rem; border-left: 2px solid rgba(124, 92, 252, 0.15); }
.nfwm-comment-body { padding: 1.1rem 0; border-bottom: 1px solid var(--nfwm-line); }
.nfwm-comment-head { display: flex; align-items: center; gap: 0.8rem; margin-bottom: 0.5rem; }
.nfwm-comment-head img { border-radius: 50%; display: block; }
.nfwm-comment-author { font-family: var(--nfwm-head); font-weight: 700; display: block; }
.nfwm-comment-date { font-size: 0.82rem; color: var(--nfwm-muted); }
.nfwm-comment-wait { font-size: 0.9rem; color: #B4429A; }
.nfwm-comment-reply a { font-family: var(--nfwm-head); font-weight: 700; font-size: 0.9rem; }
.comment-respond { margin-top: 1.6rem; }
.comment-reply-title { font-size: 1.3rem; margin-top: 0; }
.comment-reply-title small { margin-left: 0.6rem; font-size: 0.85rem; }
.comment-form label { display: block; font-family: var(--nfwm-head); font-weight: 600; font-size: 0.92rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
    width: 100%; padding: 0.75rem 1rem; border-radius: 12px; border: 1.5px solid rgba(124, 92, 252, 0.3);
    font: inherit; color: var(--nfwm-ink); background: var(--nfwm-bg);
}
.comment-form-cookies-consent { display: flex; gap: 0.6rem; align-items: flex-start; }
.comment-form-cookies-consent label { font-weight: 400; font-family: var(--nfwm-body); }
.nfwm-form-note { font-size: 0.9rem; color: var(--nfwm-muted); }

/* ---------- Подвал ---------- */
.nfwm-footer {
    position: relative; z-index: 1;
    background-color: #2A1F3D;
    background-image: radial-gradient(rgba(232, 121, 200, 0.07) 1px, transparent 1.3px);
    background-size: 24px 24px;
    color: #D9D2EA;
    padding: 3.6rem 0 1.6rem;
}
.nfwm-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, #7C5CFC, #E879C8); }
.nfwm-footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.4rem; }
.nfwm-footer-col { min-width: 0; }
.nfwm-footer .nfwm-widget-title { color: #FFFFFF; font-size: 1.1rem; margin: 0 0 1rem; position: relative; padding-left: 16px; }
.nfwm-footer .nfwm-widget-title::before { content: ""; position: absolute; left: 0; top: 0.5em; width: 6px; height: 6px; border-radius: 50%; background: var(--nfwm-fuchsia); }
.nfwm-footer p, .nfwm-footer .textwidget, .nfwm-footer li { color: #D9D2EA; font-size: 0.95rem; }
.nfwm-footer ul { list-style: none; margin: 0; padding: 0; }
.nfwm-footer li { padding: 0.3rem 0; }
.nfwm-footer a { color: #E6DEFF; transition: color .2s ease; }
.nfwm-footer a:hover { color: #F2A6DD; }
.nfwm-footer .post-date { color: #B3A8CC; display: block; font-size: 0.82rem; }
.nfwm-copy { margin-top: 2.6rem; padding-top: 1.4rem; border-top: 1px solid rgba(217, 210, 234, 0.15); font-size: 0.88rem; color: #B3A8CC; }

/* ---------- Cookie-баннер ---------- */
.nfwm-cookie {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 60;
    display: flex; align-items: center; justify-content: space-between; gap: 1rem 1.6rem; flex-wrap: wrap;
    max-width: 920px; margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border: 1px solid rgba(124, 92, 252, 0.3); border-radius: 16px;
    box-shadow: 0 18px 44px rgba(42, 31, 61, 0.18);
}
.nfwm-cookie-text { margin: 0; flex: 1 1 320px; font-size: 0.93rem; color: var(--nfwm-ink); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .nfwm-front { width: 100%; }
    .nfwm-hero { grid-template-columns: minmax(0, 1fr); padding: 2.8rem 2.2rem; }
    .nfwm-hero-art img { max-width: 360px; }
    .nfwm-stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.6rem; }
    .nfwm-stat:nth-child(3) { border-left: 0; }
    .nfwm-dir-grid, .nfwm-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfwm-layout-sidebar { display: block; }
    .nfwm-sidebar { margin-top: 2.4rem; }
    .nfwm-layout-single .nfwm-content-area { width: 100%; }
    .nfwm-footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .nfwm-404 { width: 100%; }

    .nfwm-nav-toggle { display: inline-flex; }
    .nfwm-nav { flex: 1 0 100%; }
    .nfwm-nav.is-collapsed { display: none; }
    .nfwm-menu { flex-direction: column; gap: 0.2rem; padding: 0.4rem 0 0.6rem; }
}

@media (max-width: 600px) {
    body { font-size: 1rem; }
    .nfwm-brand-desc { display: none; }
    .nfwm-brand { flex-basis: 0; }
    .nfwm-hero { padding: 2.2rem 1.4rem; border-radius: 18px; }
    .nfwm-stats { padding: 2rem 1.3rem; }
    .nfwm-stats-row { grid-template-columns: minmax(0, 1fr); }
    .nfwm-stat { border-left: 0; border-top: 1px solid rgba(124, 92, 252, 0.3); padding-top: 1.1rem; }
    .nfwm-stat:first-child { border-top: 0; padding-top: 0.4rem; }
    .nfwm-directions { padding: 2rem 1.3rem; }
    .nfwm-dir-grid, .nfwm-grid-3 { grid-template-columns: minmax(0, 1fr); }
    .nfwm-quote { padding: 2.2rem 1.4rem; }
    .nfwm-quote-body { padding-left: 1.1rem; }
    .nfwm-article { padding: 1.6rem 1.3rem; }
    .nfwm-comments { padding: 1.6rem 1.3rem; }
    .nfwm-404 { padding: 2.2rem 1.3rem; }
    .nfwm-sidebar { padding: 1.4rem 1.2rem; }
    .nfwm-sec-title { padding-left: 46px; }
    .nfwm-sec-title::before { width: 28px; }
    .nfwm-sec-title::after { left: 35px; }
    .nfwm-footer-cols { grid-template-columns: minmax(0, 1fr); }
    .nfwm-cookie { left: 0.6rem; right: 0.6rem; bottom: 0.6rem; padding: 1rem 1.1rem; }
}
