/*
Theme Name: dds_servicecenterss.com
Author: Юрий Нестеров
Description: Тема для информационного сайта о сервисных центрах и поддержке пользователей.
Version: 1.1
Text Domain: svcnode
*/

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

:root {
    --bg:        #F0F4F9;
    --bg-alt:    #E6EEF7;
    --dark:      #0B1C2F;
    --panel:     #FFFFFF;
    --ink:       #1A2A3A;
    --accent:    #00C2D1;
    --accent-2:  #2A5F7A;
    --muted:     #6A7F8F;
    --line:      #D0DDEB;
    --line-2:    #B0C8DD;
    --hairline:  #D8E2EE;
    --btn-edge:  #008B99;
    --font-head: 'Inter', 'Helvetica Neue', 'Segoe UI', Arial, sans-serif;
    --font-body: 'Source Serif Pro', '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);
    background-image: repeating-linear-gradient(
        45deg,
        var(--hairline) 0,
        var(--hairline) 0.3px,
        transparent 0.3px,
        transparent 40px
    );
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body.home::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -140px;
    width: 460px;
    height: 460px;
    border-radius: 50%;
    background: var(--accent);
    opacity: 0.08;
    filter: blur(70px);
    pointer-events: none;
    z-index: 0;
}

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

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

/* Контейнер главной страницы — ширина контента 85% */
.shell-front {
    width: min(85%, 1180px);
    margin-inline: auto;
}

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

a {
    color: var(--ink);
    text-decoration: none;
    transition: color 0.18s ease;
}

a:hover,
a:focus {
    color: var(--accent);
    text-decoration: overline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

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

h1 {
    font-size: 3.25rem;
}

h2 {
    font-size: 1.85rem;
    display: inline-block;
    border-bottom: 1px dashed var(--line-2);
    padding-bottom: 0.18em;
}

h3 {
    font-size: 1.35rem;
}

h4 {
    font-size: 1.12rem;
}

p {
    margin: 0 0 1.1em;
}

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

li {
    margin-bottom: 0.4em;
}

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.6rem;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent);
    font-style: italic;
}

code, pre {
    font-family: 'JetBrains Mono', 'Consolas', monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border-left: 4px solid var(--accent-2);
}

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

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    letter-spacing: 0.04em;
}

/* Фирменный приём: термины в квадратных скобках */
.term {
    color: var(--accent-2);
    font-family: var(--font-head);
    font-size: 0.94em;
    letter-spacing: 0.05em;
}

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

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    font-weight: 600;
    text-transform: uppercase;
    padding: 0.78rem 1.7rem;
    border-radius: 8px;
    border: 1px solid var(--btn-edge);
    background: var(--accent);
    color: var(--dark);
    cursor: pointer;
    transition: background 0.18s ease, border-color 0.18s ease, transform 0.12s ease, color 0.18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent-2);
    border-color: #FFFFFF;
    color: #FFFFFF;
    transform: translateY(2px);
    text-decoration: none;
}

.btn-on-dark {
    border-color: #FFFFFF;
}

.btn-on-dark:hover,
.btn-on-dark:focus {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--dark);
}

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

.site-head {
    background: var(--dark);
    color: #E9F2F8;
    position: static;
}

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

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

.brand-logo,
.brand-mark {
    display: block;
    flex: 0 0 auto;
}

.brand-mark {
    width: 46px;
    height: 46px;
}

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

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

a.brand-title:hover {
    color: var(--accent);
    text-decoration: none;
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.83rem;
    line-height: 1.45;
    color: #8FA6B8;
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #2E4761;
    border-radius: 8px;
    padding: 0.55rem 1rem;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #D6E4EE;
    padding-top: 3px;
    border-top: 2px solid transparent;
    display: inline-block;
}

.main-nav a:hover,
.main-nav a:focus,
.main-nav .current-menu-item > a {
    color: var(--accent);
    border-top-color: var(--accent);
    text-decoration: none;
}

/* Диагностическая полоса */
.diag-bar {
    height: 4px;
    background: linear-gradient(to right, var(--accent) 0, var(--accent) 70%, var(--dark) 70%, var(--dark) 100%);
}

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

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

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

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

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

.crumbs {
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

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

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

.page-title {
    font-size: 2.4rem;
    position: relative;
    padding-left: 16px;
    border-bottom: 0;
    display: block;
    margin-bottom: 1.4rem;
}

.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.12em;
    bottom: 0.12em;
    width: 4px;
    background: var(--accent);
}

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

.card-list {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
    margin-bottom: 2.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.18s ease, background 0.18s ease;
}

.card::after {
    content: "";
    position: absolute;
    inset: 2px;
    border: 0.5px solid var(--accent);
    pointer-events: none;
    transition: border-width 0.18s ease, border-color 0.18s ease;
    z-index: 2;
}

.card:hover {
    transform: translateX(-6px);
    background: #F0F8FF;
}

.card:hover::after {
    border-width: 1px;
    border-color: var(--accent);
}

.card-inner {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-width: 0;
}

.card-thumb-wrap {
    flex: 0 0 280px;
    position: relative;
    overflow: hidden;
    background: var(--bg-alt);
    aspect-ratio: 3 / 2;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

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

.card-title {
    font-size: 1.28rem;
    margin: 0 0 0.6rem;
    border-bottom: 0;
    display: block;
    letter-spacing: 0.02em;
}

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

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

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

.entry-meta .dot {
    margin: 0 0.4rem;
}

.card-excerpt {
    flex: 1;
    font-size: 0.98rem;
    color: #2C4152;
}

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

.card-more {
    margin-top: 0.9rem;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
    align-self: flex-start;
}

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    text-align: center;
    padding: 0.55rem 0.85rem;
    font-family: var(--font-head);
    font-size: 0.88rem;
    letter-spacing: 0.06em;
    border: 1px solid var(--line);
    background: var(--panel);
    color: var(--ink);
    border-radius: 0;
}

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

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--btn-edge);
    color: var(--dark);
    font-weight: 700;
}

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

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

.sidebar {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.4rem 1.4rem 0.6rem;
    color: var(--ink);
}

.sidebar .widget {
    margin-bottom: 1.6rem;
}

.sidebar .widget-title {
    font-size: 1.02rem;
    color: var(--ink);
    border-bottom: 0;
    display: block;
    position: relative;
    padding-left: 14px;
    margin-bottom: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--accent);
}

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

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

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

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

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

.sidebar .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.76rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

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

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

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

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

.search-form button {
    border-radius: 8px;
    border: 1px solid var(--btn-edge);
    background: var(--accent);
    color: var(--dark);
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    padding: 0.65rem 1.1rem;
    cursor: pointer;
}

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

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

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

.front-section.tone-alt {
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(176, 200, 221, 0.35) 0,
        rgba(176, 200, 221, 0.35) 0.3px,
        transparent 0.3px,
        transparent 40px
    );
}

.section-rule {
    height: 1px;
    background-image: repeating-linear-gradient(
        to right,
        var(--line) 0,
        var(--line) 14px,
        transparent 14px,
        transparent 34px
    );
}

.section-title {
    font-size: 1.95rem;
    position: relative;
    padding-left: 16px;
    border-bottom: 0;
    display: block;
    margin-bottom: 1.6rem;
}

.section-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.1em;
    bottom: 0.1em;
    width: 4px;
    background: var(--accent);
}

.section-lead {
    max-width: 68ch;
    color: #2C4152;
}

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

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

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

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.42;
    filter: grayscale(0.6);
}

.hero-shade {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(11, 28, 47, 0.94) 0%, rgba(11, 28, 47, 0.72) 55%, rgba(11, 28, 47, 0.88) 100%);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 0 4.2rem;
    text-align: left;
}

.hero-kicker {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 1.1rem;
}

.hero-title {
    position: relative;
    padding-left: 20px;
    color: #FFFFFF;
    max-width: 20ch;
    margin-bottom: 1.2rem;
}

.hero-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.06em;
    bottom: 0.06em;
    width: 4px;
    background: var(--accent);
}

.hero-sub {
    max-width: 60ch;
    color: #E4EEF5;
    font-size: 1.08rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    margin-bottom: 2.2rem;
}

.hero-cta {
    text-align: center;
    margin-top: 2.4rem;
}

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

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

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.2rem;
    border-left: 1px dashed var(--line-2);
    text-align: left;
}

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

.stat-num {
    font-family: var(--font-head);
    font-size: 3.5rem;
    line-height: 1.05;
    font-weight: 700;
    letter-spacing: 0.01em;
    color: var(--accent);
    display: block;
}

.stat-label {
    font-family: var(--font-head);
    font-size: 0.86rem;
    line-height: 1.5;
    letter-spacing: 0.05em;
    color: var(--ink);
    display: block;
    margin-top: 0.5rem;
}

/* --- Блок 3: таймлайн --- */

.timeline {
    position: relative;
    margin-top: 2.4rem;
    padding-left: 2.2rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 7px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: var(--accent-2);
}

.tl-step {
    position: relative;
    margin-bottom: 2.1rem;
    min-width: 0;
}

.tl-step:last-child {
    margin-bottom: 0;
}

.tl-step::before {
    content: "";
    position: absolute;
    left: -2.2rem;
    top: 0.42em;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--accent);
    border: 2px solid var(--bg);
}

.tl-num {
    font-family: var(--font-head);
    font-size: 0.76rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
    display: block;
    margin-bottom: 0.25rem;
}

.tl-title {
    font-size: 1.22rem;
    margin: 0 0 0.4rem;
    border-bottom: 0;
    display: block;
}

.tl-text {
    margin: 0;
    color: #2C4152;
    font-size: 0.99rem;
}

.tl-step.wide .tl-text {
    max-width: 72ch;
}

.tl-step.narrow .tl-text {
    max-width: 46ch;
}

/* --- Блок 4: CTA --- */

.fs-cta {
    background: var(--dark);
    padding: 3rem 2.4rem;
    color: #FFFFFF;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    flex-wrap: wrap;
}

.fs-cta h2 {
    color: #FFFFFF;
    font-size: 2.3rem;
    border-bottom: 0;
    margin: 0 0 0.6rem;
    display: block;
}

.fs-cta p {
    margin: 0;
    color: #C6D8E4;
    max-width: 56ch;
}

.fs-cta .cta-text {
    min-width: 0;
    flex: 1 1 380px;
}

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

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

.latest-link {
    font-family: var(--font-head);
    font-size: 0.84rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent-2);
}

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

.entry {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 2rem 2.2rem;
}

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

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

.entry-content h2 {
    margin-top: 1.8rem;
}

.entry-content h3 {
    margin-top: 1.5rem;
}

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

.entry-content a {
    color: var(--accent-2);
    text-decoration: underline;
    text-decoration-color: var(--line-2);
}

.entry-content a:hover {
    color: var(--accent);
    text-decoration: overline;
    text-decoration-color: var(--accent);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 1.8rem;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    flex-wrap: wrap;
}

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

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

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

.comments-title,
.comment-reply-title {
    font-size: 1.35rem;
    border-bottom: 0;
    display: block;
    position: relative;
    padding-left: 14px;
}

.comments-title::before,
.comment-reply-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--accent);
}

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

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

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

.comment-body {
    border: 1px solid var(--line);
    padding: 1rem 1.2rem;
    background: var(--bg);
}

.comment-head {
    display: flex;
    gap: 0.9rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
    letter-spacing: 0.04em;
}

.comment-date {
    font-family: var(--font-head);
    font-size: 0.78rem;
    color: var(--muted);
    letter-spacing: 0.06em;
}

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

.comment-reply a,
.comment-hold {
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.06em;
    margin-bottom: 0.3rem;
    color: var(--ink);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    background: var(--bg);
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--ink);
    border-radius: 0;
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.9rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.75rem 1.6rem;
    border-radius: 8px;
    border: 1px solid var(--btn-edge);
    background: var(--accent);
    color: var(--dark);
    cursor: pointer;
}

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

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

.site-foot {
    background: var(--dark);
    color: #C6D8E4;
    padding: 3rem 0 1.6rem;
    margin-top: auto;
}

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

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

.site-foot .widget {
    margin-bottom: 1.4rem;
}

.site-foot .widget-title {
    font-size: 0.98rem;
    color: #FFFFFF;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    border-bottom: 0;
    display: block;
    position: relative;
    padding-left: 14px;
    margin-bottom: 0.9rem;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.15em;
    bottom: 0.15em;
    width: 4px;
    background: var(--accent);
}

.site-foot p,
.site-foot li,
.site-foot .textwidget {
    color: #C6D8E4;
    font-size: 0.94rem;
}

.site-foot a {
    color: #E4EEF5;
}

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

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

.site-foot li {
    margin-bottom: 0.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px dashed rgba(198, 216, 228, 0.18);
}

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

.site-foot .post-date {
    display: block;
    font-family: var(--font-head);
    font-size: 0.76rem;
    color: #8FA6B8;
}

.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(198, 216, 228, 0.16);
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.05em;
    color: #8FA6B8;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--dark);
    border-top: 4px solid var(--accent);
    color: #E4EEF5;
    padding: 1.1rem 1.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.cookie-banner p {
    margin: 0;
    font-size: 0.92rem;
    max-width: 70ch;
    min-width: 0;
}

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

.cookie-btn {
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1.4rem;
    border-radius: 8px;
    border: 1px solid var(--btn-edge);
    background: var(--accent);
    color: var(--dark);
    cursor: pointer;
    flex: 0 0 auto;
}

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

/* ============================================================
   13. 404 и поиск
   ============================================================ */

.notfound {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 2.4rem 2.2rem;
}

.notfound .code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.notfound .search-form {
    max-width: 460px;
    margin: 1.4rem 0;
}

.nothing {
    background: var(--panel);
    border: 1px solid var(--line);
    padding: 1.8rem 2rem;
}

/* ============================================================
   14. Служебные классы WordPress
   ============================================================ */

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

.alignleft {
    float: left;
    margin: 0.4rem 1.4rem 1rem 0;
}

.alignright {
    float: right;
    margin: 0.4rem 0 1rem 1.4rem;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.alignwide,
.alignfull {
    max-width: 100%;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    font-family: var(--font-head);
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.4rem;
}

.sticky .card-title::after {
    content: "закреплено";
    display: inline-block;
    margin-left: 0.6rem;
    font-family: var(--font-head);
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-2);
    border: 1px solid var(--line-2);
    padding: 0.1rem 0.4rem;
    vertical-align: middle;
}

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

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

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

    .layout-single {
        width: 100%;
    }

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

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

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0.9rem;
        padding-top: 1rem;
        border-top: 1px solid #1E3247;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .site-main {
        padding: 2rem 0 3rem;
    }

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

    .hero-inner {
        padding: 3.4rem 0 3rem;
    }

    .hero-title {
        max-width: none;
    }

    .entry,
    .comments-area,
    .notfound,
    .nothing {
        padding: 1.4rem 1.2rem;
    }

    .fs-cta {
        padding: 2rem 1.4rem;
    }

    .fs-cta h2 {
        font-size: 1.7rem;
    }

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

    .stat-cell {
        border-left: 0;
        padding-left: 0;
        border-top: 1px dashed var(--line-2);
        padding-top: 0.9rem;
    }

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

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

    .card-inner {
        flex-direction: column;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        aspect-ratio: auto;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 3 / 2;
    }

    .card-body {
        padding: 1.2rem 1.2rem;
    }

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

    .timeline {
        padding-left: 1.8rem;
    }

    .tl-step::before {
        left: -1.8rem;
    }

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