/*
Theme Name: dds_redsneaker.ru
Author: Анатолий Грачёв
Description: Тема информационного сайта о спортивной одежде и материалах. Морская холодная палитра, приборная графика, карточки тестирования.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: rsneak
*/

/* =========================================================
   1. Базовые переменные и сброс
   ========================================================= */
:root {
    --bg: #F0F6FA;
    --bg-alt: #E4EDF4;
    --bg-deep: #D0E3F0;
    --head-bg: #11212E;
    --foot-bg: #0B171F;
    --ink: #1A2A38;
    --accent: #0077BE;
    --accent-soft: #48B5E4;
    --signal: #FFC857;
    --muted: #5D7A8E;
    --line: #B0D0E5;
    --wave: #8CB4D0;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(26, 42, 56, 0.08) 0 0.5px, transparent 0.5px 40px),
        repeating-linear-gradient(-45deg, rgba(26, 42, 56, 0.08) 0 0.5px, transparent 0.5px 40px);
    color: var(--ink);
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    letter-spacing: 0.012em;
}

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

h1, h2, h3, h4, h5, h6,
.brand-name,
.btn,
.stat-num,
.step-num {
    font-family: "Franklin Gothic Medium", "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
    letter-spacing: 0.005em;
    line-height: 1.18;
    font-stretch: condensed;
}

h1 {
    font-size: 3.2rem;
    margin: 0 0 1.1rem;
}

h2 {
    font-size: 2rem;
    margin: 0 0 1rem;
}

h3 {
    font-size: 1.35rem;
    margin: 0 0 0.8rem;
}

h4 {
    font-size: 1.12rem;
    margin: 0 0 0.7rem;
}

p {
    margin: 0 0 1.05em;
}

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dotted;
    text-underline-offset: 4px;
    text-decoration-thickness: 1px;
}

a:hover,
a:focus {
    text-decoration-style: solid;
    color: #005B92;
}

/* =========================================================
   2. Каркас
   ========================================================= */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

.shell.wide85 {
    width: min(85%, 1180px);
}

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

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

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

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

/* =========================================================
   3. Шапка
   ========================================================= */
.site-head {
    background: var(--head-bg);
    background-image: repeating-linear-gradient(90deg, rgba(72, 181, 228, 0.06) 0 1px, transparent 1px 40px);
    color: #E8F2F8;
    border-bottom: 2px solid var(--accent);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
    padding: 1.4rem 0;
}

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

.brand:hover {
    color: inherit;
}

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

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

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

.brand-name {
    display: block;
    font-size: 1.16rem;
    color: #FFFFFF;
    line-height: 1.24;
}

.brand-desc {
    display: block;
    font-size: 0.79rem;
    color: #9FBDD0;
    line-height: 1.45;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    color: #E8F2F8;
    border: 1px solid #3A8DBF;
    border-radius: 2px;
    padding: 0.5rem 0.85rem;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

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

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

.head-nav a {
    display: inline-block;
    color: #D5E7F2;
    text-decoration: none;
    font-size: 0.95rem;
    padding: 0.35rem 0;
    border-bottom: 2px solid transparent;
}

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

/* =========================================================
   4. Кнопки и служебные элементы
   ========================================================= */
.btn {
    position: relative;
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--accent);
    background-color: var(--accent);
    background-image: radial-gradient(circle at 50% 50%, #1A8FD6 0%, var(--accent) 0%);
    color: #FFFFFF;
    font-size: 0.96rem;
    text-decoration: none;
    cursor: pointer;
    transition: background-size 0.25s ease, box-shadow 0.25s ease, color 0.2s ease;
    background-size: 100% 100%;
}

.btn:hover,
.btn:focus {
    color: #FFFFFF;
    background-image: radial-gradient(circle at 50% 50%, #2AA0E0 0%, var(--accent) 78%);
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.42), 0 4px 0 -2px rgba(11, 23, 31, 0.35);
}

.btn-line {
    background-color: transparent;
    background-image: none;
    color: var(--accent);
    border: 1px solid var(--accent);
}

.btn-line:hover,
.btn-line:focus {
    color: #FFFFFF;
    background-image: radial-gradient(circle at 50% 50%, var(--accent-soft) 0%, var(--accent) 80%);
}

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

/* Заголовок-«метка датчика» */
.tag-title {
    position: relative;
    padding-left: 1.1rem;
}

.tag-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 4px;
    height: 2.2em;
    background: var(--accent);
}

/* Градуировка — шкала без цифр */
.gauge {
    height: 10px;
    margin: 0 0 1.4rem;
    background-image: repeating-linear-gradient(90deg, var(--wave) 0 1px, transparent 1px 12px);
    border-bottom: 1px solid var(--line);
    opacity: 0.85;
}

/* Волнистый разделитель с буйками */
.wave-split {
    height: 22px;
    margin: 0;
    border: 0;
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='12' viewBox='0 0 120 12'%3E%3Cpath d='M0 6 Q15 0 30 6 T60 6 T90 6 T120 6' fill='none' stroke='%238CB4D0' stroke-width='1.2'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='12' viewBox='0 0 240 12'%3E%3Ccircle cx='60' cy='6' r='2.4' fill='%230077BE'/%3E%3Ccircle cx='180' cy='6' r='2.4' fill='%23FFC857'/%3E%3C/svg%3E");
    background-repeat: repeat-x, repeat-x;
    background-position: center, center;
}

/* =========================================================
   5. Хлебные крошки
   ========================================================= */
.trail {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1rem 0 0;
}

.trail a {
    color: var(--muted);
    text-decoration-style: dotted;
}

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

.trail .sep {
    color: var(--line);
    margin: 0 0.35rem;
}

/* =========================================================
   6. Карточки записей
   ========================================================= */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.6rem;
}

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

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent-soft);
    opacity: 0;
    transition: opacity 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 9px -8px rgba(17, 33, 46, 0.6);
}

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

/* Уголок-индикатор фокуса обзора */
.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    z-index: 2;
    border-style: solid;
    border-width: 26px 26px 0 0;
    border-color: var(--accent) transparent transparent transparent;
}

.card.focus-price::before {
    border-top-color: var(--signal);
}

.card.focus-safety::before {
    border-top-color: #2FB5A8;
}

.card.focus-comfort::before {
    border-top-color: #6E93A8;
}

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

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(11, 23, 31, 0) 45%, rgba(11, 23, 31, 0.42) 100%);
    pointer-events: none;
}

.card-thumb a {
    display: block;
}

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

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 0.55rem;
}

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

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

.card-meta {
    font-size: 0.79rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin: 0 0 0.7rem;
}

.card-excerpt {
    font-size: 0.95rem;
}

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

.card-more {
    display: inline-block;
    margin-top: 0.6rem;
    font-size: 0.9rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.card-more:hover {
    border-bottom-style: solid;
}

/* =========================================================
   7. Главная страница
   ========================================================= */
.front-wrap {
    padding-bottom: 3rem;
}

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

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

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

.section-head p {
    color: var(--muted);
    max-width: 62ch;
    margin: 0;
}

/* Hero */
.hero {
    position: relative;
    overflow: hidden;
    background: linear-gradient(120deg, #11212E 0%, #1E3B4A 100%);
    color: #E9F3F9;
    padding: 3.6rem 2.2rem 3rem;
}

.hero-sonar {
    position: absolute;
    top: -40px;
    right: -30px;
    width: 360px;
    max-width: 60%;
    opacity: 0.18;
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 2;
    text-align: center;
}

.hero h1 {
    color: #FFFFFF;
    max-width: 22ch;
    margin-inline: auto;
}

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

.hero-anchors {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
    gap: 1rem;
    margin-top: 2.2rem;
}

.anchor-plate {
    padding: 1rem 1.2rem;
    border: 1px solid rgba(72, 181, 228, 0.55);
    border-radius: 2px;
    background: rgba(240, 246, 250, 0.06);
    min-width: 0;
}

.anchor-plate b {
    display: block;
    font-size: 0.98rem;
    color: var(--signal);
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.anchor-plate span {
    display: block;
    font-size: 0.86rem;
    color: #C6DDEB;
    margin-top: 0.3rem;
    line-height: 1.5;
}

/* Шаги */
.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.8rem;
    position: relative;
}

.step {
    position: relative;
    min-width: 0;
    padding: 1.4rem 1.4rem 1.5rem;
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.5);
    overflow: hidden;
}

.step-num {
    position: absolute;
    top: -0.6rem;
    right: 0.6rem;
    font-size: 5.4rem;
    color: rgba(0, 119, 190, 0.14);
    line-height: 1;
}

.step h3 {
    position: relative;
    z-index: 2;
}

.step p {
    position: relative;
    z-index: 2;
    margin: 0;
    font-size: 0.95rem;
    color: #33475A;
}

.step-line {
    height: 1px;
    margin: 1.6rem 0 0;
    background-image: repeating-linear-gradient(90deg, var(--accent) 0 8px, transparent 8px 16px);
    opacity: 0.55;
}

/* Статистика */
.stats-band {
    background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg-deep) 100%);
}

.stats-band .shell {
    position: relative;
}

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

.stat {
    min-width: 0;
    text-align: center;
    padding: 1.2rem 1rem;
}

.stat-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 148px;
    height: 148px;
    margin: 0 auto 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 50%;
    font-size: 4rem;
    color: var(--head-bg);
    background: rgba(255, 255, 255, 0.55);
}

.stat span {
    display: block;
    font-size: 0.86rem;
    color: var(--muted);
    line-height: 1.5;
}

.hexes {
    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='%2311212E' stroke-width='2' opacity='0.04'%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");
}

/* Рубрикатор */
.topics {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
    gap: 1.4rem;
}

.topic {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    min-width: 0;
    padding: 1.15rem 1.25rem;
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 6px 6px -6px rgba(17, 33, 46, 0.45);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.topic svg {
    flex: 0 0 auto;
    width: 30px;
    height: 30px;
    stroke: var(--accent);
    fill: none;
    stroke-width: 1.6;
    transition: stroke 0.2s ease;
}

.topic b {
    font-size: 1.02rem;
    min-width: 0;
}

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

.topic:hover svg {
    stroke: #FFFFFF;
}

/* Последние записи на главной */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.latest-head h2 {
    margin: 0;
}

/* =========================================================
   8. Записи и страницы
   ========================================================= */
.entry {
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.5);
    padding: 1.9rem 2rem 2.2rem;
}

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

.entry-meta {
    font-size: 0.82rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.09em;
    margin-bottom: 1.4rem;
}

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

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

.entry-content h2,
.entry-content h3 {
    margin-top: 2rem;
}

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

.entry-content ul,
.entry-content ol {
    padding-left: 1.3rem;
}

.entry-content li {
    margin-bottom: 0.45rem;
}

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    border-radius: 2px;
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.5rem 0;
    border: 1px solid var(--line);
}

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

.entry-content th {
    background: var(--bg-alt);
}

.entry-tags {
    margin-top: 1.8rem;
    font-size: 0.86rem;
    color: var(--muted);
}

.page-heading {
    margin-bottom: 1.6rem;
}

/* =========================================================
   9. Сайдбар и виджеты
   ========================================================= */
.sidebar {
    min-width: 0;
    background: #FFFFFF;
    border-left: 3px solid #3A8DBF;
    padding: 1.4rem 1.35rem 1.6rem;
    border-radius: 0 6px 6px 0;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.45);
}

.sidebar .panel {
    margin-bottom: 1.8rem;
    color: var(--ink);
}

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

.sidebar .panel-title {
    font-size: 1.05rem;
    color: var(--head-bg);
    padding-bottom: 0.5rem;
    margin-bottom: 0.9rem;
    border-bottom: 1px solid var(--line);
}

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

.sidebar li {
    margin-bottom: 0.65rem;
    padding-left: 0.9rem;
    position: relative;
    font-size: 0.94rem;
}

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.72em;
    width: 5px;
    height: 5px;
    background: var(--accent-soft);
}

.sidebar a {
    color: var(--ink);
    text-decoration-style: dotted;
}

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

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

/* =========================================================
   10. Подвал
   ========================================================= */
.site-foot {
    background: var(--foot-bg);
    background-image: repeating-linear-gradient(45deg, rgba(72, 181, 228, 0.05) 0 0.5px, transparent 0.5px 40px);
    color: #C3D6E2;
    padding: 3rem 0 1.6rem;
    border-top: 2px solid var(--accent);
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

.foot-cols .panel {
    min-width: 0;
    color: #C3D6E2;
    font-size: 0.94rem;
}

.foot-cols .panel-title {
    font-size: 1.03rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid rgba(72, 181, 228, 0.35);
}

.foot-cols p {
    color: #C3D6E2;
}

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

.foot-cols li {
    margin-bottom: 0.6rem;
    padding-left: 0.9rem;
    position: relative;
}

.foot-cols li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.75em;
    width: 5px;
    height: 5px;
    background: var(--signal);
}

.foot-cols a {
    color: #D8E8F2;
    text-decoration-style: dotted;
}

.foot-cols a:hover {
    color: var(--signal);
}

.foot-cols .post-date {
    display: block;
    font-size: 0.78rem;
    color: #8FAEC2;
}

.foot-contact a {
    color: var(--signal);
}

.copyright {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(195, 214, 226, 0.18);
    font-size: 0.85rem;
    color: #8FAEC2;
}

/* =========================================================
   11. Пагинация
   ========================================================= */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.55rem 0.95rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font-size: 0.92rem;
    text-decoration: none;
    min-width: 42px;
    text-align: center;
}

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

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

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

/* =========================================================
   12. Поиск, комментарии, 404
   ========================================================= */
.search-form {
    display: flex;
    gap: 0.5rem;
    max-width: 460px;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.68rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

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

.talk {
    margin-top: 2.2rem;
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.5);
    padding: 1.7rem 1.9rem 2rem;
}

.talk-title {
    font-size: 1.35rem;
    margin-bottom: 1.2rem;
}

.talk-list {
    list-style: none;
    margin: 0 0 1.6rem;
    padding: 0;
}

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

.talk-item {
    padding: 1rem 1.1rem;
    margin-bottom: 1rem;
    background: var(--bg);
    border-left: 3px solid var(--accent-soft);
    border-radius: 2px;
}

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

.talk-author {
    font-weight: 600;
}

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

.talk-text p:last-child {
    margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #FFFFFF;
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.comment-form label {
    display: inline-block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.comment-form .submit {
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #FFFFFF;
    font: inherit;
    font-size: 0.95rem;
    cursor: pointer;
}

.comment-form .submit:hover {
    box-shadow: inset 0 0 14px rgba(255, 255, 255, 0.4);
}

.error-box {
    background: #FFFFFF;
    border-right: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: 0 7px 7px -7px rgba(17, 33, 46, 0.5);
    padding: 2.2rem 2.2rem 2.4rem;
}

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

/* =========================================================
   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.6rem;
    background: var(--head-bg);
    color: #DCEAF3;
    border-top: 2px solid var(--accent);
    font-size: 0.9rem;
}

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

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

/* =========================================================
   14. Адаптив
   ========================================================= */
@media (max-width: 960px) {
    h1 {
        font-size: 2.5rem;
    }

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

    .layout-single {
        width: 100%;
    }

    .sidebar {
        border-radius: 6px;
    }

    .stat-num {
        width: 124px;
        height: 124px;
        font-size: 3rem;
    }
}

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

    h1 {
        font-size: 2.05rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .head-inner {
        padding: 1rem 0;
    }

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

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

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

    .head-nav ul {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid rgba(72, 181, 228, 0.3);
        margin-top: 0.6rem;
        padding-top: 0.4rem;
    }

    .head-nav li {
        border-bottom: 1px solid rgba(72, 181, 228, 0.16);
    }

    .head-nav a {
        display: block;
        padding: 0.6rem 0;
    }

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

    .hero {
        padding: 2.3rem 1.4rem 2.2rem;
    }

    .entry,
    .talk,
    .error-box {
        padding: 1.3rem 1.2rem 1.5rem;
    }

    .step {
        padding: 1.2rem 1.2rem 1.3rem;
    }

    .stat-num {
        width: 112px;
        height: 112px;
        font-size: 2.6rem;
    }

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