/*
Theme Name: dds_skyweb.su
Theme URI: https://skyweb.su/
Author: Алексей Смирнов
Description: Тема для информационно-аналитического портала о веб-инфраструктуре: обзоры хостингов, конструкторов и CMS, сравнения тарифов и характеристик, инструкции по запуску сайтов.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: swlab
*/

:root {
    --bg: #F0F4F8;
    --bg-alt: #FFFFFF;
    --ink: #1A262F;
    --deep: #0B1A2F;
    --side: #E8EEF4;
    --accent: #0077B6;
    --accent-2: #00A896;
    --muted: #5A6C7D;
    --hair: #D3DDE8;
    --sans: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --display: "Archivo", "Roboto Condensed", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --shell: min(92%, 1180px);
    --step: 4.5rem;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--sans);
    font-size: 17px;
    line-height: 1.7;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

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

/* ---------- Типографика ---------- */

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

h1 { font-size: 2.1rem; letter-spacing: 0.02em; }
h2 { font-size: 1.6rem; }
h3 { font-size: 1.24rem; }
h4 { font-size: 1.08rem; }

p { margin: 0 0 1.1em; }

.entry-content h2,
.entry-content h3,
.fs h2:not(.card-title),
.fs h3,
.widget-title {
    position: relative;
    padding-left: 1.1rem;
}

.entry-content h2::before,
.entry-content h3::before,
.fs h2:not(.card-title)::before,
.fs h3::before,
.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--accent-2);
}

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

.entry-content a:not(.btn),
.sec-lead a,
.crumbs a,
.post-nav a,
.card-title a,
.comment-text a {
    background-image: linear-gradient(var(--accent-2), var(--accent-2));
    background-size: 0 1px;
    background-position: 0 100%;
    background-repeat: no-repeat;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-content a:not(.btn):hover,
.sec-lead a:hover,
.crumbs a:hover,
.post-nav a:hover,
.card-title a:hover,
.comment-text a:hover {
    background-size: 100% 1px;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--side);
    border-left: 3px solid var(--accent);
    color: var(--ink);
}

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

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

pre {
    padding: 1.1rem 1.2rem;
    background: var(--deep);
    color: #E4EDF5;
    overflow-x: auto;
    border-radius: 4px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--hair);
}

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

th { background: var(--side); font-family: var(--display); }

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

.btn {
    display: inline-block;
    padding: 0.68rem 1.35rem;
    border-radius: 3px;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    line-height: 1.2;
    cursor: pointer;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.12s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(1px);
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
}

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

.btn-ghost { background: transparent; }

/* ---------- Шапка ---------- */

.site-head {
    background: var(--deep);
    color: #E8EEF4;
    padding: 1.15rem 0;
}

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

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

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

.brand-logo,
.brand-svg {
    display: block;
    width: 48px;
    height: 48px;
}

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

.brand-name {
    display: block;
    font-family: var(--display);
    font-size: 1.02rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: #FFFFFF;
    line-height: 1.35;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-desc {
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.45;
    color: #93A7BC;
    max-height: 2.9em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.8rem;
    background: transparent;
    border: 1px solid #33506E;
    border-radius: 3px;
    color: #E8EEF4;
    cursor: pointer;
    font-family: var(--display);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
}

.nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-2);
    margin: 3px 0;
}

.nav-toggle em { font-style: normal; }

.primary-nav { flex: 0 1 auto; }

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

.nav-list a {
    display: inline-block;
    color: #DCE7F1;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.05em;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.lab-strip {
    height: 3px;
    background: var(--accent);
}

/* ---------- Секции главной ---------- */

.site-main { display: block; }

.hero {
    position: relative;
    background: var(--deep);
    color: #EDF3F8;
    padding: 5rem 0 4.4rem;
    overflow: hidden;
}

.hero-grid {
    position: absolute;
    inset: 0;
    background-image:
        repeating-linear-gradient(to right, rgba(211, 221, 232, 0.1) 0 0.5px, transparent 0.5px 40px),
        repeating-linear-gradient(to bottom, rgba(211, 221, 232, 0.1) 0 0.5px, transparent 0.5px 40px);
    pointer-events: none;
}

.hero-inner { position: relative; }

.hero-kicker {
    margin: 0 0 1rem;
    font-family: var(--display);
    font-size: 0.82rem;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7F98B2;
}

.hero-title {
    margin: 0 0 1.2rem;
    font-size: 2.4rem;
    letter-spacing: 0.02em;
    color: #FFFFFF;
}

.hero-accent {
    display: block;
    margin-top: 0.65rem;
    font-size: 1.15rem;
    letter-spacing: 0.06em;
    color: var(--accent-2);
    font-weight: 600;
}

.hero-lead {
    max-width: 46rem;
    color: #C4D3E1;
    font-size: 1.03rem;
}

.hero-actions { margin: 1.7rem 0 0; }

.hero-actions .btn {
    border-color: var(--accent-2);
    background: transparent;
    color: #FFFFFF;
}

.hero-actions .btn:hover {
    background: var(--accent-2);
    color: var(--deep);
}

.hero-scan {
    display: block;
    margin-top: 2.6rem;
    height: 1px;
    width: 100%;
    background: linear-gradient(to right, rgba(0, 168, 150, 0) 0%, var(--accent-2) 35%, var(--accent) 65%, rgba(0, 119, 182, 0) 100%);
    animation: swlab-scan 5.5s ease-in-out infinite;
}

@keyframes swlab-scan {
    0%, 100% { opacity: 0.25; transform: scaleX(0.85); }
    50% { opacity: 0.9; transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .hero-scan { animation: none; opacity: 0.6; }
}

.fs { padding: var(--step) 0; background: var(--bg-alt); }

.fs-alt { background: var(--bg); }

.sec-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin-bottom: 0.9rem;
}

.sec-title h1,
.sec-title h2 {
    margin: 0;
    min-width: 0;
}

.sec-rule {
    flex: 1 1 auto;
    max-width: 33%;
    height: 1px;
    background: var(--accent);
    opacity: 0.55;
}

.sec-lead {
    max-width: 48rem;
    color: var(--muted);
    margin-bottom: 2.4rem;
}

.fs-more { margin: 2.2rem 0 0; }

.dot-sep {
    height: 2px;
    background-image: repeating-linear-gradient(to right, rgba(90, 108, 125, 0.3) 0 2px, transparent 2px 10px);
}

.empty-note { color: var(--muted); }

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

.tline {
    list-style: none;
    margin: 0;
    padding: 0 0 0 0.4rem;
    position: relative;
}

.tline::before {
    content: "";
    position: absolute;
    left: 96px;
    top: 8px;
    bottom: 8px;
    width: 1px;
    background: repeating-linear-gradient(to bottom, var(--muted) 0 10px, transparent 10px 18px);
}

.tline-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 0 2.2rem;
    padding-bottom: 2.1rem;
}

.tline-item:last-child { padding-bottom: 0; }

.tline-step {
    font-family: var(--display);
    font-size: 0.86rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.28rem;
}

.tline-item::after {
    content: "";
    position: absolute;
    left: 92px;
    top: 0.6rem;
    width: 9px;
    height: 9px;
    background: var(--accent);
}

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

.tline-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.14rem;
}

.tline-body p {
    margin: 0;
    color: var(--muted);
}

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

.stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 1.6rem;
}

.stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    background: var(--bg-alt);
    padding: 1.9rem 1.5rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(11, 26, 47, 0.08);
}

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

.stat-line {
    display: block;
    width: 42px;
    height: 1px;
    background: var(--hair);
    margin: 0.95rem 0;
}

.stat-label {
    color: var(--ink);
    font-size: 0.95rem;
    line-height: 1.5;
}

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

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

.topic {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    background: var(--bg-alt);
    padding: 1.6rem 1.35rem;
    border-radius: 3px;
    box-shadow: inset 0 0 0 1px var(--accent);
    color: var(--ink);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.topic:hover {
    transform: translateY(-4px);
    box-shadow: inset 0 0 0 2px var(--accent), 0 6px 18px rgba(11, 26, 47, 0.1);
}

.topic svg {
    display: block;
    width: 40px;
    height: 40px;
    margin-bottom: 1rem;
}

.topic-name {
    font-family: var(--display);
    font-size: 1.06rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    margin-bottom: 0.35rem;
}

.topic-note {
    font-size: 0.88rem;
    color: var(--muted);
    line-height: 1.5;
}

/* ---------- Раскладки внутренних страниц ---------- */

.page-wrap { padding: 2.2rem 0 4.2rem; }

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

.layout-single { display: block; }

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

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

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

.page-head h1 { font-size: 2.15rem; }

.archive-desc { color: var(--muted); }

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

.crumbs {
    margin-bottom: 1.8rem;
    font-size: 0.87rem;
    color: var(--muted);
}

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

.crumbs .sep { color: var(--muted); margin: 0 0.25rem; }

/* ---------- Карточки ---------- */

.card-stack {
    display: flex;
    flex-direction: column;
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border-radius: 4px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(11, 26, 47, 0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--accent-2);
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 2;
}

.card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 22px rgba(11, 26, 47, 0.13);
}

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

.card-thumb-wrap {
    position: static;
    width: 100%;
    overflow: hidden;
    background: var(--side);
}

.card-thumb-wrap a { display: block; }

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

.thumb-stub {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background-color: var(--side);
    background-image:
        repeating-linear-gradient(to right, rgba(90, 108, 125, 0.18) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(to bottom, rgba(90, 108, 125, 0.18) 0 1px, transparent 1px 20px);
}

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

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

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

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

.post-meta {
    font-size: 0.82rem;
    color: var(--muted);
    letter-spacing: 0.04em;
    margin-bottom: 0.85rem;
    padding-bottom: 0.85rem;
    border-bottom: 1px solid var(--hair);
}

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

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

.meta-dot {
    display: inline-block;
    width: 4px;
    height: 4px;
    background: var(--accent-2);
    vertical-align: middle;
    margin: 0 0.35rem;
}

.card-excerpt { color: var(--muted); font-size: 0.97rem; }

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

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

/* ---------- Запись и страница ---------- */

.entry {
    background: var(--bg-alt);
    padding: 2.2rem 2.4rem 2.4rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(11, 26, 47, 0.08);
}

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

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

.entry-head .post-meta { border-bottom: none; padding-bottom: 0; }

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

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

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

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

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

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.22rem 0.6rem;
    border-radius: 3px;
    background: var(--side);
    color: var(--accent);
}

.page-links { margin-top: 1.4rem; font-size: 0.9rem; }

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.2rem;
    margin-top: 1.8rem;
    font-size: 0.95rem;
}

.post-nav-next { text-align: right; }

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    background: var(--side);
    padding: 1.7rem 1.6rem;
    border-radius: 4px;
}

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

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

.sidebar .widget-title {
    font-size: 1.08rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid rgba(90, 108, 125, 0.22);
}

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

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

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

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }

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

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

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

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.8rem;
    text-align: center;
    border: 1px solid var(--hair);
    border-radius: 3px;
    background: var(--bg-alt);
    color: var(--accent);
    font-family: var(--display);
    font-size: 0.95rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

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

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

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

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

.comments .pagination,
.comments .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.4rem;
}

/* ---------- Формы ---------- */

.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.2rem 0;
}

.search-field,
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    flex: 1 1 220px;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    border: 1px solid var(--hair);
    border-radius: 3px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--sans);
    font-size: 0.97rem;
}

.search-field:focus,
.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.search-submit { flex: 0 0 auto; }

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

.comments {
    margin-top: 2.4rem;
    background: var(--bg-alt);
    padding: 2rem 2.2rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(11, 26, 47, 0.08);
}

.comment-list,
.comment-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.comment-list .children { margin-left: 1.6rem; padding-left: 1.2rem; border-left: 1px solid var(--hair); }

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

.comment-body {
    background: var(--bg);
    padding: 1.2rem 1.4rem;
    border-radius: 4px;
}

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

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

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

.comment-wait { font-size: 0.88rem; color: var(--muted); }

.comment-actions { font-size: 0.88rem; }

.comment-form { margin-top: 1.8rem; }

.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }

.comment-form textarea { width: 100%; }

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

.comment-notes { font-size: 0.86rem; color: var(--muted); }

.comment-reply-title { font-size: 1.3rem; }

.form-submit input[type="submit"] {
    display: inline-block;
    padding: 0.68rem 1.35rem;
    border-radius: 3px;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--display);
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.12s ease;
}

.form-submit input[type="submit"]:hover {
    background: var(--deep);
    border-color: var(--deep);
    transform: translateY(1px);
}

/* ---------- 404 ---------- */

.err-block {
    background: var(--bg-alt);
    padding: 2.6rem 2.4rem;
    border-radius: 4px;
    box-shadow: 0 2px 12px rgba(11, 26, 47, 0.08);
}

.err-code {
    display: block;
    font-family: var(--display);
    font-size: 4rem;
    line-height: 1;
    color: var(--accent);
    letter-spacing: 0.06em;
    margin-bottom: 0.6rem;
}

.err-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.4rem; }

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

.site-foot {
    background: var(--deep);
    color: #C8D6E4;
    padding: 3.2rem 0 1.8rem;
    margin-top: 3rem;
}

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

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

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

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
}

.site-foot .widget-title::before { background: var(--accent-2); }

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget { color: #C8D6E4; }

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

.site-foot .widget li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(200, 214, 228, 0.14);
}

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

.site-foot .widget a { color: #DCE7F1; }

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

.site-foot .post-date { color: #8FA5BB; font-size: 0.8rem; display: block; }

.foot-bottom {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(200, 214, 228, 0.16);
    font-size: 0.86rem;
    color: #8FA5BB;
}

.foot-bottom p { margin: 0; }

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--deep);
    color: #DCE7F1;
    border-top: 3px solid var(--accent);
}

.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    flex-wrap: wrap;
    padding: 1rem 0;
}

.cookie-inner p {
    margin: 0;
    font-size: 0.88rem;
    min-width: 0;
    flex: 1 1 320px;
    line-height: 1.55;
}

.cookie-inner .btn {
    border-color: var(--accent-2);
    background: var(--accent-2);
    color: var(--deep);
}

.cookie-inner .btn:hover {
    background: #FFFFFF;
    border-color: #FFFFFF;
    color: var(--deep);
}

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

@media (min-width: 760px) {
    .card { flex-direction: row; }

    .card-thumb-wrap {
        flex: 0 0 280px;
        width: auto;
        position: relative;
    }

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

    .card-thumb-wrap img {
        width: 100%;
        height: 100%;
        aspect-ratio: auto;
        object-fit: cover;
    }

    .thumb-stub { height: 100%; aspect-ratio: auto; }
}

@media (min-width: 961px) {
    body { font-size: 17px; }

    h1 { font-size: 3.125rem; letter-spacing: 0.03em; }

    h2 { font-size: 1.85rem; }

    .hero { padding: 6.4rem 0 5.4rem; }

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

    .hero-accent { font-size: 1.3rem; }

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

    .page-head h1 { font-size: 2.6rem; }
}

@media (max-width: 960px) {
    :root { --step: 3.4rem; }

    .home .shell { width: 92%; }

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

    .primary-nav {
        flex: 1 1 100%;
        display: none;
    }

    .primary-nav.is-open { display: block; }

    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .nav-list a {
        display: block;
        padding: 0.5rem 0;
        border-bottom: 1px solid rgba(200, 214, 228, 0.14);
    }

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

    .layout-single .content-area { width: 100%; }

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

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

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

    .brand-name { font-size: 0.98rem; }
}

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

    h1 { font-size: 1.85rem; }

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

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

    .hero-accent { font-size: 1.02rem; }

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

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

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

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

    .entry { padding: 1.6rem 1.3rem 1.8rem; }

    .comments { padding: 1.5rem 1.2rem; }

    .err-block { padding: 1.8rem 1.4rem; }

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

    .stat { padding: 1.5rem 1.3rem; }

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

    .topic { padding: 1.35rem 1.2rem; }

    .tline::before { left: 4px; }

    .tline-item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.35rem;
        padding-left: 1.7rem;
    }

    .tline-item::after { left: 0; top: 0.55rem; }

    .sec-title { flex-wrap: wrap; gap: 0.7rem; }

    .sec-rule { max-width: 100%; }

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

    .post-nav-next { text-align: left; }

    .cookie-inner { padding: 0.9rem 0; }

    .sidebar { padding: 1.4rem 1.2rem; }

    .comment-list .children { margin-left: 0.6rem; padding-left: 0.8rem; }
}
