/*
Theme Name: dds_poslednua-zemlya.ru
Author: Алексей Сомов
Description: Тема для информационного сайта о софте и оборудовании для видеопроизводства, монтажа и прямых эфиров.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: kadrbit
*/

:root {
    --bg: #F4F7FC;
    --bg-alt: #E9F0F8;
    --ink: #1E2D3B;
    --deep: #0B1E2B;
    --accent: #0077BE;
    --accent-2: #00A3C6;
    --muted: #7A8C9E;
    --line: #D0DCE8;
    --white: #FFFFFF;
    --head-font: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
    --body-font: "Helvetica Neue", Arial, "Segoe UI", Roboto, sans-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, rgba(30, 45, 59, 0.03) 0, rgba(30, 45, 59, 0.03) 1px, transparent 1px, transparent 9px);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -40px;
    width: 420px;
    height: 300px;
    z-index: 0;
    pointer-events: none;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 420 300'%3E%3Cg fill='%23000000' fill-opacity='0.035'%3E%3Cpath d='M40 120 h190 a26 26 0 0 1 26 26 v78 a26 26 0 0 1-26 26 H40 a26 26 0 0 1-26-26 v-78 a26 26 0 0 1 26-26 z'/%3E%3Cpath d='M262 160 l78-42 v128 l-78-42 z'/%3E%3Ccircle cx='96' cy='84' r='46'/%3E%3Ccircle cx='196' cy='92' r='36'/%3E%3Crect x='120' y='250' width='120' height='18' rx='6'/%3E%3C/g%3E%3C/svg%3E");
}

.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

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

p a,
.entry-content a,
.widget a {
    background-image: linear-gradient(currentColor, currentColor);
    background-position: 0 100%;
    background-repeat: no-repeat;
    background-size: 0 1px;
    transition: background-size .25s ease;
}

p a:hover,
.entry-content a:hover,
.widget a:hover {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    font-stretch: condensed;
    font-weight: 700;
    letter-spacing: .01em;
    line-height: 1.15;
    color: var(--ink);
    margin: 0 0 .7em;
}

h1 {
    font-size: 3.5rem;
}

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.4rem;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--ink);
    color: #EAF1F7;
    border-left: 4px solid var(--accent-2);
}

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

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.4em;
    font-size: .95rem;
}

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

th, td {
    padding: .6rem .8rem;
    text-align: left;
}

th {
    background: var(--bg-alt);
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .04em;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .9em;
}

pre {
    overflow-x: auto;
    padding: 1rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
}

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

.btn,
.btn-ghost {
    display: inline-block;
    font-family: var(--head-font);
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .88rem;
    font-weight: 700;
    padding: .72rem 1.5rem;
    border-radius: 2px;
    border: 1px solid var(--accent);
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
    background-image: none;
}

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

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

.btn-ghost {
    background: transparent;
    color: var(--accent);
}

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

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

.site-head {
    position: relative;
    background: var(--deep);
    color: #E6EEF6;
    border-top: 4px solid #14181C;
    background-image:
        radial-gradient(circle at 12% -2px, #6E7A85 2px, transparent 2.5px),
        radial-gradient(circle at 37% -2px, #6E7A85 2px, transparent 2.5px),
        radial-gradient(circle at 62% -2px, #6E7A85 2px, transparent 2.5px),
        radial-gradient(circle at 87% -2px, #6E7A85 2px, transparent 2.5px);
    background-repeat: no-repeat;
    background-size: 100% 8px;
    background-position: 0 0;
}

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

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

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

.brand-logo {
    display: block;
    max-height: 56px;
    width: auto;
}

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

.brand-title {
    display: block;
    font-family: var(--head-font);
    font-stretch: condensed;
    font-weight: 700;
    font-size: 1.05rem;
    line-height: 1.25;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #FFFFFF;
    max-width: 640px;
}

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

.brand-desc {
    display: block;
    margin-top: .35rem;
    font-size: .8rem;
    line-height: 1.5;
    color: #8FA3B5;
    max-width: 640px;
}

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

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

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

.main-nav a {
    display: inline-block;
    color: #D6E2EC;
    font-family: var(--head-font);
    font-stretch: condensed;
    text-transform: uppercase;
    letter-spacing: .09em;
    font-size: .92rem;
    padding: .3rem 0;
    border-bottom: 2px solid transparent;
}

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

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

.trail {
    padding: 1.1rem 0;
    font-size: .84rem;
    color: var(--muted);
    border-bottom: 1px solid var(--line);
    margin-bottom: 2.2rem;
}

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

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

.trail .sep {
    margin: 0 .4rem;
    color: var(--accent-2);
}

/* ---------- Раскладки ---------- */

.site-main {
    padding: 0 0 4rem;
}

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

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

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

.sidebar {
    min-width: 0;
}

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

.sec-title {
    position: relative;
    margin: 0 0 1.8rem;
    padding-left: 1.6rem;
    font-size: 1.9rem;
    text-transform: uppercase;
}

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

.sec-title span.tc {
    display: block;
    font-size: .78rem;
    letter-spacing: .22em;
    color: var(--accent-2);
    font-weight: 400;
    margin-bottom: .35rem;
}

.sec-title em {
    display: block;
    font-style: normal;
}

.sec-title::after {
    content: "";
    display: block;
    width: 96px;
    height: 2px;
    margin-top: .55rem;
    background: var(--accent);
}

.entry-content {
    counter-reset: tcode;
}

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

.entry-content h2::before {
    counter-increment: tcode;
    content: "[00:" counter(tcode, decimal-leading-zero) "] ";
    color: var(--accent-2);
    font-size: .62em;
    letter-spacing: .12em;
    vertical-align: .18em;
    margin-right: .45rem;
}

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

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

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

.card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
}

.card-inner {
    display: flex;
    flex-direction: row;
    align-items: stretch;
}

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

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

.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.35rem;
    margin: 0 0 .5rem;
}

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

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

.post-meta {
    font-size: .78rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--muted);
    font-family: var(--head-font);
    margin-bottom: .7rem;
}

.post-meta .meta-cat,
.post-meta time {
    color: var(--accent-2);
    background-image: none;
}

.post-meta .meta-sep {
    margin: 0 .4rem;
    color: var(--line);
}

.card-excerpt {
    color: #435565;
    font-size: .96rem;
    margin-bottom: 1rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
}

.sticky-flag {
    display: inline-block;
    font-family: var(--head-font);
    font-size: .7rem;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #fff;
    background: var(--accent);
    padding: .15rem .5rem;
    margin-bottom: .5rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: var(--white);
    color: var(--ink);
    font-family: var(--head-font);
    font-size: .9rem;
    letter-spacing: .06em;
    background-image: none;
    transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}

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

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

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

/* ---------- Главная ---------- */

.front-flow {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    padding-top: 2.4rem;
}

.front-section {
    padding: 3.4rem 0;
    border-bottom: 1px solid var(--line);
}

.front-section:last-child {
    border-bottom: 0;
}

/* Блок 1 — hero */

.fs-hero {
    position: relative;
    padding: 0;
    border-bottom: 1px solid var(--line);
    color: #fff;
    background: var(--deep);
    overflow: hidden;
}

.hero-media {
    position: relative;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 21 / 9;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(11, 30, 43, .94) 0%, rgba(11, 30, 43, .78) 48%, rgba(11, 30, 43, .38) 100%);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2.8rem 2.6rem;
}

.hero-kicker {
    font-family: var(--head-font);
    font-size: .8rem;
    letter-spacing: .28em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: .9rem;
}

.hero-title {
    color: #fff;
    font-size: 3.5rem;
    max-width: 22ch;
    margin-bottom: .7rem;
    text-transform: uppercase;
}

.hero-sub {
    color: #C4D4E1;
    max-width: 58ch;
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
}

.hero-osd {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem 1.4rem;
    padding: .7rem 1rem;
    border: 1px solid rgba(0, 163, 198, .5);
    background: rgba(11, 30, 43, .6);
    font-family: var(--head-font);
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9FC4D6;
}

.hero-osd span.rec {
    color: #FF5A5A;
}

.hero-osd a {
    color: #9FC4D6;
    background-image: none;
}

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

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

.fs-timeline {
    background: var(--bg-alt);
    padding: 3.4rem 2.2rem;
}

.tl {
    position: relative;
    margin: 0;
    padding: 0 0 0 2.2rem;
    list-style: none;
    border-left: 2px solid var(--accent);
}

.tl li {
    position: relative;
    padding: 0 0 1.9rem;
    min-width: 0;
}

.tl li:last-child {
    padding-bottom: 0;
}

.tl li::before {
    content: "";
    position: absolute;
    left: calc(-2.2rem - 7px);
    top: .45rem;
    width: 12px;
    height: 12px;
    background: var(--bg-alt);
    border: 2px solid var(--accent);
}

.tl-stage {
    display: block;
    font-family: var(--head-font);
    font-size: .78rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: .2rem;
}

.tl h3 {
    margin: 0 0 .35rem;
    font-size: 1.22rem;
}

.tl p {
    margin: 0;
    color: #435565;
    font-size: .96rem;
}

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

.fs-stats {
    background: var(--ink);
    color: #E7EEF5;
    padding: 3.2rem 2.2rem;
    border-bottom: 0;
}

.fs-stats .sec-title {
    color: #fff;
}

.fs-stats .sec-title::before {
    background: var(--accent-2);
}

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

.stat-cell {
    min-width: 0;
    padding-left: 1rem;
    border-left: 2px solid var(--accent);
}

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-stretch: condensed;
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.05;
    color: #fff;
}

.stat-num small {
    display: block;
    font-size: .95rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-top: .2rem;
}

.stat-cell p {
    margin: .6rem 0 0;
    font-size: .88rem;
    color: #A9BBCA;
}

/* Блок 4 — текст + иллюстрация */

.fs-tools {
    background: var(--bg-alt);
    padding: 3.4rem 2.2rem;
}

.duo {
    display: grid;
    grid-template-columns: minmax(0, 40fr) minmax(0, 60fr);
    gap: 2.6rem;
    align-items: center;
}

.duo-figure {
    margin: 0;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.4rem;
}

.duo-figure img {
    display: block;
    width: 100%;
    height: auto;
}

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

.duo-text ul {
    list-style: none;
    padding: 0;
    margin: 1.2rem 0 0;
}

.duo-text li {
    position: relative;
    padding-left: 1.5rem;
    margin-bottom: .6rem;
    font-size: .96rem;
}

.duo-text li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .6em;
    width: 8px;
    height: 8px;
    background: var(--accent);
}

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

.fs-latest {
    padding: 3.4rem 0;
}

.front-cta {
    margin-top: 2rem;
}

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

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

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

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

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

.entry-content img {
    height: auto;
}

.entry-tags {
    margin: 2rem 0 0;
    font-size: .82rem;
    font-family: var(--head-font);
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin-right: .4rem;
    padding: .2rem .6rem;
    border: 1px solid var(--line);
    color: var(--accent-2);
    background-image: none;
}

.entry-tags a:hover {
    border-color: var(--accent-2);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--head-font);
    font-size: .9rem;
    letter-spacing: .04em;
}

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

.sidebar .widget {
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--line);
    padding: 1.4rem 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.sidebar .widget-title {
    font-size: 1.1rem;
    text-transform: uppercase;
    letter-spacing: .06em;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
    border-bottom: 2px solid var(--accent);
    color: var(--ink);
}

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

.sidebar .widget li {
    padding: .5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: .94rem;
}

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

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

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

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

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

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

.search-form label {
    flex: 1 1 180px;
    min-width: 0;
}

.search-form input[type="search"] {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: .95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button {
    padding: .65rem 1.2rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .85rem;
    cursor: pointer;
}

.search-form button:hover {
    background: var(--deep);
    border-color: var(--deep);
}

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

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

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    text-transform: uppercase;
}

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

.comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.4rem;
    padding: 0 0 0 1.2rem;
    border-left: 2px solid var(--line);
}

.comment-item {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 1.2rem 1.3rem;
    margin-bottom: 1rem;
}

.comment-head {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: .5rem;
    font-family: var(--head-font);
    letter-spacing: .05em;
}

.comment-author {
    font-weight: 700;
    text-transform: uppercase;
    font-size: .95rem;
}

.comment-date {
    font-size: .78rem;
    color: var(--muted);
}

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

.comment-actions {
    margin-top: .6rem;
    font-size: .84rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .08em;
}

.comment-hold {
    color: var(--muted);
    font-size: .85rem;
}

.comment-form label {
    display: block;
    font-size: .84rem;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    margin-bottom: .3rem;
    color: var(--muted);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: .65rem .8rem;
    border: 1px solid var(--line);
    border-radius: 2px;
    background: #fff;
    font-family: var(--body-font);
    font-size: .95rem;
    color: var(--ink);
    margin-bottom: 1rem;
}

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

.comment-form .submit {
    padding: .7rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 2px;
    background: var(--accent);
    color: #fff;
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .08em;
    font-size: .88rem;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--deep);
    border-color: var(--deep);
}

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

.err-code {
    font-family: var(--head-font);
    font-size: 6rem;
    line-height: 1;
    color: var(--accent-2);
    margin: 0 0 .4rem;
}

.err-box {
    background: var(--white);
    border: 1px solid var(--line);
    padding: 2.2rem 2rem;
}

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

.site-foot {
    background: var(--deep);
    color: #C4D4E1;
    padding: 3rem 0 1.6rem;
    border-top: 4px solid #14181C;
    position: relative;
    z-index: 1;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding-bottom: 2.2rem;
    border-bottom: 1px solid #21384A;
}

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

.site-foot .widget {
    color: #C4D4E1;
    font-size: .93rem;
}

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    margin-bottom: .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--accent);
}

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

.site-foot .widget li {
    padding: .35rem 0;
}

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

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

.site-foot .widget .post-date {
    display: block;
    font-size: .76rem;
    color: #8FA3B5;
}

.site-foot p {
    margin: 0 0 .8rem;
}

.copyright {
    padding-top: 1.4rem;
    font-size: .82rem;
    color: #8FA3B5;
    font-family: var(--head-font);
    letter-spacing: .06em;
}

/* ---------- Cookie ---------- */

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

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

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

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

.cookie-accept {
    flex: 0 0 auto;
    padding: .55rem 1.3rem;
    border: 1px solid var(--accent-2);
    border-radius: 2px;
    background: transparent;
    color: var(--accent-2);
    font-family: var(--head-font);
    text-transform: uppercase;
    letter-spacing: .1em;
    font-size: .82rem;
    cursor: pointer;
}

.cookie-accept:hover {
    background: var(--accent-2);
    color: var(--deep);
}

/* ---------- Прочее ---------- */

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

.page-head .page-title {
    font-size: 2.4rem;
    text-transform: uppercase;
}

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

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

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

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

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

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

    .layout-single,
    .front-flow {
        width: 100%;
    }

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

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

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

    body::after {
        width: 260px;
        height: 190px;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

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

    .sec-title {
        font-size: 1.5rem;
    }

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

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: .8rem;
        border-top: 1px solid #21384A;
    }

    .main-nav li {
        border-bottom: 1px solid #21384A;
    }

    .main-nav a {
        display: block;
        padding: .7rem 0;
        border-bottom: 0;
    }

    .hero-overlay {
        position: static;
        padding: 1.8rem 1.4rem;
        background: linear-gradient(160deg, rgba(11, 30, 43, .96), rgba(11, 30, 43, .86));
    }

    .hero-media img {
        aspect-ratio: 16 / 9;
    }

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

    .fs-timeline,
    .fs-tools,
    .fs-stats {
        padding: 2.2rem 1.3rem;
    }

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

    .fs-latest {
        padding: 2.4rem 0;
    }

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

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

    .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.2rem 1.2rem 1.3rem;
    }

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

    .err-box {
        padding: 1.6rem 1.3rem;
    }

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

    body::after {
        display: none;
    }
}
