/*
Theme Name: dds_devinco.ru
Author: Алексей Громов
Description: Тема для независимого digital-обозрения: технологический минимализм с элементами лабораторного журнала.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: dvnco
*/

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

:root {
    --paper: #F2F5F9;
    --paper-alt: #E8EDF5;
    --white: #FFFFFF;
    --deep: #0B1C2C;
    --ink: #1E2A3A;
    --accent: #D94A4A;
    --accent-2: #3A7CA5;
    --muted: #6B7B8D;
    --rule: #D0D8E2;
    --shell: min(92%, 1180px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--paper);
    background-image:
        repeating-linear-gradient(0deg, rgba(30, 42, 58, 0.03) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(30, 42, 58, 0.03) 0 1px, transparent 1px 20px);
    color: var(--ink);
    font-family: "Inter", "Manrope", "Segoe UI", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

/* «Поле для заметок» — разлиновка по правому краю макета */
body::after {
    content: "";
    position: fixed;
    top: 0;
    right: 0;
    width: 46px;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    background-image:
        repeating-linear-gradient(180deg, rgba(58, 124, 165, 0.14) 0 1px, transparent 1px 34px),
        linear-gradient(90deg, rgba(58, 124, 165, 0.16) 0 1px, transparent 1px);
}

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

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 1px;
    transition: background-size .18s ease, color .18s ease;
}

a:hover,
a:focus {
    background-size: 100% 1px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: "Playfair Display", "Cormorant Garamond", Georgia, serif;
    color: var(--ink);
    line-height: 1.18;
    margin: 0 0 .7em;
    font-weight: 700;
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.01em;
}

h2 {
    font-size: 2.05rem;
    letter-spacing: .01em;
    font-variant-caps: small-caps;
}

h3 {
    font-size: 1.5rem;
    font-variant-caps: small-caps;
}

h4 {
    font-size: 1.2rem;
    font-variant-caps: small-caps;
}

p {
    margin: 0 0 1.1em;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.2rem 1.6rem;
    border-left: 4px solid var(--accent);
    background: var(--paper-alt);
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.22rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    font-size: .92em;
    background: var(--paper-alt);
}

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

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

th, td {
    border: 1px solid var(--rule);
    padding: .6rem .8rem;
    text-align: left;
}

th {
    background: var(--paper-alt);
    font-weight: 600;
}

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

.skip-link {
    position: absolute;
    left: -9999px;
}

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

.btn {
    display: inline-block;
    border-radius: 0;
    padding: .74rem 1.5rem;
    font-family: "Inter", Arial, sans-serif;
    font-size: .92rem;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    cursor: pointer;
    background-image: none;
    transition: background-color .12s linear, box-shadow .12s linear, color .12s linear, border-color .12s linear;
}

.btn:hover,
.btn:focus {
    background: #B93B3B;
    border-color: #B93B3B;
    color: #fff;
    box-shadow: 0 3px 0 rgba(11, 28, 44, .35);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--ink);
    color: var(--ink);
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: var(--ink);
    color: var(--white);
    box-shadow: none;
}

.btn-light {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, .7);
    color: #fff;
}

.btn-light:hover,
.btn-light:focus {
    background: #fff;
    color: var(--deep);
    box-shadow: none;
}

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

.top {
    background: var(--white);
    border-bottom: 1px solid var(--rule);
    position: relative;
}

.top::before {
    content: "";
    display: block;
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0 22%, var(--accent-2) 22% 34%, transparent 34%);
}

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

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

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

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

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

.brand-name {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.16rem;
    font-weight: 700;
    line-height: 1.28;
    color: var(--ink);
    background-image: none;
}

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

.brand-desc {
    display: block;
    margin-top: .3rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    border: 1px solid var(--ink);
    background: transparent;
    color: var(--ink);
    padding: .5rem .9rem;
    font-size: .85rem;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

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

.main-nav a {
    display: inline-block;
    color: var(--ink);
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .06em;
    text-transform: uppercase;
    padding: .25rem 0;
}

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

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

.page-body {
    padding: 2.6rem 0 3.4rem;
    position: relative;
    z-index: 1;
}

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

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

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

.trace {
    font-size: .8rem;
    color: var(--muted);
    letter-spacing: .03em;
    margin-bottom: 1.4rem;
    padding-bottom: .7rem;
    border-bottom: 1px solid var(--rule);
}

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

.trace .sep {
    color: var(--rule);
    margin: 0 .3rem;
}

/* Заголовки страниц и секций: метка фокуса + линия + индекс */

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

.page-title,
.section-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: .5rem;
}

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

.title-row {
    display: flex;
    align-items: baseline;
    gap: 1.2rem;
    border-bottom: 1px solid var(--accent);
    padding-bottom: .5rem;
    margin-bottom: 1.6rem;
}

.title-row .section-title {
    margin: 0;
    flex: 1 1 auto;
    min-width: 0;
}

.title-index {
    flex: 0 0 auto;
    font-size: .74rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--muted);
    white-space: nowrap;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--white);
    border: 1px solid var(--rule);
    border-left: 3px solid var(--rule);
    border-radius: 0;
    overflow: hidden;
    transition: transform .12s linear, border-color .12s linear;
}

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

.card-thumb {
    display: block;
    background: var(--paper-alt);
    background-image: none;
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.05);
    transition: filter .18s linear;
}

.card:hover .card-thumb img {
    filter: grayscale(70%) contrast(1.05);
}

.card-stub {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(45deg, rgba(58, 124, 165, .1) 0 2px, transparent 2px 12px),
        var(--paper-alt);
}

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

.card-title {
    font-size: 1.24rem;
    margin: 0 0 .5rem;
    font-variant-caps: normal;
}

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

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

.card-meta {
    font-size: .76rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: .8rem;
}

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

.card-excerpt {
    font-size: .94rem;
    color: #3B4A5C;
    margin-bottom: 1.1rem;
}

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

.card-excerpt p:last-child {
    margin-bottom: 0;
}

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    background-image: none;
}

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--rule);
}

.pager .page-numbers {
    display: inline-block;
    padding: .5rem .9rem;
    border: 1px solid var(--rule);
    background: var(--white);
    color: var(--ink);
    font-size: .86rem;
    font-weight: 600;
    letter-spacing: .04em;
    background-image: none;
    border-radius: 0;
}

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

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

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

/* =========================================================
   7. Сайдбар
   ========================================================= */

.sidebar {
    min-width: 0;
    background: transparent;
}

.side-block {
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 3px solid var(--accent-2);
    padding: 1.2rem 1.3rem 1.4rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

.side-title {
    font-size: 1.05rem;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid var(--rule);
    color: var(--ink);
}

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

.side-block li {
    padding: .5rem 0 .5rem .9rem;
    border-bottom: 1px dashed var(--rule);
    position: relative;
    font-size: .93rem;
    color: var(--ink);
}

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

.side-block li:last-child {
    border-bottom: none;
}

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

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

.side-block .post-date {
    display: block;
    font-size: .74rem;
    color: var(--muted);
    letter-spacing: .05em;
    text-transform: uppercase;
}

/* =========================================================
   8. Форма поиска
   ========================================================= */

.find {
    display: flex;
    gap: 0;
    width: 100%;
}

.find input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--rule);
    border-right: none;
    background: var(--white);
    padding: .7rem .9rem;
    font-family: inherit;
    font-size: .92rem;
    color: var(--ink);
    border-radius: 0;
}

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

.find button {
    flex: 0 0 auto;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    padding: .7rem 1.2rem;
    font-family: inherit;
    font-size: .84rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 0;
}

.find button:hover {
    background: #B93B3B;
    border-color: #B93B3B;
}

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

.front-section {
    padding: 3.6rem 0;
    position: relative;
}

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

.fs-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* «Разрыв страницы» между секциями */
.tear {
    height: 14px;
    border: none;
    margin: 0;
    background-image: linear-gradient(135deg, var(--accent-2) 0 1px, transparent 1px);
    background-size: 14px 14px;
    background-repeat: repeat-x;
    opacity: .55;
}

/* 9.1 Hero */

.hero {
    background-color: var(--deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px);
    color: #fff;
    padding: 4.6rem 0 4rem;
    position: relative;
    overflow: hidden;
}

.hero-lens {
    position: absolute;
    right: -60px;
    bottom: -80px;
    width: 460px;
    height: 460px;
    opacity: .06;
    pointer-events: none;
}

.hero-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    position: relative;
    z-index: 1;
    padding: 0 1.2rem;
    text-align: center;
}

.hero h1 {
    color: #fff;
    margin-bottom: 1rem;
}

.hero h1 .flag {
    color: var(--accent);
}

.hero-lead {
    max-width: 62ch;
    margin: 0 auto 1.8rem;
    font-size: 1.06rem;
    color: #D6DFE8;
}

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

.hero-stamp {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
    font-size: .76rem;
    letter-spacing: .2em;
    text-transform: uppercase;
    color: #8FA3B5;
}

/* 9.2 Сетка карточек-рубрик */

.tiles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.4rem;
}

.tile {
    min-width: 0;
    display: block;
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 1.6rem 1.4rem;
    color: var(--ink);
    background-image: none;
    transition: background-color .12s linear, border-color .12s linear;
}

.tile:hover {
    background: var(--paper-alt);
    border-color: var(--accent);
    color: var(--ink);
}

.tile svg {
    width: 40px;
    height: 40px;
    color: var(--accent-2);
    margin-bottom: 1rem;
    transition: color .12s linear;
}

.tile:hover svg {
    color: var(--accent);
}

.tile-name {
    display: block;
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.32rem;
    font-weight: 700;
    margin-bottom: .5rem;
}

.tile-text {
    display: block;
    font-size: .9rem;
    color: #45566A;
    line-height: 1.6;
}

/* 9.3 Цитата */

.quote-band {
    background-color: var(--deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px);
    color: #fff;
}

.quote-plate {
    display: flex;
    gap: 1.6rem;
    align-items: flex-start;
    padding: 2.6rem 2.2rem;
}

.quote-bar {
    flex: 0 0 4px;
    align-self: stretch;
    background: var(--accent);
}

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

.quote-text {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 1.92rem;
    line-height: 1.42;
    margin: 0 0 1.2rem;
    color: #fff;
}

.quote-sign {
    font-size: .78rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: #9AAEBF;
    font-variant-caps: small-caps;
}

/* 9.4 Таймлайн */

.timeline {
    position: relative;
    padding: 1rem 0;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 2px;
    margin-left: -1px;
    background: var(--accent-2);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem 2.2rem 0;
    min-width: 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
    padding: 0 0 2.2rem 2.6rem;
    text-align: left;
}

.tl-item:nth-child(odd) {
    text-align: right;
}

.tl-item::after {
    content: "";
    position: absolute;
    top: .5rem;
    width: 12px;
    height: 12px;
    background: var(--accent);
    border: 2px solid var(--paper-alt);
}

.tl-item:nth-child(odd)::after {
    right: -7px;
}

.tl-item:nth-child(even)::after {
    left: -7px;
}

.tl-date {
    display: block;
    font-size: .76rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent-2);
    margin-bottom: .35rem;
    font-weight: 700;
}

.tl-title {
    font-size: 1.18rem;
    margin: 0 0 .35rem;
}

.tl-text {
    font-size: .92rem;
    color: #45566A;
    margin: 0;
}

/* 9.5 Последние записи на главной */

.latest-foot {
    margin-top: 2rem;
    text-align: center;
}

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

.entry {
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 2rem 2.2rem 2.4rem;
}

.entry-meta {
    font-size: .78rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 1.4rem;
    padding-bottom: .8rem;
    border-bottom: 1px solid var(--rule);
}

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

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

.entry-cover img {
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(1.05);
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    position: relative;
    padding-left: 1rem;
    margin-top: 1.8em;
}

.entry-content h2::before,
.entry-content h3::before,
.entry-content h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: .16em;
    bottom: .16em;
    width: 4px;
    background: var(--accent);
}

.entry-content a {
    font-style: italic;
}

.entry-content img {
    height: auto;
}

.entry-tags {
    margin-top: 2rem;
    padding-top: 1rem;
    border-top: 1px solid var(--rule);
    font-size: .82rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin-right: .4rem;
    color: var(--accent-2);
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 1.6rem;
    font-size: .86rem;
}

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

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

.talk {
    margin-top: 2rem;
    background: var(--white);
    border: 1px solid var(--rule);
    padding: 1.8rem 2rem 2rem;
}

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

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

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

.talk-body {
    border: 1px solid var(--rule);
    border-left: 3px solid var(--accent-2);
    padding: 1rem 1.2rem;
    background: var(--paper);
}

.talk-head {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: .5rem;
    font-size: .82rem;
    letter-spacing: .04em;
}

.talk-author {
    font-weight: 700;
    text-transform: uppercase;
}

.talk-date {
    color: var(--muted);
}

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

.talk-reply {
    margin-top: .6rem;
    font-size: .8rem;
    text-transform: uppercase;
    letter-spacing: .06em;
}

.talk-hold {
    font-size: .82rem;
    color: var(--accent);
}

.comment-form label {
    display: block;
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    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%;
    border: 1px solid var(--rule);
    background: var(--white);
    padding: .7rem .9rem;
    font-family: inherit;
    font-size: .95rem;
    color: var(--ink);
    border-radius: 0;
    margin-bottom: 1rem;
}

.comment-form .submit {
    border-radius: 0;
    padding: .74rem 1.5rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #fff;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 600;
    letter-spacing: .05em;
    text-transform: uppercase;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: #B93B3B;
    border-color: #B93B3B;
}

/* =========================================================
   12. 404 и пустые состояния
   ========================================================= */

.blank {
    background: var(--white);
    border: 1px solid var(--rule);
    border-top: 4px solid var(--accent);
    padding: 2.4rem 2.2rem;
}

.blank-code {
    font-family: "Playfair Display", Georgia, serif;
    font-size: 4.6rem;
    line-height: 1;
    color: var(--accent);
    margin: 0 0 .4rem;
}

.blank .find {
    max-width: 460px;
    margin: 1.4rem 0;
}

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

.bottom {
    background-color: var(--deep);
    background-image:
        repeating-linear-gradient(0deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px),
        repeating-linear-gradient(90deg, rgba(255, 255, 255, .05) 0 1px, transparent 1px 20px);
    color: #C6D2DD;
    padding: 3rem 0 1.6rem;
    position: relative;
    z-index: 1;
}

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

.bottom-cols > div {
    min-width: 0;
}

.foot-block {
    margin-bottom: 1.6rem;
    color: #C6D2DD;
    font-size: .92rem;
}

.foot-block p {
    color: #C6D2DD;
}

.foot-title {
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 .9rem;
    padding-bottom: .5rem;
    border-bottom: 1px solid rgba(255, 255, 255, .16);
}

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

.foot-block li {
    padding: .35rem 0 .35rem .9rem;
    position: relative;
    font-size: .92rem;
    color: #C6D2DD;
}

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

.foot-block a {
    color: #E3EAF1;
}

.foot-block a:hover {
    color: #fff;
}

.foot-block .post-date {
    display: block;
    font-size: .74rem;
    color: #8FA3B5;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.foot-mail {
    color: #E3EAF1;
}

.copyright {
    margin-top: 1.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(255, 255, 255, .16);
    font-size: .8rem;
    letter-spacing: .05em;
    color: #8FA3B5;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 1.4rem;
    flex-wrap: wrap;
    justify-content: center;
    background: var(--deep);
    border-top: 3px solid var(--accent);
    color: #E3EAF1;
    padding: 1rem 1.6rem;
    font-size: .88rem;
}

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

.cookie-banner a {
    color: #fff;
    text-decoration: underline;
}

.cookie-banner button {
    flex: 0 0 auto;
}

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

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

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

    .layout-single,
    .fs-inner,
    .hero-inner {
        width: 100%;
    }

    body::after {
        display: none;
    }
}

@media (max-width: 780px) {
    .nav-toggle {
        display: inline-block;
        order: 2;
    }

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

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

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        border-top: 1px solid var(--rule);
        padding-top: .8rem;
    }

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

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

    h1 {
        font-size: 2.05rem;
    }

    h2 {
        font-size: 1.6rem;
    }

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

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

    .hero-inner {
        padding: 0 .4rem;
    }

    .hero-lens {
        width: 280px;
        height: 280px;
        right: -70px;
        bottom: -70px;
    }

    .entry,
    .talk {
        padding: 1.4rem 1.2rem 1.6rem;
    }

    .quote-plate {
        padding: 1.8rem 1.4rem;
        gap: 1rem;
    }

    .quote-text {
        font-size: 1.36rem;
    }

    .timeline::before {
        left: 6px;
    }

    .tl-item,
    .tl-item:nth-child(even),
    .tl-item:nth-child(odd) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 1.8rem 1.8rem;
        text-align: left;
    }

    .tl-item:nth-child(odd)::after,
    .tl-item:nth-child(even)::after {
        left: 0;
        right: auto;
    }

    .blank {
        padding: 1.6rem 1.2rem;
    }

    .cookie-banner {
        padding: .9rem 1rem;
        gap: .8rem;
        text-align: left;
    }
}
