/*
Theme Name: dds_lavaweb.ru
Author: Алексей Смирнов
Description: Тема для информационного сайта онлайн-школы digital-профессий lavaweb.ru. Лавандовый техно-минимализм с элементами glassmorphism.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lavaw
*/

/* =====================================================================
   1. Переменные
   ================================================================== */

:root {
    --c-bg: #F5F2FA;
    --c-bg-alt: #EBE3F5;
    --c-head-plate: #E8E0F0;
    --c-foot: #2A2333;
    --c-foot-deep: #1E1826;
    --c-panel: #FFFFFF;
    --c-text: #1E1826;
    --c-accent: #00C2B3;
    --c-accent-2: #B27BFF;
    --c-muted: #7A6F87;
    --c-line: rgba(178, 123, 255, 0.18);
    --shadow-card: 0 10px 25px -8px rgba(43, 32, 56, 0.08);
    --shadow-card-hi: 0 18px 40px -12px rgba(43, 32, 56, 0.18);
    --font-head: 'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, sans-serif;
    --font-body: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
}

/* =====================================================================
   2. База
   ================================================================== */

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--c-text);
    background-color: var(--c-bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='760' viewBox='0 0 900 760'%3E%3Cpath fill='%23B27BFF' fill-opacity='0.04' d='M700 40c110 0 180 90 172 190-8 100-96 150-180 186-84 36-160 60-232 22-72-38-100-130-72-214C416 140 520 96 596 62c38-16 70-22 104-22z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -120px top -60px;
    background-attachment: fixed;
}

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

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

.entry-body a,
.widget a,
.crumbs a,
.site-nav a {
    position: relative;
}

.entry-body a::after,
.crumbs a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: -2px;
    height: 1px;
    background: var(--c-accent);
    transition: left .25s ease, right .25s ease;
}

.entry-body a:hover::after,
.crumbs a:hover::after {
    left: 0;
    right: 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.015em;
    color: var(--c-text);
    margin: 0 0 0.6em;
}

h1 { font-size: 3.5rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.1em; }

ul, ol { padding-left: 1.3em; }

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

.entry-body ul li {
    position: relative;
    padding-left: 1.8rem;
    margin-bottom: 0.5rem;
}

.entry-body ul li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c-accent-2);
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--c-accent);
    border-radius: 0 12px 12px 0;
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(6px);
    color: var(--c-text);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--c-line);
}

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

th { background: var(--c-bg-alt); font-family: var(--font-head); }

code, pre {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    background: var(--c-bg-alt);
    border-radius: 6px;
}

code { padding: 0.1em 0.35em; font-size: 0.92em; }

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--c-line);
}

figure { margin: 1.6rem 0; }

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

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

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

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.98rem;
    line-height: 1;
    padding: 0.95rem 1.9rem;
    border-radius: 50px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease, border-color .2s ease;
}

.btn-filled {
    background: var(--c-accent);
    color: #08221F;
    border-color: var(--c-accent);
}

.btn-filled:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 24px -6px rgba(0, 194, 179, 0.55);
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.45);
    backdrop-filter: blur(8px);
    color: var(--c-text);
    border-color: rgba(178, 123, 255, 0.4);
}

.btn-ghost:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #FFFFFF;
}

.on-dark .btn-ghost {
    color: #F3EEFB;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.3);
}

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

.top-glow {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, #B27BFF 0%, #00C2B3 100%);
}

.site-head {
    background: rgba(255, 255, 255, 0.75);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(178, 123, 255, 0.2);
    box-shadow: 0 6px 22px -18px rgba(43, 32, 56, 0.5);
}

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

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.35;
    color: var(--c-text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--c-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(178, 123, 255, 0.4);
    border-radius: 50px;
    padding: 0.6rem 1.1rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--c-text);
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--c-accent);
    box-shadow: 0 5px 0 var(--c-accent-2), 0 -5px 0 var(--c-accent-2);
}

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

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

.site-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--c-text);
    padding: 0.35rem 0;
}

.site-nav a::after {
    content: '';
    display: block;
    height: 2px;
    margin-top: 3px;
    background: var(--c-accent);
    transform: scaleX(0);
    transition: transform .25s ease;
}

.site-nav a:hover::after,
.site-nav .current-menu-item > a::after { transform: scaleX(1); }

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

/* =====================================================================
   5. Общие обёртки страниц
   ================================================================== */

.page-wrap { padding: 2.8rem 0 4rem; }

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

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67%) minmax(0, 27%);
    justify-content: space-between;
    gap: 2.2rem;
    align-items: start;
}

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

.crumbs {
    font-size: 0.88rem;
    color: var(--c-muted);
    margin-bottom: 1.6rem;
}

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

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

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

.page-title {
    position: relative;
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
    padding-bottom: 0.7rem;
}

.page-title::before {
    content: '';
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--c-accent-2);
    margin-right: 0.7rem;
    vertical-align: middle;
}

.page-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 120px;
    height: 4px;
    background: var(--c-accent);
    box-shadow: 0 6px 0 -2px rgba(178, 123, 255, 0.55);
}

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

.cards { display: grid; gap: 1.6rem; }

.card {
    display: flex;
    flex-direction: column;
    background: var(--c-panel);
    border: 1px solid rgba(178, 123, 255, 0.15);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-card-hi);
    border-color: rgba(0, 194, 179, 0.55);
}

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

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    min-height: 190px;
    background: var(--c-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;
    padding: 1.5rem 1.7rem;
    display: flex;
    flex-direction: column;
}

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

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

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

.card-meta {
    font-size: 0.83rem;
    color: var(--c-muted);
    margin-bottom: 0.8rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1rem;
}

.card-meta .meta-cat { color: var(--c-accent-2); }

.card-excerpt { color: #37304A; font-size: 0.97rem; }

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

.card-more {
    margin-top: auto;
    padding-top: 0.9rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.92rem;
    color: var(--c-accent);
    align-self: flex-start;
}

.card-more:hover { color: var(--c-accent-2); }

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--c-panel);
    border-radius: 16px;
    padding: 1.5rem 1.6rem;
    margin-bottom: 1.6rem;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(178, 123, 255, 0.14);
    color: var(--c-text);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--c-accent);
    color: var(--c-text);
}

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

.sidebar .widget li {
    position: relative;
    padding: 0.45rem 0 0.45rem 1.5rem;
    border-bottom: 1px dashed rgba(178, 123, 255, 0.28);
}

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

.sidebar .widget li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--c-accent-2);
}

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

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

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

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

.site-foot {
    background: var(--c-foot);
    color: #E4DDF0;
    margin-top: 3rem;
    background-image: linear-gradient(180deg, #2A2333 0%, #241E2D 100%);
}

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

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

.site-foot .widget { margin-bottom: 1.5rem; color: #E4DDF0; }

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

.site-foot .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-left: 1.2rem;
    position: relative;
}

.site-foot .widget-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.42em;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c-accent);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li { color: #CFC5DF; font-size: 0.94rem; }

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

.site-foot .widget a:hover { color: var(--c-accent); }

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

.site-foot .widget li {
    position: relative;
    padding: 0.35rem 0 0.35rem 1.3rem;
}

.site-foot .widget li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 1em;
    width: 7px;
    height: 7px;
    border-radius: 2px;
    background: var(--c-accent-2);
}

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

.foot-bottom {
    border-top: 1px solid rgba(178, 123, 255, 0.22);
    padding: 1.3rem 0 1.6rem;
    font-size: 0.87rem;
    color: #A99ABF;
}

/* =====================================================================
   9. 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;
    padding: 1rem 1.6rem;
    background: rgba(30, 24, 38, 0.94);
    backdrop-filter: blur(10px);
    border-top: 2px solid var(--c-accent);
    color: #EFE9F8;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; max-width: 780px; }

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

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.9rem;
    border-radius: 50px;
    border: 1px solid rgba(178, 123, 255, 0.35);
    background: rgba(255, 255, 255, 0.6);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--c-text);
    transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}

.pager a.page-numbers:hover {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #FFFFFF;
}

.pager .page-numbers.current {
    background: var(--c-accent);
    border-color: var(--c-accent);
    color: #08221F;
    box-shadow: 0 8px 20px -8px rgba(0, 194, 179, 0.7);
}

.pager .page-numbers.dots {
    border-color: transparent;
    background: none;
}

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

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

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.2rem;
    font-size: 0.86rem;
    color: var(--c-muted);
    margin-bottom: 1.2rem;
}

.entry-meta a { color: var(--c-accent-2); }

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

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

.entry-body {
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(6px);
    border: 1px solid rgba(178, 123, 255, 0.14);
    border-radius: 16px;
    padding: 2rem 2.2rem;
    box-shadow: var(--shadow-card);
}

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

.entry-body h2::before {
    content: '';
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 3px;
    background: var(--c-accent-2);
    margin-right: 0.6rem;
    vertical-align: middle;
}

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

.entry-tags a {
    display: inline-block;
    padding: 0.35rem 0.9rem;
    border-radius: 50px;
    font-size: 0.83rem;
    background: rgba(178, 123, 255, 0.14);
    color: #5B3E85;
}

.entry-tags a:hover { background: var(--c-accent); color: #FFFFFF; }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 2rem;
    font-family: var(--font-head);
    font-size: 0.93rem;
}

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

.comments-area {
    margin-top: 2.5rem;
    background: var(--c-panel);
    border: 1px solid rgba(178, 123, 255, 0.14);
    border-radius: 16px;
    padding: 1.8rem 2rem;
    box-shadow: var(--shadow-card);
}

.comments-title { font-size: 1.4rem; margin-bottom: 1.2rem; }

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

.comment-list .children { list-style: none; padding-left: 1.6rem; }

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

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

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

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

.comment-reply a { font-size: 0.88rem; font-weight: 600; }

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

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    max-width: 640px;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(178, 123, 255, 0.35);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text);
}

.comment-form textarea { width: 100%; max-width: none; min-height: 150px; }

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.9rem 1.9rem;
    border-radius: 50px;
    border: 1px solid var(--c-accent);
    background: var(--c-accent);
    color: #08221F;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.comment-form .submit:hover {
    transform: translateY(2px);
    box-shadow: 0 10px 24px -6px rgba(0, 194, 179, 0.55);
}

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

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

.search-form .search-field {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.8rem 1.2rem;
    border-radius: 50px;
    border: 1px solid rgba(178, 123, 255, 0.4);
    background: rgba(255, 255, 255, 0.75);
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--c-text);
}

.search-form .search-submit {
    padding: 0.8rem 1.6rem;
    border-radius: 50px;
    border: 1px solid var(--c-accent);
    background: var(--c-accent);
    color: #08221F;
    font-family: var(--font-head);
    font-weight: 600;
    cursor: pointer;
}

.error-box {
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(178, 123, 255, 0.16);
    border-radius: 16px;
    padding: 2.2rem 2.2rem;
    box-shadow: var(--shadow-card);
}

.error-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    background: linear-gradient(90deg, #B27BFF, #00C2B3);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 0.6rem;
}

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

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

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

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

.sect-title {
    position: relative;
    font-size: 2.05rem;
    margin: 0 0 0.5rem;
    padding-bottom: 0.65rem;
}

.sect-title::before {
    content: '';
    display: inline-block;
    width: 13px;
    height: 13px;
    border-radius: 4px;
    background: var(--c-accent-2);
    margin-right: 0.75rem;
    vertical-align: middle;
}

.sect-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 150px;
    height: 4px;
    background: var(--c-accent);
    box-shadow: 0 6px 0 -2px rgba(178, 123, 255, 0.5);
}

.sect-lead {
    max-width: 760px;
    color: var(--c-muted);
    margin: 0.9rem 0 0;
}

.glass-rule {
    height: 1px;
    border: none;
    margin: 0;
    background: linear-gradient(90deg, rgba(178, 123, 255, 0), rgba(178, 123, 255, 0.5), rgba(0, 194, 179, 0.4), rgba(178, 123, 255, 0));
    filter: blur(0.3px);
}

.dot-divider {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    padding: 1.6rem 0;
}

.dot-divider i {
    width: 8px;
    height: 8px;
    border-radius: 3px;
    display: block;
}

.dot-divider i:nth-child(1) { background: #B27BFF; }
.dot-divider i:nth-child(2) { background: #00C2B3; }
.dot-divider i:nth-child(3) { background: #D1C4E0; }
.dot-divider i:nth-child(4) { background: #B27BFF; }
.dot-divider i:nth-child(5) { background: #00C2B3; }

/* --- Hero --- */

.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #2A2333 0%, #1E1826 100%);
    color: #F3EEFB;
    padding: 4.6rem 0 4.4rem;
}

.hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(60deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px),
        repeating-linear-gradient(-60deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 34px);
    pointer-events: none;
}

.hero-grid {
    position: absolute;
    right: -60px;
    top: 50%;
    transform: translateY(-50%);
    width: 620px;
    max-width: 70%;
    opacity: 0.5;
    pointer-events: none;
}

.hero-inner { position: relative; z-index: 2; max-width: 720px; }

.hero h1 {
    font-size: 3.5rem;
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero h1 .grad {
    background: linear-gradient(90deg, #B27BFF 0%, #00C2B3 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    font-size: 1.13rem;
    color: #CFC5DF;
    max-width: 620px;
}

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

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

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

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.4rem;
    text-align: center;
    border-right: 1px solid rgba(178, 123, 255, 0.3);
}

.stat-cell:last-child { border-right: none; }

.stat-num {
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 5rem;
    line-height: 1;
    color: var(--c-text);
    letter-spacing: -0.04em;
}

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

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

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

.latest-grid .card { flex-direction: column; }

.latest-grid .card-thumb-wrap {
    flex: none;
    width: 100%;
    position: static;
    min-height: 0;
}

.latest-grid .card-thumb-wrap a { position: static; display: block; }

.latest-grid .card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
}

.latest-more { margin-top: 2rem; }

/* --- Сетка направлений (glassmorphism) --- */

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

.dir-card {
    min-width: 0;
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(178, 123, 255, 0.28);
    border-radius: 16px;
    padding: 1.9rem 1.8rem;
    box-shadow: var(--shadow-card);
    transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

.dir-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 194, 179, 0.6);
    box-shadow: var(--shadow-card-hi);
}

.dir-icon { display: block; margin-bottom: 1.1rem; color: var(--c-accent-2); }

.dir-card h3 { margin-bottom: 0.5rem; }

.dir-card p { margin: 0; color: #443B57; font-size: 0.97rem; }

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

.timeline {
    position: relative;
    padding-left: 3.6rem;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 17px;
    top: 8px;
    bottom: 8px;
    width: 0;
    border-left: 2px dashed var(--c-accent);
}

.tl-item {
    position: relative;
    margin-bottom: 1.9rem;
}

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

.tl-mark {
    position: absolute;
    left: -3.6rem;
    top: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 0.7rem;
    border-radius: 50px;
    background: var(--c-accent);
    color: #08221F;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    box-shadow: 0 8px 20px -8px rgba(0, 194, 179, 0.8);
}

.tl-body {
    background: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(178, 123, 255, 0.2);
    border-radius: 14px;
    padding: 1.2rem 1.5rem;
}

.tl-body h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }

.tl-body p { margin: 0; color: #443B57; font-size: 0.96rem; }

/* --- Тёмная акцентная плашка --- */

.dark-plate {
    position: relative;
    background: linear-gradient(135deg, #2A2333 0%, #1E1826 100%);
    border-radius: 18px;
    padding: 2.6rem 2.4rem;
    color: #F1ECFA;
    overflow: hidden;
}

.dark-plate::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(30deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(-30deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 22px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 22px);
    pointer-events: none;
}

.dark-plate > * { position: relative; z-index: 2; }

.dark-plate h2 { color: #FFFFFF; }

.dark-plate p { color: #CFC5DF; }

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

@media (max-width: 960px) {
    h1 { font-size: 2.6rem; }
    .hero h1 { font-size: 2.6rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); }
    .layout-single .content-area { width: 100%; }
    .latest-grid, .dir-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stat-cell:nth-child(2) { border-right: none; }
    .stat-cell:nth-child(1), .stat-cell:nth-child(2) { border-bottom: 1px solid rgba(178, 123, 255, 0.3); padding-bottom: 1.4rem; }
    .stat-cell:nth-child(3), .stat-cell:nth-child(4) { padding-top: 1.4rem; }
    .stat-num { font-size: 3.6rem; }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .hero-grid { opacity: 0.3; right: -160px; }
    .brand { max-width: 70%; }
}

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav {
        flex-basis: 100%;
        padding-top: 0.9rem;
    }
    .site-nav ul { flex-direction: column; align-items: flex-start; gap: 0.2rem; }
    .head-inner { flex-wrap: wrap; }
    .brand { max-width: 100%; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.1rem; }
    h2, .sect-title { font-size: 1.6rem; }
    .page-title { font-size: 1.8rem; }
    .front-section { padding: 2.4rem 0; }
    .hero { padding: 3rem 0 2.8rem; }
    .hero-grid { display: none; }
    .latest-grid, .dir-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-right: none; border-bottom: 1px solid rgba(178, 123, 255, 0.3); padding: 1.1rem 0.8rem; }
    .stat-cell:last-child { border-bottom: none; }
    .stat-num { font-size: 3.2rem; }
    .card-row { flex-direction: column; }
    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }
    .card-thumb-wrap a { position: static; }
    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }
    .card-body { padding: 1.2rem 1.2rem; }
    .entry-body { padding: 1.4rem 1.2rem; }
    .comments-area { padding: 1.3rem 1.2rem; }
    .error-box { padding: 1.5rem 1.3rem; }
    .dark-plate { padding: 1.8rem 1.4rem; }
    .dir-card { padding: 1.4rem 1.3rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); padding: 2.2rem 0 1.6rem; }
    .timeline { padding-left: 0; }
    .timeline::before { display: none; }
    .tl-mark { position: static; margin-bottom: 0.6rem; }
    .tl-item { margin-bottom: 1.4rem; }
    .cookie-banner { padding: 0.9rem 1.1rem; font-size: 0.85rem; }
    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] { width: 100%; }
}
