/*
Theme Name: dds_dabanhtoday.com
Theme URI: https://dabanhtoday.com/
Author: Олег Петров
Description: Информационная тема для сайта о футболе, теннисе и спортивных новостях. Дизайн-концепция «Lavender Tech Minimalism»: лавандово-серый фон, аметистовые акценты, чистая гротескная типографика.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
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: dbtsp
Tags: blog, news, custom-logo, custom-menu, featured-images, threaded-comments, right-sidebar
*/

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

:root {
    --bg:          #F5F2F7;
    --bg-alt:      #EAE6F0;
    --bg-side:     #EFECF3;
    --bg-dark:     #1C1624;
    --text:        #1E1A26;
    --accent:      #4B2B8A;
    --accent-2:    #9F7BCC;
    --muted:       #8A82A1;
    --line:        #D8D0E2;
    --white:       #FFFFFF;
    --radius:      12px;
    --radius-btn:  8px;
    --shell:       1180px;
    --font-head:   'Manrope', 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
    --font-body:   'DM Sans', 'Inter', 'Segoe UI', system-ui, -apple-system, 'Helvetica Neue', Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        radial-gradient(rgba(75, 43, 138, 0.055) 1px, transparent 1px),
        radial-gradient(rgba(159, 123, 204, 0.045) 1px, transparent 1px);
    background-size: 7px 7px, 11px 11px;
    background-position: 0 0, 3px 4px;
}

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

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

p {
    margin: 0 0 1.05em;
}

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

h1 { font-size: 3.2rem; letter-spacing: 0.01em; }
h2 { font-size: 2rem; }
h3 { font-size: 1.42rem; }
h4 { font-size: 1.18rem; }

ul, ol {
    margin: 0 0 1.1em;
    padding-left: 1.25em;
}

li { margin-bottom: 0.35em; }

blockquote {
    margin: 1.6em 0;
    padding: 1.25rem 1.6rem;
    border-left: 4px solid var(--accent);
    background: linear-gradient(90deg, #F5F2F7 0%, #EDE5F5 100%);
    border-radius: 0 var(--radius) var(--radius) 0;
    font-size: 1.06rem;
}

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

code, pre {
    font-family: ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
    font-size: 0.92em;
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.4em 0;
    font-size: 0.96rem;
}

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

th, td {
    padding: 0.62rem 0.85rem;
    text-align: left;
}

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

hr {
    border: 0;
    height: 1px;
    background: var(--line);
    margin: 2.4rem 0;
}

/* Текстовые ссылки в контенте: подчёркивание от центра */
.content-area a:not(.btn):not(.page-numbers):not(.crumbs a),
.widget a,
.fs a:not(.btn):not(.rubric-chip) {
    position: relative;
}

.entry-body a:not(.btn) {
    position: relative;
    display: inline;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
    padding-bottom: 1px;
}

.entry-body a:not(.btn):hover {
    background-size: 100% 1px;
}

/* =========================================================
   2. Служебные обёртки
   ========================================================= */

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

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

.topbar {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

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

.site-header {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.brand-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.06rem;
    line-height: 1.3;
    color: var(--text);
    display: block;
    max-width: 34ch;
}

.brand-desc {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--muted);
    margin-top: 0.2rem;
    max-width: 52ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--accent);
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 700;
    border-radius: var(--radius-btn);
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--text);
    position: relative;
    padding-bottom: 3px;
}

.main-nav a::after {
    content: '';
    position: absolute;
    left: 50%;
    right: 50%;
    bottom: 0;
    height: 2px;
    background: var(--accent);
    transition: left 0.25s ease, right 0.25s ease;
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    left: 0;
    right: 0;
}

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

/* =========================================================
   4. Основная раскладка
   ========================================================= */

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

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

.layout-single {
    display: block;
}

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

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    border-radius: var(--radius);
    padding: 1.6rem 1.5rem;
}

.crumbs {
    font-size: 0.86rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
    line-height: 1.6;
}

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

.crumbs a:hover { text-decoration: underline; }

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

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

.page-head h1 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

.page-head .page-sub {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.78rem 1.5rem;
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
    background: #3B1F72;
    border-color: #3B1F72;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 43, 138, 0.28);
}

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

.btn-ghost:hover {
    background: rgba(75, 43, 138, 0.08);
    color: var(--accent);
    box-shadow: 0 8px 20px rgba(75, 43, 138, 0.18);
}

.btn-light {
    background: var(--white);
    color: var(--accent);
    border-color: var(--white);
}

.btn-light:hover {
    background: #F0E9FA;
    border-color: #F0E9FA;
    color: var(--accent);
    box-shadow: 0 8px 22px rgba(0, 0, 0, 0.25);
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.7rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 22px rgba(28, 22, 36, 0.06);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.22s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 14px 32px rgba(28, 22, 36, 0.12);
}

.card:hover::before { opacity: 1; }

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    background: var(--bg-alt);
}

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

.card-thumb-wrap img {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.card:hover .card-thumb-wrap img { transform: scale(1.04); }

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.55rem;
    letter-spacing: 0.02em;
}

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

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

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

.card-excerpt {
    color: #4A4358;
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

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

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

.card-more::after {
    content: ' →';
}

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
    margin: 2.2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--white);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.94rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
    box-shadow: 0 4px 12px rgba(75, 43, 138, 0.14);
}

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

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

/* =========================================================
   8. Запись и страница
   ========================================================= */

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

.entry-header h1 {
    font-size: 2.6rem;
    margin-bottom: 0.6rem;
}

.entry-meta {
    font-size: 0.88rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

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

.entry-thumb img {
    width: 100%;
    height: auto;
    display: block;
}

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

.entry-body h2 {
    font-size: 1.7rem;
    margin-top: 2rem;
}

.entry-body h3 {
    font-size: 1.3rem;
    margin-top: 1.6rem;
}

.entry-body img {
    border-radius: var(--radius);
}

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
    color: var(--muted);
}

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

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

.widget {
    margin-bottom: 1.9rem;
}

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

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

.widget li {
    padding: 0.5rem 0 0.5rem 1.1rem;
    position: relative;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

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

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

.widget-title {
    font-size: 1.05rem;
    font-family: var(--font-head);
    font-weight: 700;
    margin: 0 0 0.9rem;
    padding-bottom: 0.55rem;
    position: relative;
}

.widget-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 46px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), rgba(159, 123, 204, 0));
}

/* Сайдбар — светлый фон, тёмный текст */
.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li {
    color: var(--text);
}

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

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

.sidebar .widget a:hover { color: #3B1F72; text-decoration: underline; }

.sidebar .widget li { border-bottom-color: #DBD4E6; }

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-size: 0.78rem;
    color: #6E6683;
}

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

.site-footer {
    background: var(--bg-dark);
    color: #D6CFE4;
    padding: 3.2rem 0 1.8rem;
    margin-top: 2rem;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 2.2rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid rgba(159, 123, 204, 0.25);
}

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

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

.site-footer .widget-title {
    color: var(--white);
    font-size: 1.02rem;
}

.site-footer .widget-title::after {
    background: linear-gradient(90deg, var(--accent-2), rgba(159, 123, 204, 0));
}

.site-footer .widget a { color: #CDBDEA; }

.site-footer .widget a:hover { color: var(--white); }

.site-footer .widget li {
    border-bottom: 1px solid rgba(214, 207, 228, 0.14);
}

.site-footer .widget li::before { background: var(--accent-2); }

.site-footer .post-date,
.site-footer .rss-date {
    display: block;
    font-size: 0.78rem;
    color: #A79CC0;
}

.copyright {
    padding-top: 1.5rem;
    font-size: 0.86rem;
    color: #A79CC0;
    text-align: center;
}

/* =========================================================
   11. 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: center;
    gap: 1.1rem;
    padding: 1rem 1.4rem;
    background: rgba(28, 22, 36, 0.97);
    color: #E4DEF0;
    font-size: 0.9rem;
    border-top: 2px solid var(--accent-2);
}

.cookie-banner p {
    margin: 0;
    max-width: 62ch;
}

.cookie-banner a { color: #CDBDEA; text-decoration: underline; }

.cookie-accept {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.9rem;
    padding: 0.6rem 1.4rem;
    border-radius: var(--radius-btn);
    border: 2px solid var(--accent-2);
    background: var(--accent-2);
    color: #1C1624;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.cookie-accept:hover {
    background: #B394DD;
    border-color: #B394DD;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(159, 123, 204, 0.35);
}

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

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

.front-section + .front-section {
    border-top: 1px solid var(--line);
}

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

.front-inner {
    width: min(85%, calc(var(--shell) * 0.85));
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.sec-title {
    font-size: 2rem;
    margin: 0 0 0.4rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.sec-title span { flex: 0 0 auto; min-width: 0; }

.sec-title::after {
    content: '';
    flex: 1 1 auto;
    height: 2px;
    background: linear-gradient(90deg, var(--accent) 0%, rgba(159, 123, 204, 0) 100%);
}

.sec-lead {
    color: #4A4358;
    max-width: 78ch;
    margin: 0 0 2.1rem;
}

/* --- Блок 1: hero --- */

.hero {
    background: linear-gradient(135deg, #F5F2F7 0%, #EAE6F0 100%);
    padding: 5.2rem 0 4.6rem;
    position: relative;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

.hero::before {
    content: '';
    position: absolute;
    right: -120px;
    top: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(159, 123, 204, 0.42) 0%, rgba(159, 123, 204, 0) 70%);
    filter: blur(28px);
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    left: -160px;
    bottom: -200px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(75, 43, 138, 0.24) 0%, rgba(75, 43, 138, 0) 70%);
    filter: blur(34px);
    pointer-events: none;
}

.hero-inner {
    width: min(85%, calc(var(--shell) * 0.85));
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 2;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(255, 255, 255, 0.7);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    margin-bottom: 1.5rem;
}

.hero h1 {
    font-size: 3.2rem;
    margin: 0 0 1.1rem;
    line-height: 1.14;
}

.hero h1 em {
    font-style: normal;
    color: var(--accent-2);
}

.hero-sub {
    font-size: 1.12rem;
    color: #4A4358;
    max-width: 66ch;
    margin: 0 0 2rem;
}

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

/* --- Блок 2: рубрикатор --- */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 1.1rem;
}

.rubric-chip {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.66);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.85);
    box-shadow: 0 6px 20px rgba(28, 22, 36, 0.06);
    color: var(--text);
    transition: transform 0.22s ease, box-shadow 0.22s ease, background-color 0.22s ease;
}

.rubric-chip:hover {
    transform: translateY(-3px);
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 12px 26px rgba(75, 43, 138, 0.16);
}

.rubric-chip svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    color: var(--accent);
}

.rubric-chip .rubric-name {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1rem;
    display: block;
    min-width: 0;
}

.rubric-chip .rubric-note {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    line-height: 1.4;
    margin-top: 0.15rem;
}

/* --- Блок «последние записи» --- */

.latest-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.7rem;
    margin-bottom: 2rem;
}

.latest-actions {
    display: flex;
    justify-content: flex-start;
}

.latest-empty {
    color: var(--muted);
}

/* --- Блок 3: шаги --- */

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

.step {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1.4rem;
    padding-bottom: 2.1rem;
    margin: 0;
    min-width: 0;
}

.step:last-child { padding-bottom: 0; }

.step::before {
    content: '';
    position: absolute;
    left: 27px;
    top: 58px;
    bottom: 4px;
    width: 2px;
    background: linear-gradient(180deg, var(--accent-2) 0%, rgba(159, 123, 204, 0.15) 100%);
}

.step:last-child::before { display: none; }

.step-num {
    flex: 0 0 auto;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--accent);
    color: var(--white);
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 2;
    box-shadow: 0 6px 18px rgba(75, 43, 138, 0.25);
}

.step-body { min-width: 0; padding-top: 0.35rem; }

.step-body h3 {
    font-size: 1.22rem;
    margin: 0 0 0.35rem;
}

.step-body p {
    margin: 0;
    color: #4A4358;
    font-size: 0.98rem;
}

/* --- Блок 4: статистика --- */

.stats-section {
    background: var(--bg-dark);
    padding: 4.2rem 0;
    position: relative;
    overflow: hidden;
}

.stats-section::before {
    content: '';
    position: absolute;
    left: 50%;
    top: -180px;
    width: 520px;
    height: 520px;
    transform: translateX(-50%);
    border-radius: 50%;
    background: radial-gradient(circle, rgba(159, 123, 204, 0.22) 0%, rgba(159, 123, 204, 0) 70%);
    filter: blur(40px);
    pointer-events: none;
}

.stats-section .sec-title { color: var(--white); }

.stats-section .sec-title::after {
    background: linear-gradient(90deg, var(--accent-2) 0%, rgba(159, 123, 204, 0) 100%);
}

.stats-section .sec-lead { color: #B8AFCE; }

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
    gap: 1.6rem;
}

.stat {
    min-width: 0;
    padding: 1.6rem 1.5rem;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.045);
    border-left: 4px solid var(--accent-2);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.7rem;
    line-height: 1.05;
    color: var(--white);
    margin-bottom: 0.4rem;
}

.stat-label {
    display: block;
    font-size: 0.92rem;
    color: #B8AFCE;
    line-height: 1.5;
}

/* --- Акцентная плашка --- */

.accent-plate {
    background: linear-gradient(120deg, #F5F2F7 0%, #EDE5F5 100%);
    border-left: 4px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    padding: 1.8rem 2rem;
    margin-top: 2.2rem;
}

.accent-plate p:last-child { margin-bottom: 0; }

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

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

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

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

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

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

.comment-inner {
    background: var(--white);
    border-radius: var(--radius);
    padding: 1.2rem 1.4rem;
    box-shadow: 0 4px 16px rgba(28, 22, 36, 0.05);
}

.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.82rem;
    color: var(--muted);
}

.comment-text p:last-child { margin-bottom: 0; }

.comment-actions {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

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

.comment-respond {
    background: var(--bg-alt);
    border-radius: var(--radius);
    padding: 1.6rem 1.7rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--text);
}

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

.comment-form p { margin-bottom: 1rem; }

.comment-form .submit {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.95rem;
    padding: 0.78rem 1.5rem;
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.comment-form .submit:hover {
    background: #3B1F72;
    border-color: #3B1F72;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 43, 138, 0.28);
}

.no-comments { color: var(--muted); }

.comments-area .navigation .page-numbers,
.comments-area .comments-pagination .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--white);
    color: var(--text);
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.94rem;
    margin: 0 0.35rem 0.5rem 0;
}

.comments-area .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
}

/* =========================================================
   14. Поиск и 404
   ========================================================= */

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

.search-form .search-field {
    flex: 1 1 180px;
    min-width: 0;
    padding: 0.7rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: var(--radius-btn);
    background: var(--white);
    font-family: var(--font-body);
    font-size: 0.96rem;
    color: var(--text);
}

.search-form .search-submit {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 0.92rem;
    padding: 0.7rem 1.3rem;
    border-radius: var(--radius-btn);
    background: var(--accent);
    color: var(--white);
    border: 2px solid var(--accent);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.search-form .search-submit:hover {
    background: #3B1F72;
    border-color: #3B1F72;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(75, 43, 138, 0.28);
}

.error-404 {
    text-align: left;
}

.error-404 .code-404 {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 5.5rem;
    line-height: 1;
    color: var(--accent-2);
    margin-bottom: 0.6rem;
}

.error-404 .search-block {
    margin: 1.8rem 0;
    max-width: 520px;
}

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

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

    .hero h1 { font-size: 2.5rem; }

    .hero { padding: 4rem 0 3.6rem; }

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

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

    .front-inner,
    .hero-inner {
        width: min(92%, var(--shell));
    }

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

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

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

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

    .hero { padding: 3rem 0 2.8rem; }

    .hero h1 { font-size: 2rem; }

    .hero-sub { font-size: 1rem; }

    .header-inner {
        padding: 1rem 0;
        gap: 0.9rem;
    }

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

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

    .main-nav.is-open { display: block; }

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        padding-top: 0.4rem;
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
    }

    .main-nav li:last-child { border-bottom: none; }

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

    .main-nav a::after { display: none; }

    .brand-desc { display: none; }

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

    .stats-section { padding: 2.6rem 0; }

    .sec-title { font-size: 1.5rem; }

    .sec-title::after { display: none; }

    .accent-plate { padding: 1.4rem 1.3rem; }

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

    .rubric-chip { padding: 1rem 1.1rem; }

    .stat { padding: 1.3rem 1.2rem; }

    .stat-num { font-size: 2.2rem; }

    .step { gap: 1rem; }

    .step-num { width: 46px; height: 46px; font-size: 1.15rem; }

    .step::before { left: 22px; top: 50px; }

    .entry-header h1 { font-size: 1.9rem; }

    .page-head h1 { font-size: 1.9rem; }

    .sidebar { padding: 1.3rem 1.2rem; }

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

    .error-404 .code-404 { font-size: 4rem; }
}
