/*
Theme Name: dds_eee7.ru
Description: Аналитическая тема для информационного сайта о банковских приложениях, платёжных сервисах и кэшбэк-программах.
Author: Алексей Кравцов
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: finlens
*/

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

:root {
    --bg: #F0F4F8;
    --bg-alt: #E6EEF5;
    --deep: #0B1C2F;
    --ink: #1A2A3A;
    --accent: #0088CC;
    --accent-dark: #006699;
    --accent-2: #00A9B0;
    --muted: #7A8A9A;
    --line: #D0DCE8;
    --white: #FFFFFF;
    --hover-bg: #F4F8FA;
    --head-font: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --text-font: "Roboto", "Open Sans", "Segoe UI", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--text-font);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: radial-gradient(rgba(11, 28, 47, 0.09) 1px, transparent 1px);
    background-size: 28px 28px;
    background-position: 0 0;
}

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

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

.entry-content a,
.widget-text a,
.card-excerpt a {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.widget-text a:hover,
.card-excerpt a:hover {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.25;
    letter-spacing: -0.01em;
    margin: 1.8rem 0 0.9rem;
}

h1 {
    font-size: 2.3rem;
    margin-top: 0;
}

h2 {
    font-size: 1.7rem;
}

h3 {
    font-size: 1.32rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1rem;
}

ul, ol {
    margin: 0 0 1.2rem;
    padding-left: 1.4rem;
}

li {
    margin-bottom: 0.45rem;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, var(--bg) 0%, rgba(0, 136, 204, 0.1) 100%);
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

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

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

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

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

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

/* «Холодная точка» перед заголовками второго и третьего уровня */
.entry-content h2::before,
.entry-content h3::before,
.section-title::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.5;
    margin-right: 0.62rem;
    vertical-align: middle;
    position: relative;
    top: -0.12em;
}

/* =========================================================
   2. Контейнер и раскладки
   ========================================================= */

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

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

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

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

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

/* =========================================================
   3. Технологический индикатор и шапка
   ========================================================= */

.techbar {
    display: flex;
    height: 3px;
    width: 100%;
}

.techbar span {
    display: block;
    flex: 1 1 33.33%;
    height: 3px;
}

.techbar span:nth-child(1) { background: var(--accent); }
.techbar span:nth-child(2) { background: var(--accent-2); }
.techbar span:nth-child(3) { background: var(--deep); }

.site-header {
    background: var(--deep);
    color: #E3ECF4;
    position: relative;
    overflow: hidden;
}

.site-header::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -100px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.05;
    pointer-events: none;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.5rem 0;
    position: relative;
    z-index: 2;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
}

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

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

.brand-title {
    display: block;
    font-family: var(--head-font);
    font-size: 1.18rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
    max-width: 46ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #93A6B8;
    max-width: 60ch;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 4px;
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: 0.9rem;
    padding: 0.5rem 0.85rem;
    cursor: pointer;
}

.nav-toggle:hover {
    border-color: var(--accent);
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.97rem;
    color: #DCE7F0;
    padding: 0.25rem 0;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.main-nav a:hover,
.main-nav .current-menu-item > a {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}

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

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

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

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-2px);
}

.btn-outline {
    background: transparent;
    color: var(--accent);
}

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

.btn-light {
    background: transparent;
    border-color: rgba(255, 255, 255, 0.5);
    color: #FFFFFF;
}

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

/* =========================================================
   5. Хлебные крошки
   ========================================================= */

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

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

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

.breadcrumbs .sep {
    margin: 0 0.4rem;
    color: var(--line);
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(208, 220, 232, 0.75);
    transition: box-shadow 0.22s ease, background-color 0.22s ease, transform 0.22s ease;
}

.card:hover {
    background: var(--hover-bg);
    box-shadow: 0 10px 22px rgba(122, 138, 154, 0.28);
    transform: translateY(-2px);
}

.card-thumb {
    display: block;
    width: 100%;
}

.card-thumb a {
    display: block;
}

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

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

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

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

.card-title::before {
    display: none;
}

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

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

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

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
}

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

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

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

.front-section.is-grid {
    background-color: var(--bg);
    background-image:
        linear-gradient(rgba(11, 28, 47, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(11, 28, 47, 0.05) 1px, transparent 1px);
    background-size: 46px 46px;
}

.front-section::after {
    content: "";
    position: absolute;
    top: -160px;
    right: -120px;
    width: 420px;
    height: 420px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.05;
    filter: blur(4px);
    pointer-events: none;
}

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

.front-section > .shell,
.front-section > .fs-inner {
    position: relative;
    z-index: 2;
}

.section-title {
    font-size: 1.95rem;
    margin: 0 0 0.6rem;
}

.section-title-wrap {
    margin-bottom: 2.2rem;
}

.section-title-wrap::after {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    background: var(--accent);
    margin-top: 0.85rem;
}

.section-lead {
    max-width: 68ch;
    color: #46586A;
    margin: 0;
}

/* 7.1 Hero */

.fs-hero {
    background: var(--deep);
    color: #E3ECF4;
    padding: 4.6rem 0;
}

.fs-hero::after {
    display: none;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.hero-kicker {
    font-family: var(--head-font);
    font-size: 0.82rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin: 0 0 1.1rem;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.06;
    color: #FFFFFF;
    margin: 0 0 1.2rem;
}

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

.hero-text {
    color: #A9BCCD;
    max-width: 54ch;
    margin: 0 0 1.9rem;
}

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

.hero-chart {
    min-width: 0;
}

.hero-chart svg {
    display: block;
    width: 100%;
    height: auto;
}

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

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

.stat-item {
    min-width: 0;
}

.stat-plate {
    display: block;
    background: var(--accent);
    color: #FFFFFF;
    border-radius: 0;
    padding: 1.5rem 1.2rem;
    font-family: var(--head-font);
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 1.1;
}

.stat-caption {
    display: block;
    margin-top: 0.85rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.5;
}

/* 7.3 FAQ */

.faq-list {
    display: block;
    max-width: 900px;
}

.faq-item {
    border-bottom: 1px solid var(--line);
    background: transparent;
    padding: 0;
}

.faq-item > summary {
    display: block;
    position: relative;
    cursor: pointer;
    list-style: none;
    font-family: var(--head-font);
    font-size: 1.16rem;
    font-weight: 600;
    color: var(--ink);
    padding: 1.15rem 2.6rem 1.15rem 1.1rem;
    transition: color 0.2s ease, background-color 0.2s ease;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.9rem;
    bottom: 0.9rem;
    width: 3px;
    background: transparent;
    transition: background-color 0.2s ease;
}

.faq-item > summary::after {
    content: "+";
    position: absolute;
    right: 0.7rem;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1.4rem;
    color: var(--accent);
    line-height: 1;
}

.faq-item[open] > summary::after {
    content: "–";
}

.faq-item > summary:hover {
    color: var(--accent-2);
    background: rgba(0, 169, 176, 0.05);
}

.faq-item > summary:hover::before,
.faq-item[open] > summary::before {
    background: var(--accent-2);
}

.faq-answer {
    padding: 0 1.1rem 1.4rem;
    color: #46586A;
    max-width: 84ch;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* 7.4 Карта тем */

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

.topic-tile {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    padding: 1.35rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--ink);
    font-family: var(--head-font);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.topic-tile:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.topic-tile svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    stroke: var(--ink);
    fill: none;
    stroke-width: 1.5;
}

.topic-tile > span {
    display: block;
    min-width: 0;
}

.topic-tile b {
    display: block;
    font-size: 1.03rem;
    font-weight: 600;
    color: var(--ink);
}

.topic-tile span {
    display: block;
    font-family: var(--text-font);
    font-size: 0.87rem;
    color: var(--muted);
    line-height: 1.45;
}

/* 7.5 Последние записи на главной */

.fs-latest .section-foot {
    margin-top: 2.2rem;
}

/* =========================================================
   8. Записи, страницы, архивы
   ========================================================= */

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

.page-title {
    font-size: 2.25rem;
    margin: 0.7rem 0 0.6rem;
}

.entry-meta {
    font-size: 0.87rem;
    color: var(--muted);
    font-family: var(--head-font);
}

.entry-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(208, 220, 232, 0.75);
    padding: 2rem 2.2rem 2.4rem;
}

.entry-thumb {
    margin: 0 0 1.6rem;
}

.entry-thumb img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

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

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content img {
    display: block;
    border-radius: 4px;
}

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.35rem 0;
    padding: 0.24rem 0.6rem;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    color: var(--accent-2);
    font-size: 0.82rem;
}

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

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1.2rem;
    margin-top: 1.8rem;
}

.post-nav a {
    display: block;
    min-width: 0;
    padding: 1rem 1.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--head-font);
    font-size: 0.97rem;
}

.post-nav a:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.post-nav span {
    display: block;
    font-size: 0.78rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.3rem;
}

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.08rem;
    margin: 0 0 0.9rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
}

.sidebar .widget-title::before {
    display: none;
}

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

.sidebar .widget li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
    color: var(--ink);
}

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

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

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date {
    display: block;
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.2rem;
}

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

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

.site-footer {
    background: var(--deep);
    color: #C3D2E0;
    margin-top: 3rem;
    position: relative;
    overflow: hidden;
}

.site-footer::after {
    content: "";
    position: absolute;
    bottom: -180px;
    right: -110px;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    background: var(--accent-2);
    opacity: 0.05;
    pointer-events: none;
}

.footer-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3rem 0 2.4rem;
    position: relative;
    z-index: 2;
}

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

.site-footer .widget {
    color: #C3D2E0;
    font-size: 0.94rem;
}

.site-footer .widget-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.site-footer .widget-title::before {
    display: none;
}

.site-footer .widget p {
    color: #A9BCCD;
    line-height: 1.65;
}

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

.site-footer .widget li {
    margin-bottom: 0.6rem;
    font-size: 0.94rem;
    color: #C3D2E0;
}

.site-footer .widget a {
    color: #C3D2E0;
    border-bottom: 1px solid transparent;
}

.site-footer .widget a:hover {
    color: #FFFFFF;
    border-bottom-color: var(--accent);
}

.site-footer .widget .post-date {
    display: block;
    font-size: 0.8rem;
    color: #8FA3B6;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    padding: 1.3rem 0;
    font-size: 0.86rem;
    color: #8FA3B6;
    position: relative;
    z-index: 2;
}

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

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

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    height: 42px;
    padding: 0 0.75rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--head-font);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

/* =========================================================
   12. Формы поиска и комментарии
   ========================================================= */

.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 480px;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--text-font);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-area {
    margin-top: 2.2rem;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.8rem 2rem 2rem;
}

.comments-title {
    font-size: 1.35rem;
    margin: 0 0 1.4rem;
}

.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: 2px solid var(--line);
}

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

.comment-inner {
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 4px;
    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(--head-font);
    font-weight: 600;
}

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

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

.comment-form label {
    display: block;
    font-size: 0.88rem;
    color: var(--muted);
    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.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--text-font);
    font-size: 0.95rem;
}

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

.comment-form .form-submit input[type="submit"] {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.95rem;
    font-weight: 600;
    padding: 0.78rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    background: var(--accent-dark);
    transform: translateY(-2px);
}

/* =========================================================
   13. 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.5rem;
    background: var(--deep);
    border-top: 3px solid var(--accent);
    color: #DCE7F0;
    font-size: 0.9rem;
}

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

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

/* =========================================================
   14. 404 и служебное
   ========================================================= */

.error-box {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 2.4rem 2.2rem;
    text-align: left;
}

.error-code {
    font-family: var(--head-font);
    font-size: 4.2rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 0.8rem;
}

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

.no-posts {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 1.6rem 1.8rem;
}

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

@media (max-width: 960px) {
    .hero-title {
        font-size: 2.6rem;
    }

    .hero-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.2rem;
    }

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

    .layout-single {
        width: 100%;
    }

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

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

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

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .main-nav a {
        display: block;
        padding: 0.55rem 0;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    }
}

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

    .fs-inner {
        width: 92%;
    }

    h1 {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 2.1rem;
    }

    .page-title {
        font-size: 1.75rem;
    }

    .section-title {
        font-size: 1.55rem;
    }

    .front-section,
    .fs-hero {
        padding: 2.8rem 0;
    }

    .entry-card {
        padding: 1.4rem 1.3rem 1.7rem;
    }

    .comments-area {
        padding: 1.3rem 1.2rem 1.5rem;
    }

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

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

    .stat-plate {
        padding: 1.2rem 1.1rem;
        font-size: 2rem;
    }

    .cookie-banner {
        padding: 1rem 1.1rem;
    }

    .brand-logo,
    .brand-mark {
        width: 40px;
        height: 40px;
    }

    .brand-title {
        font-size: 1.02rem;
    }

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