/*
Theme Name: dds_lampapuy.com
Author: Руслан Фомин
Description: Тема для информационного сайта о криптопроектах и frontend-шаблонах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: hexnode
*/

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

:root {
    --bg: #0B0D15;
    --bg-alt: #121826;
    --bg-foot: #06080F;
    --bg-side: #0F141F;
    --ink: #F0F4FF;
    --acc: #00E5FF;
    --acc2: #FFE600;
    --mute: #7986A8;
    --line: rgba(0, 229, 255, 0.2);
    --blue: #1B4FA8;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cg fill='none' stroke='%2300E5FF' stroke-opacity='0.14' stroke-width='1'%3E%3Cpath d='M28 2 L52 16 L52 44 L28 58 L4 44 L4 16 Z'/%3E%3Cpath d='M28 50 L52 64 L52 92 L28 106 L4 92 L4 64 Z'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(145deg, #0B0D15 0%, #080A11 55%, #05070C 100%);
    background-attachment: scroll, fixed;
    background-repeat: repeat, no-repeat;
    font-family: "Public Sans", "Roboto", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::before,
body::after {
    content: "";
    position: fixed;
    z-index: 0;
    pointer-events: none;
    border-radius: 50%;
    filter: blur(90px);
}

body::before {
    top: -160px;
    right: -140px;
    width: 460px;
    height: 460px;
    background: rgba(255, 230, 0, 0.10);
}

body::after {
    bottom: -180px;
    left: -160px;
    width: 480px;
    height: 480px;
    background: rgba(0, 229, 255, 0.10);
}

.site {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

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

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Montserrat", "Inter", "Segoe UI", Arial, sans-serif;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: 0.02em;
    color: var(--ink);
    margin: 0 0 0.7em;
}

h1 {
    font-size: 2.6rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

h2 {
    font-size: 1.75rem;
}

h3 {
    font-size: 1.3rem;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    border-left: 4px solid var(--acc);
    background: rgba(0, 229, 255, 0.06);
    border-radius: 0 10px 10px 0;
    color: #DCE6FF;
}

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

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    background: #05070C;
    border: 1px solid var(--line);
    border-radius: 10px;
}

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

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

th {
    background: rgba(0, 229, 255, 0.08);
    color: var(--ink);
}

/* Текстовые ссылки в контентных зонах — анимированное жёлтое подчёркивание */
.text-flow a,
.entry-content a,
.card-excerpt a,
.crumbs a,
.widget a {
    position: relative;
    background-image: linear-gradient(var(--acc2), var(--acc2));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.text-flow a:hover,
.entry-content a:hover,
.card-excerpt a:hover,
.crumbs a:hover,
.widget a:hover {
    background-size: 100% 1px;
    color: #9BF3FF;
}

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

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    border-radius: 8px;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.btn-fill {
    color: #04121A;
    background: linear-gradient(135deg, var(--acc) 0%, var(--blue) 100%);
    box-shadow: 6px 6px 16px rgba(0, 0, 0, 0.55), -4px -4px 14px rgba(0, 229, 255, 0.08);
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 0 1px rgba(0, 229, 255, 0.7), 0 10px 26px rgba(0, 229, 255, 0.28);
}

.btn-ghost {
    color: var(--acc2);
    background: transparent;
    border-color: var(--acc2);
    box-shadow: 5px 5px 14px rgba(0, 0, 0, 0.5), -3px -3px 12px rgba(255, 230, 0, 0.05);
}

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(255, 230, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 230, 0, 0.6), 0 10px 24px rgba(255, 230, 0, 0.18);
}

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

.top {
    position: relative;
    background: rgba(11, 13, 21, 0.55);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    color: var(--ink);
}

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

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

.brand-name {
    display: block;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.25;
    letter-spacing: 0.02em;
    color: var(--ink);
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.4;
    color: var(--mute);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    color: var(--acc);
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.9rem;
    cursor: pointer;
}

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

.main-nav a {
    display: inline-block;
    position: relative;
    padding: 0.3rem 0;
    color: var(--ink);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 0;
    height: 2px;
    background: var(--acc2);
    transition: width 0.28s ease;
}

.main-nav a:hover {
    color: var(--acc);
}

.main-nav a:hover::after,
.main-nav .current-menu-item > a::after {
    width: 100%;
}

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

/* =========================================================
   4. Каркас страницы
   ====================================================== */

.page-body {
    flex: 1 0 auto;
    padding: 2.6rem 0 3.4rem;
}

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

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

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

.crumbs {
    margin-bottom: 1.6rem;
    font-size: 0.83rem;
    color: var(--mute);
    letter-spacing: 0.02em;
}

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

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

/* Заголовки секций и страниц: две точки слева + линия снизу */
.sec-head,
.page-head {
    position: relative;
    padding-left: 1.6rem;
    margin-bottom: 1.8rem;
}

.sec-head::before,
.page-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acc);
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.6);
}

.sec-head::after,
.page-head::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.45em + 14px);
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--acc2);
    box-shadow: 0 0 10px rgba(255, 230, 0, 0.5);
}

.sec-head .rule,
.page-head .rule {
    display: block;
    width: 40px;
    height: 2px;
    margin-top: 0.7rem;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
    transition: width 0.9s ease;
}

.sec-head.is-open .rule,
.page-head.is-open .rule {
    width: 180px;
}

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

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

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

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    overflow: hidden;
    background: linear-gradient(160deg, rgba(18, 24, 38, 0.92), rgba(11, 13, 21, 0.92));
    border: 1px solid var(--line);
    border-radius: 0 0 16px 16px;
    box-shadow: 0 12px 30px rgba(0, 229, 255, 0.05);
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--acc2);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 42px rgba(0, 229, 255, 0.16);
}

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

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

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

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

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

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

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

.card-excerpt {
    color: #C3CDE8;
    font-size: 0.95rem;
    line-height: 1.65;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 1rem;
}

.card-more {
    display: inline-block;
    font-size: 0.83rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acc);
}

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

.post-meta {
    margin-bottom: 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mute);
}

.post-meta a {
    color: var(--mute);
}

.post-meta a:hover {
    color: var(--acc2);
}

.dot-sep {
    display: inline-block;
    width: 4px;
    height: 4px;
    margin: 0 0.3rem 0.15rem;
    border-radius: 50%;
    background: var(--acc);
    vertical-align: middle;
}

/* Жёлтый квадрат перед заголовками записей на главной */
.latest-card .card-title a::before {
    content: "";
    display: inline-block;
    width: 6px;
    height: 6px;
    margin-right: 0.55rem;
    background: var(--acc2);
    vertical-align: middle;
    transition: border-radius 0.3s ease, transform 0.3s ease;
}

.latest-card:hover .card-title a::before {
    border-radius: 50%;
    transform: scale(1.25);
}

/* =========================================================
   6. Главная — секции
   ====================================================== */

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

.front-section.alt {
    background: var(--bg-alt);
    border-top: 1px solid rgba(0, 229, 255, 0.08);
    border-bottom: 1px solid rgba(0, 229, 255, 0.08);
}

.sec-split {
    position: relative;
    height: 34px;
    overflow: hidden;
}

.sec-split svg {
    display: block;
    width: 100%;
    height: 100%;
}

.dot-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 0.4rem 0;
}

.dot-row span {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--acc2);
    opacity: 0.7;
}

.dot-row span:nth-child(3) {
    width: 8px;
    height: 8px;
    background: var(--acc);
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 229, 255, 0.7);
}

/* Блок 1 — статистика */
.stat-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-left: 1px solid rgba(0, 229, 255, 0.25);
}

.stat-cell:first-child {
    border-left: 0;
}

.stat-num {
    display: block;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.05;
    letter-spacing: 0.01em;
    background: linear-gradient(120deg, var(--acc) 0%, var(--acc2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.85rem;
    color: var(--mute);
    letter-spacing: 0.04em;
}

/* Блок 2 — hero */
.hero {
    position: relative;
    overflow: hidden;
    margin-top: 0;
    border-block: 1px solid var(--line);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.5;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(145deg, rgba(11, 13, 21, 0.86), rgba(5, 7, 12, 0.92));
}

.hero-in {
    position: relative;
    z-index: 2;
    padding: 5.2rem 1.6rem;
    text-align: center;
}

.hero h1 {
    font-size: 2.7rem;
    margin-bottom: 1.1rem;
    background: linear-gradient(100deg, var(--acc) 0%, var(--acc2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-sub {
    max-width: 62ch;
    margin: 0 auto 2rem;
    color: #D6DFF7;
    font-size: 1.05rem;
}

.hero-btns {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

/* Блок 3 — шаги */
.step-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.4rem;
}

.step {
    position: relative;
    min-width: 0;
    padding: 1.9rem 1.5rem;
    overflow: hidden;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.step:not(:last-child)::after {
    content: "";
    position: absolute;
    top: 50%;
    right: -1.4rem;
    width: 1.4rem;
    border-top: 2px dashed var(--acc2);
    opacity: 0.75;
}

.step-num {
    position: absolute;
    right: 0.5rem;
    bottom: -1.2rem;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 5.4rem;
    font-weight: 800;
    line-height: 1;
    color: var(--mute);
    opacity: 0.22;
    pointer-events: none;
}

.step h3 {
    position: relative;
    z-index: 1;
    font-size: 1.08rem;
    margin-bottom: 0.55rem;
    color: var(--acc);
}

.step p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 0.93rem;
    color: #C3CDE8;
}

/* Блок 4 — карта тем */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.3rem;
}

.topic {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.5rem 1.6rem;
    color: var(--ink);
    border: 1px solid var(--line);
    background: linear-gradient(135deg, #0B0D15 0%, rgba(0, 229, 255, 0.22) 100%);
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%);
    transition: background 0.3s ease, border-color 0.25s ease, transform 0.25s ease;
}

.topic:nth-child(2) {
    background: linear-gradient(135deg, #0B0D15 0%, rgba(0, 229, 255, 0.16) 100%);
}

.topic:nth-child(3) {
    background: linear-gradient(135deg, #0B0D15 0%, rgba(0, 229, 255, 0.30) 100%);
}

.topic:nth-child(5) {
    background: linear-gradient(135deg, #0B0D15 0%, rgba(0, 229, 255, 0.13) 100%);
}

.topic:nth-child(6) {
    background: linear-gradient(135deg, #0B0D15 0%, rgba(0, 229, 255, 0.26) 100%);
}

.topic:hover {
    transform: translateY(-4px);
    border-color: var(--acc2);
    background: linear-gradient(135deg, rgba(0, 229, 255, 0.28) 0%, #0B0D15 100%);
}

.topic svg {
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    stroke: var(--acc);
    fill: none;
    stroke-width: 1.6;
}

.topic span {
    min-width: 0;
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-weight: 700;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* Последние записи */
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.latest-all {
    margin-bottom: 1.8rem;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

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

.entry {
    padding: 0 0 1rem;
}

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

.entry-title {
    font-size: 2.1rem;
    margin-bottom: 0.6rem;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 0 0 16px 16px;
    border: 1px solid var(--line);
}

.entry-content {
    color: #DCE4F7;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 1.8em;
}

.entry-content img {
    height: auto;
    border-radius: 10px;
}

.entry-tags {
    margin-top: 2rem;
    font-size: 0.85rem;
    color: var(--mute);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    color: var(--acc2);
    border: 1px solid rgba(255, 230, 0, 0.35);
    border-radius: 6px;
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
}

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

.no-posts {
    padding: 2rem;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: rgba(18, 24, 38, 0.8);
}

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

.sidebar {
    min-width: 0;
}

.widget {
    padding: 1.5rem 1.5rem;
    margin-bottom: 1.6rem;
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: #D3DCF2;
}

.widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    font-size: 1.05rem;
    color: var(--ink);
    border-bottom: 1px solid rgba(0, 229, 255, 0.22);
}

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

.widget li {
    padding: 0.5rem 0 0.5rem 1rem;
    position: relative;
    border-bottom: 1px dashed rgba(121, 134, 168, 0.28);
}

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

.widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.05em;
    width: 5px;
    height: 5px;
    background: var(--acc2);
}

.widget a {
    color: #D3DCF2;
}

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

.widget .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--mute);
}

.widget p {
    color: #C3CDE8;
    font-size: 0.94rem;
}

/* =========================================================
   9. Формы
   ====================================================== */

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

.search-form input[type="search"],
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    color: var(--ink);
    background: #0B0D15;
    border: 1px solid var(--line);
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--acc);
    box-shadow: 0 0 0 2px rgba(0, 229, 255, 0.18);
}

.search-form button {
    flex: 0 0 auto;
    padding: 0.7rem 1.2rem;
    color: #04121A;
    background: linear-gradient(135deg, var(--acc), var(--blue));
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.search-form button:hover {
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.4);
}

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

.comments-zone {
    margin-top: 2.8rem;
    padding: 1.8rem 1.8rem;
    background: rgba(15, 20, 31, 0.9);
    border: 1px solid var(--line);
    border-radius: 16px;
}

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

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

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

.comment-inner {
    padding: 1.1rem 1.3rem;
    background: #0B0D15;
    border: 1px solid var(--line);
    border-radius: 10px;
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.6rem;
}

.comment-author {
    font-weight: 700;
    color: var(--acc);
}

.comment-date {
    font-size: 0.78rem;
    color: var(--mute);
}

.comment-text p {
    margin: 0 0 0.6em;
    color: #D3DCF2;
}

.comment-actions a {
    font-size: 0.83rem;
    color: var(--acc2);
}

.comment-hold {
    font-size: 0.85rem;
    color: var(--acc2);
}

.cf-row label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--mute);
}

.comment-form .form-submit input[type="submit"] {
    padding: 0.8rem 1.7rem;
    color: #04121A;
    background: linear-gradient(135deg, var(--acc), var(--blue));
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.25s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.4);
}

.comment-form .comment-notes,
.comment-form .logged-in-as {
    font-size: 0.85rem;
    color: var(--mute);
}

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    color: var(--ink);
    background: rgba(18, 24, 38, 0.9);
    border: 1px solid var(--line);
    border-radius: 8px;
    font-size: 0.92rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    transform: translateY(-2px);
    color: var(--acc);
    box-shadow: 0 0 14px rgba(0, 229, 255, 0.28);
}

.pager .page-numbers.current {
    color: #04121A;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    border-color: transparent;
    font-weight: 700;
}

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

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

.foot {
    flex: 0 0 auto;
    margin-top: 2rem;
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    color: #CBD5EE;
}

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

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

.foot .widget {
    padding: 0;
    margin: 0;
    background: none;
    border: 0;
    border-radius: 0;
    color: #CBD5EE;
}

.foot .widget-title {
    color: var(--ink);
    border-bottom-color: rgba(0, 229, 255, 0.2);
}

.foot .widget a {
    color: #CBD5EE;
}

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

.foot .widget p {
    color: #A9B6D4;
}

.foot .widget li {
    border-bottom-color: rgba(121, 134, 168, 0.2);
}

.foot-mail {
    display: block;
    margin-top: 0.8rem;
    color: var(--acc);
    font-size: 0.9rem;
}

.copy {
    padding: 1.3rem 0 1.8rem;
    border-top: 1px solid rgba(0, 229, 255, 0.14);
    font-size: 0.85rem;
    color: var(--mute);
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 1.6rem;
    background: rgba(6, 8, 15, 0.96);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    color: #D3DCF2;
    font-size: 0.9rem;
}

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

.cookie-banner button {
    flex: 0 0 auto;
    padding: 0.6rem 1.4rem;
    color: #04121A;
    background: linear-gradient(135deg, var(--acc), var(--acc2));
    border: 0;
    border-radius: 8px;
    font-weight: 700;
    cursor: pointer;
}

.cookie-banner button:hover {
    box-shadow: 0 0 16px rgba(0, 229, 255, 0.45);
}

/* =========================================================
   14. 404
   ====================================================== */

.err-box {
    padding: 3rem 2.2rem;
    text-align: center;
    background: rgba(18, 24, 38, 0.85);
    border: 1px solid var(--line);
    border-radius: 16px;
}

.err-code {
    font-family: "Montserrat", "Inter", Arial, sans-serif;
    font-size: 5.4rem;
    font-weight: 800;
    line-height: 1;
    background: linear-gradient(120deg, var(--acc), var(--acc2));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

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

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

@media (min-width: 961px) {
    h1 {
        font-size: 3.2rem;
    }

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
    }

    .layout-single {
        width: 100%;
    }

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

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

    .step:nth-child(2)::after {
        display: none;
    }

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

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

    .stat-cell:nth-child(odd) {
        border-left: 0;
    }

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

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

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

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

    .main-nav ul {
        display: none;
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .main-nav.is-open ul {
        display: flex;
    }

    .main-nav li {
        width: 100%;
        border-bottom: 1px dashed rgba(121, 134, 168, 0.25);
    }

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

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

    .card-grid,
    .step-row,
    .topic-grid,
    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
    }

    .step::after {
        display: none;
    }

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

    .stat-cell {
        border-left: 0;
        border-top: 1px solid rgba(0, 229, 255, 0.22);
        padding: 1rem 1.2rem;
    }

    .stat-cell:first-child {
        border-top: 0;
    }

    .hero-in {
        padding: 3.4rem 1.2rem;
    }

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

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

    .comments-zone {
        padding: 1.3rem 1.2rem;
    }

    .err-box {
        padding: 2rem 1.4rem;
    }

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

    .widget {
        padding: 1.2rem 1.2rem;
    }
}

/* =========================================================
   16. Дополнения макета
   ====================================================== */

.front {
    padding-top: 0;
}

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

.front-section.hero {
    padding: 0;
}

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

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

.sec-head h2,
.page-head h1 {
    margin-bottom: 0;
}

.comments-zone .sec-head {
    margin-bottom: 1.4rem;
}

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

.comment-form label[for="comment"] {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.85rem;
    color: var(--mute);
}

@media (max-width: 960px) {
    .front-in {
        width: 92%;
    }
}

@media (max-width: 600px) {
    .card-grid.cols-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
