/*
Theme Name: dds_mammajism.com
Theme URI: https://mammajism.com/
Author: Мария Тихонова
Description: Информационная тема для проекта о любви, осознанности и ментальном здоровье. Холодная сине-мятная палитра, строгая геометрия, квадратные формы.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mmjism
*/

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

:root {
    --bg-main: #F4F7FB;
    --bg-alt: #E8EFF7;
    --bg-head: #1A2E3F;
    --bg-foot: #0F1E2A;
    --bg-side: #FFFFFF;
    --ink: #1F2A35;
    --accent: #1C9B8C;
    --accent-2: #5B8FB9;
    --muted: #7A8D9E;
    --shadow-cold: #B0C6DA;
    --shadow-deep: #8CA8C2;
    --line: #D0DDEA;
    --font-head: "Inter", "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --font-body: "Source Serif Pro", "Lora", Georgia, "Times New Roman", serif;
}

/* ==========================================================================
   Сброс и база
   ========================================================================== */

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg-main);
    background-image:
        repeating-linear-gradient(45deg, rgba(208, 221, 234, 0.08) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(-45deg, rgba(208, 221, 234, 0.08) 0 1px, transparent 1px 40px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

/* Крупный полупрозрачный силуэт компаса в левом нижнем углу */
body::after {
    content: "";
    position: fixed;
    left: -120px;
    bottom: -140px;
    width: 620px;
    height: 620px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.03;
    background-repeat: no-repeat;
    background-size: contain;
    background-position: left bottom;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%231F2A35' stroke-width='2'%3E%3Ccircle cx='100' cy='100' r='92'/%3E%3Ccircle cx='100' cy='100' r='72'/%3E%3Ccircle cx='100' cy='100' r='6'/%3E%3Cpath d='M100 8v22M100 170v22M8 100h22M170 100h22'/%3E%3Cpath d='M62 138 100 100 138 62 100 100Z'/%3E%3C/g%3E%3Cpath d='M100 100 138 62 118 118Z' fill='%231F2A35'/%3E%3Cpath d='M100 100 62 138 82 82Z' fill='%231F2A35' opacity='.5'/%3E%3C/svg%3E");
}

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

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

/* Текстовые ссылки в теле: подчёркивание появляется по ширине при наведении */
.entry-content a,
.widget-area a.text-link,
.crumb-link {
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0% 1px;
    transition: background-size 0.28s ease;
}

.entry-content a:hover,
.widget-area a.text-link:hover,
.crumb-link:hover {
    background-size: 100% 1px;
}

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

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.8em 0;
    padding: 1.4rem 1.6rem;
    background: linear-gradient(135deg, #E0EDF9, #C8DDEB);
    border-left: 4px solid var(--accent);
    font-style: italic;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
}

pre {
    padding: 1.2rem;
    background: #1A2E3F;
    color: #E8EFF7;
    overflow-x: auto;
}

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

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

th, td {
    padding: 0.7rem 0.9rem;
    text-align: left;
}

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

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

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

.page-wrap {
    position: relative;
    z-index: 1;
    padding: 2.6rem 0 4rem;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: 0.92rem 2rem;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.22s ease, transform 0.22s ease, box-shadow 0.22s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-2);
    color: #fff;
    transform: translateY(-3px);
    box-shadow: 0 8px 16px rgba(15, 30, 42, 0.22);
}

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

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

/* ==========================================================================
   Верхняя полоса, шапка
   ========================================================================== */

.topline {
    height: 6px;
    background: var(--accent);
}

.site-head {
    position: relative;
    z-index: 2;
    background: var(--bg-head);
    color: #E8EFF7;
    padding: 1.5rem 0;
}

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

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

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

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

.brand-title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.25;
    color: #FFFFFF;
    letter-spacing: 0.01em;
}

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

.brand-desc {
    display: block;
    margin-top: 0.35rem;
    font-size: 0.86rem;
    line-height: 1.45;
    color: #A7BDCE;
    max-width: 520px;
}

.nav-toggle {
    display: none;
    padding: 0.6rem 1rem;
    background: transparent;
    border: 2px solid var(--accent);
    color: #E8EFF7;
    font-family: var(--font-head);
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #E8EFF7;
    padding-bottom: 4px;
    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: var(--accent);
    border-bottom-color: var(--accent);
}

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

.breadcrumbs {
    font-family: var(--font-head);
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    letter-spacing: 0.02em;
}

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

.breadcrumbs .sep {
    margin: 0 0.45rem;
    color: var(--shadow-cold);
}

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

.sec-head {
    margin-bottom: 1.8rem;
}

.sec-rule {
    display: block;
    width: 56px;
    height: 3px;
    background: var(--accent);
    margin-bottom: 1rem;
}

.sec-title {
    position: relative;
    padding-left: 1.5rem;
    margin: 0;
    font-size: 1.55rem;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.52em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

/* Декоративная точка у заголовков в теле материала */
.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1.4rem;
    margin-top: 1.9em;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

/* ==========================================================================
   Главная: секции
   ========================================================================== */

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

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

.front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: var(--bg-head);
}

.hero-media {
    position: absolute;
    inset: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(15, 30, 42, 0.72), rgba(15, 30, 42, 0.52));
}

.hero-body {
    position: relative;
    z-index: 1;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding: 6rem 2rem;
    text-align: center;
    color: #FFFFFF;
}

.hero-body h1 {
    color: #FFFFFF;
    margin-bottom: 1rem;
}

.hero-slogan {
    max-width: 720px;
    margin: 0 auto 2.2rem;
    font-size: 1.12rem;
    line-height: 1.7;
    color: #DCE7F0;
}

/* Блок 2 — чек-лист */

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

.check-item {
    display: flex;
    gap: 1.2rem;
    align-items: flex-start;
    padding: 1.4rem 1.6rem;
    margin-bottom: 1rem;
    background: #FFFFFF;
    box-shadow: 5px 5px 0 var(--shadow-cold);
}

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

.check-icon {
    flex: 0 0 26px;
    width: 26px;
    height: 26px;
    margin-top: 0.25rem;
    color: var(--accent);
}

.check-body {
    min-width: 0;
}

.check-body h3 {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.check-body p {
    margin: 0;
    color: #47586A;
}

/* Блок 3 — статистика */

.fs-stats {
    background: linear-gradient(135deg, #E0EDF9, #C8DDEB);
    background-image: linear-gradient(135deg, #E0EDF9, #C8DDEB);
    padding: 4.2rem 2.2rem;
}

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

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3.1rem;
    font-weight: 800;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.02em;
}

.stat-cap {
    display: block;
    margin-top: 0.8rem;
    font-size: 0.94rem;
    line-height: 1.5;
    color: var(--muted);
}

/* Блок 4 — карта тем */

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

.topic-tile {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 170px;
    padding: 2rem 1.6rem;
    text-align: center;
    background: #FFFFFF;
    box-shadow: 6px 6px 0 var(--shadow-cold);
    font-family: var(--font-head);
    font-size: 1.28rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--ink);
    transition: background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease;
}

.topic-tile:hover {
    background: var(--accent-2);
    color: #FFFFFF;
    transform: translateY(-4px);
    box-shadow: 8px 8px 0 var(--shadow-deep);
}

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

.fs-latest .cards-grid {
    margin-bottom: 2.4rem;
}

.latest-more {
    text-align: center;
}

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

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

.cards-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 0;
    border-radius: 0;
    overflow: hidden;
    box-shadow: 6px 6px 0 var(--shadow-cold);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 9px 9px 0 var(--shadow-deep);
}

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

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

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #E0EDF9, #C8DDEB);
}

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

.card-title {
    font-size: 1.18rem;
    line-height: 1.3;
    margin-bottom: 0.6rem;
}

.card-title a {
    color: var(--ink);
    transition: color 0.2s ease;
}

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

.card-meta {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.9rem;
}

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

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

.card-more {
    align-self: flex-start;
    margin-top: 1.1rem;
    font-family: var(--font-head);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s ease, color 0.2s ease;
}

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

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

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

.entry-title {
    font-size: 2.5rem;
    margin-bottom: 0.7rem;
}

.entry-meta {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-thumb {
    margin-bottom: 2rem;
}

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

.entry-content {
    font-size: 1.06rem;
}

.entry-content img {
    display: block;
    height: auto;
}

.entry-footer {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--font-head);
    font-size: 0.85rem;
    color: var(--muted);
}

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

.page-lead {
    margin-bottom: 2.4rem;
}

.archive-title {
    font-size: 2.1rem;
    margin-bottom: 1.8rem;
}

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

.sidebar {
    min-width: 0;
    background: var(--bg-side);
    padding: 1.8rem 1.6rem;
    box-shadow: 6px 6px 0 var(--shadow-cold);
}

.sidebar .widget {
    margin-bottom: 2rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 1.1rem;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--ink);
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

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

.sidebar .widget li {
    padding: 0.6rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.96rem;
}

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

.sidebar .widget a {
    color: var(--ink);
    transition: color 0.2s ease;
}

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

.sidebar .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-top: 0.2rem;
}

.sidebar .widget p {
    color: #43535F;
    font-size: 0.96rem;
}

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

.search-form {
    display: flex;
    gap: 0;
}

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

.search-form input[type="search"]:focus {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
}

.search-form button {
    padding: 0.8rem 1.4rem;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease;
}

.search-form button:hover {
    background: var(--accent-2);
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    padding: 0.6rem 0.9rem;
    border: 1px solid var(--shadow-cold);
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination .page-numbers:hover {
    background: var(--accent-2);
    border-color: var(--accent-2);
    color: #fff;
}

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

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

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

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

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

.comments-title,
.comment-reply-title {
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 1.4rem;
}

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

.comment-list ol.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.6rem;
}

.comment-body {
    padding: 1.3rem 1.5rem;
    margin-bottom: 1rem;
    background: #FFFFFF;
    box-shadow: 5px 5px 0 var(--shadow-cold);
}

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

.comment-date {
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.7rem;
    display: block;
}

.comment-reply-link {
    font-family: var(--font-head);
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--accent);
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    padding: 0.75rem 1rem;
    border: 1px solid var(--shadow-cold);
    border-radius: 0;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.98rem;
}

.comment-form textarea {
    width: 100%;
    min-height: 160px;
}

.comment-form .form-submit input {
    padding: 0.9rem 2rem;
    border: 0;
    border-radius: 0;
    background: var(--accent);
    color: #fff;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.comment-form .form-submit input:hover {
    background: var(--accent-2);
    transform: translateY(-3px);
}

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

/* ==========================================================================
   404
   ========================================================================== */

.error-box {
    padding: 3rem 2.4rem;
    background: linear-gradient(135deg, #E0EDF9, #C8DDEB);
    text-align: center;
}

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

.error-box .search-form {
    max-width: 460px;
    margin: 1.8rem auto;
}

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

.site-foot {
    position: relative;
    z-index: 1;
    background: var(--bg-foot);
    color: #C3D3E0;
    padding: 3.4rem 0 0;
}

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

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

.foot-col .widget {
    color: #C3D3E0;
    font-size: 0.96rem;
}

.foot-col .widget-title {
    position: relative;
    padding-left: 1.3rem;
    margin-bottom: 1.1rem;
    font-size: 0.98rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FFFFFF;
}

.foot-col .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.foot-col .widget p {
    color: #B6C8D6;
}

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

.foot-col .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(195, 211, 224, 0.14);
}

.foot-col .widget li:last-child {
    border-bottom: 0;
}

.foot-col .widget a {
    color: #D6E3EE;
    transition: color 0.2s ease;
}

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

.foot-col .widget .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: #8FA5B6;
}

.foot-bottom {
    padding: 1.4rem 0;
    border-top: 1px solid rgba(195, 211, 224, 0.16);
    font-family: var(--font-head);
    font-size: 0.84rem;
    letter-spacing: 0.04em;
    color: #93A9BA;
}

/* ==========================================================================
   Cookie-баннер
   ========================================================================== */

.cookie-banner[hidden] {
    display: none !important;
}

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--bg-head);
    color: #DCE7F0;
    border-top: 3px solid var(--accent);
    font-size: 0.92rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
}

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

.cookie-banner .btn {
    padding: 0.7rem 1.6rem;
    font-size: 0.85rem;
}

/* ==========================================================================
   Служебное
   ========================================================================== */

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

.page-links {
    margin-top: 1.6rem;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
}

.page-links a {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    border: 1px solid var(--shadow-cold);
    margin-left: 0.3rem;
}

.entry-cats,
.entry-tags {
    margin-bottom: 0.4rem;
}

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

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

    .layout-with-sidebar {
        display: block;
    }

    .layout-single,
    .front-inner,
    .hero-body {
        width: 100%;
    }

    .sidebar {
        margin-top: 2.6rem;
    }

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

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .entry-title {
        font-size: 1.8rem;
    }

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

    .fs-stats {
        padding: 2.8rem 1.4rem;
    }

    .hero-body {
        padding: 3.6rem 1.4rem;
    }

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

    .check-item {
        padding: 1.2rem 1.3rem;
        gap: 0.9rem;
    }

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

    .error-box {
        padding: 2.2rem 1.4rem;
    }

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

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] {
        width: 100%;
    }

    body::after {
        width: 380px;
        height: 380px;
    }
}
