/*
Theme Name: dds_disdecor.ru
Author: Денис Орлов
Description: Информационная тема о декоративном и светодиодном освещении. Холодная технологичная палитра, японский минимализм, асимметричная сетка.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: disdecor
*/

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

:root {
    --bg: #F2F5F9;
    --bg-alt: #FFFFFF;
    --ink: #1E293B;
    --dark: #111827;
    --accent: #0EA5E9;
    --accent-deep: #0284C7;
    --muted: #94A3B8;
    --line: #DCE4EE;
    --font-head: "Bahnschrift", "DIN Alternate", "Franklin Gothic Medium", "Segoe UI Semibold", "Segoe UI", system-ui, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48'%3E%3Crect x='0' y='0' width='3' height='3' fill='%230EA5E9' fill-opacity='0.10'/%3E%3Crect x='24' y='24' width='3' height='3' fill='%230EA5E9' fill-opacity='0.10'/%3E%3Crect x='24' y='0' width='1' height='1' fill='%230284C7' fill-opacity='0.10'/%3E%3Crect x='0' y='24' width='1' height='1' fill='%230284C7' fill-opacity='0.10'/%3E%3C/svg%3E");
}

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

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

p {
    margin: 0 0 1.1em;
}

a {
    color: var(--accent-deep);
}

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

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

.site-main {
    display: block;
    padding-bottom: 3rem;
}

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

/* =========================================================
   2. Кнопки и ссылки
   ========================================================= */

.btn {
    display: inline-block;
    padding: 0.78rem 1.6rem;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    text-decoration: none;
    color: #fff;
    background: var(--accent);
    border: 0;
    border-radius: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
    transition: background-color 0.2s ease, color 0.2s ease;
}

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

.btn-outline {
    background: transparent;
    color: var(--accent-deep);
    box-shadow: inset 0 0 0 2px var(--accent);
}

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

.entry-content a,
.card-excerpt a,
.widget .textwidget a,
.comment-text a {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
    transition: color 0.15s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.widget .textwidget a:hover,
.comment-text a:hover {
    color: var(--accent);
    text-decoration-style: solid;
}

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

.site-top {
    background: transparent;
    padding: 1.6rem 0 1.2rem;
    border-bottom: 1px solid var(--line);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1rem 1.6rem;
}

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

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

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.25;
    color: var(--ink);
}

.brand-desc {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.79rem;
    line-height: 1.4;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    padding: 0.55rem 1rem;
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent-deep);
    background: transparent;
    border: 0;
    box-shadow: inset 0 0 0 2px var(--accent);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    cursor: pointer;
}

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

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

.nav-list a {
    display: inline-block;
    padding: 0.3rem 0;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: color 0.15s ease, border-color 0.15s ease;
}

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

/* =========================================================
   4. Раскладки страниц
   ========================================================= */

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

.layout-single {
    display: block;
}

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

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

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

.sidebar {
    min-width: 0;
    background: var(--bg-alt);
    padding: 1.5rem 1.4rem;
    border-radius: 8px;
    box-shadow: 0 6px 18px rgba(30, 41, 59, 0.07);
    color: var(--ink);
}

/* =========================================================
   5. Хлебные крошки и заголовки страниц
   ========================================================= */

.breadcrumbs {
    margin-bottom: 1.4rem;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--muted);
}

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

.breadcrumbs a:hover {
    text-decoration: underline;
}

.breadcrumbs .sep {
    margin: 0 0.35rem;
    color: var(--muted);
}

.page-title,
.entry-title-single {
    margin: 0 0 1.1rem;
    font-size: clamp(1.9rem, 4.4vw, 3rem);
    background-image: linear-gradient(90deg, var(--accent) 0%, var(--dark) 62%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.archive-lead {
    margin: -0.4rem 0 1.6rem;
    color: var(--muted);
}

.sec-title {
    margin: 0 0 1.3rem;
    font-size: clamp(1.5rem, 3vw, 2.05rem);
}

.sec-title::before {
    content: "";
    display: block;
    width: 64px;
    height: 2px;
    margin-bottom: 0.9rem;
    background: var(--accent);
}

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

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

.cards-grid > * {
    min-width: 0;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--bg-alt);
    border-radius: 8px;
    overflow: hidden;
    border-top: 2px solid transparent;
    box-shadow: 0 8px 20px rgba(30, 41, 59, 0.08);
    transition: box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    box-shadow: 0 16px 34px rgba(30, 41, 59, 0.16);
    border-top-color: var(--accent);
}

.card-thumb {
    display: block;
    overflow: hidden;
}

.card-thumb a {
    display: block;
}

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

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

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

.card-title {
    margin: 0 0 0.7rem;
    font-size: 1.16rem;
    line-height: 1.3;
}

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

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

.card-excerpt {
    font-size: 0.94rem;
    color: #40536b;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    padding: 0.55rem 1.15rem;
    font-size: 0.9rem;
}

/* =========================================================
   7. Главная страница
   ========================================================= */

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

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

.sec-divider {
    line-height: 0;
    overflow: hidden;
}

.sec-divider svg {
    display: block;
    width: 100%;
    height: 54px;
}

/* --- Hero --- */

.hero {
    position: relative;
    overflow: hidden;
    padding: 4.6rem 0 4.4rem;
}

.hero-blob {
    position: absolute;
    top: -140px;
    left: -120px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: radial-gradient(circle at 50% 50%, var(--accent) 0%, var(--accent-deep) 60%, transparent 72%);
    opacity: 0.05;
    pointer-events: none;
}

.hero-art {
    position: absolute;
    top: 50%;
    left: -2%;
    width: min(52%, 620px);
    height: auto;
    transform: translateY(-50%);
    opacity: 0.85;
    -webkit-mask-image: radial-gradient(closest-side at 55% 50%, #000 55%, transparent 100%);
    mask-image: radial-gradient(closest-side at 55% 50%, #000 55%, transparent 100%);
    pointer-events: none;
}

.hero-inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.45fr);
    gap: 1.5rem;
}

.hero-copy {
    grid-column: 2;
    min-width: 0;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1rem;
    padding: 0.3rem 0.8rem;
    font-family: var(--font-head);
    font-size: 0.8rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #fff;
    background-image: linear-gradient(90deg, var(--accent), var(--accent-deep));
    clip-path: polygon(0 0, calc(100% - 9px) 0, 100% 9px, 100% 100%, 0 100%);
}

.hero-title {
    margin: 0 0 1rem;
    font-size: clamp(2.2rem, 6.2vw, 3.75rem);
    line-height: 1.04;
    background-image: linear-gradient(100deg, var(--accent) 0%, var(--dark) 58%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-text {
    max-width: 42rem;
    font-size: 1.05rem;
    color: #40536b;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.9rem;
    margin-top: 1.6rem;
}

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

.timeline {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 1.4rem 4rem;
}

.tl-line {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 90px;
    margin-left: -45px;
    line-height: 0;
    pointer-events: none;
}

.tl-line svg {
    display: block;
    width: 100%;
    height: 100%;
}

.tl-item {
    position: relative;
    z-index: 1;
    min-width: 0;
    padding: 1.15rem 1.35rem;
    background: var(--bg);
    clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 14px, 100% 100%, 0 100%);
}

.tl-item.tl-left {
    grid-column: 1;
}

.tl-item.tl-right {
    grid-column: 2;
}

.tl-mark {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.45rem;
    font-family: var(--font-head);
    font-size: 0.78rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent-deep);
}

.tl-shape {
    display: inline-block;
    width: 14px;
    height: 14px;
    background: var(--accent);
}

.tl-shape.circle {
    border-radius: 50%;
}

.tl-shape.triangle {
    clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.tl-shape.diamond {
    transform: rotate(45deg);
}

.tl-item h3 {
    margin: 0 0 0.4rem;
    font-size: 1.1rem;
}

.tl-item p {
    margin: 0;
    font-size: 0.94rem;
    color: #40536b;
}

/* --- Цитата --- */

.quote-wrap {
    margin-left: 8%;
}

.quote-box {
    min-width: 0;
    padding: 2.1rem 2.2rem 1.9rem 2.6rem;
    background: var(--bg-alt);
    border-left: 10px solid var(--accent);
    box-shadow: 0 10px 26px rgba(30, 41, 59, 0.07);
}

.quote-box p {
    margin: 0 0 1.2rem;
    font-family: var(--font-head);
    font-size: clamp(1.35rem, 3.4vw, 2.15rem);
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: var(--dark);
}

.quote-src {
    display: inline-block;
    padding: 0.42rem 1rem;
    font-size: 0.83rem;
    letter-spacing: 0.05em;
    color: #fff;
    background-image: linear-gradient(90deg, var(--accent), var(--accent-deep));
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
}

/* --- Мозаика --- */

.mosaic {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 185px;
    gap: 1.1rem;
}

.mosaic figure {
    position: relative;
    min-width: 0;
    margin: 0;
    overflow: hidden;
    border-left: 3px solid var(--accent-deep);
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 16px, 100% 100%, 0 100%);
}

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

.mosaic figcaption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0.7rem 0.9rem;
    font-size: 0.85rem;
    line-height: 1.35;
    color: #fff;
    background: linear-gradient(180deg, rgba(17, 24, 39, 0) 0%, rgba(17, 24, 39, 0.85) 65%);
}

.mosaic .m1 {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
}

.mosaic .m2 {
    grid-column: 3;
    grid-row: 1;
}

.mosaic .m3 {
    grid-column: 3;
    grid-row: 2;
}

.mosaic .m4 {
    grid-column: 1 / 4;
    grid-row: 3;
}

.front-actions {
    margin-top: 1.8rem;
}

/* =========================================================
   8. Контент записи и страницы
   ========================================================= */

.entry {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.9rem 2rem 2.1rem;
    box-shadow: 0 8px 22px rgba(30, 41, 59, 0.07);
}

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-left: 3px solid var(--accent-deep);
    clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%);
}

.entry-content h2 {
    margin-top: 1.9rem;
    font-size: 1.5rem;
}

.entry-content h2::before {
    content: "";
    display: block;
    width: 48px;
    height: 2px;
    margin-bottom: 0.75rem;
    background: var(--accent);
}

.entry-content h3 {
    margin-top: 1.6rem;
    font-size: 1.22rem;
}

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

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

.entry-content img {
    display: block;
    height: auto;
    border-left: 3px solid var(--accent-deep);
}

.entry-content blockquote {
    margin: 1.5em 0;
    padding: 1.1rem 1.3rem;
    background: var(--bg);
    border-left: 6px solid var(--accent);
}

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

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

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

.entry-content th {
    background: var(--bg);
    font-family: var(--font-head);
}

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

.entry-tags a {
    color: var(--accent-deep);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.6rem;
    font-size: 0.93rem;
}

.post-nav a {
    color: var(--accent-deep);
    text-decoration: none;
}

.post-nav a:hover {
    text-decoration: underline;
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0.5rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 46px;
    padding: 0 0.85rem;
    font-family: var(--font-head);
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--ink);
    text-decoration: none;
    background: var(--bg-alt);
    box-shadow: inset 0 0 0 1px var(--line);
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 0 100%);
    transition: background-color 0.18s ease, color 0.18s ease;
}

.pagination .page-numbers:hover {
    background: var(--accent);
    color: #fff;
    box-shadow: none;
}

.pagination .page-numbers.current {
    background: var(--accent-deep);
    color: #fff;
    box-shadow: none;
}

.pagination .page-numbers.dots {
    background: transparent;
    box-shadow: none;
    color: var(--muted);
}

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

.comments-area {
    margin-top: 2rem;
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.7rem 1.9rem 1.9rem;
    box-shadow: 0 8px 22px rgba(30, 41, 59, 0.07);
}

.comments-title {
    font-size: 1.35rem;
}

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

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

.comment-inner {
    padding: 1rem 1.15rem;
    margin-bottom: 0.9rem;
    background: var(--bg);
    border-left: 3px solid var(--accent);
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
}

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

.comment-actions a {
    color: var(--accent-deep);
    text-decoration: none;
}

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

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

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

input[type="text"]:focus,
input[type="email"]:focus,
input[type="search"]:focus,
textarea:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.comment-form .submit,
.search-form button {
    display: inline-block;
    padding: 0.7rem 1.5rem;
    font-family: var(--font-head);
    font-size: 0.96rem;
    font-weight: 600;
    color: #fff;
    background: var(--accent);
    border: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 0 100%);
}

.comment-form .submit:hover,
.search-form button:hover {
    background: var(--accent-deep);
}

.search-form {
    display: flex;
    gap: 0.6rem;
    align-items: stretch;
    margin: 0;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
}

/* =========================================================
   11. Виджеты
   ========================================================= */

.widget {
    margin-bottom: 1.7rem;
}

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

.widget-title {
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    letter-spacing: 0.01em;
}

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

.widget li {
    margin-bottom: 0.55rem;
    line-height: 1.45;
}

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

.sidebar .widget-title::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: 0.6rem;
    background: var(--accent);
}

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

.sidebar .widget a {
    color: var(--ink);
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
}

.sidebar .widget a:hover {
    color: var(--accent-deep);
    border-bottom-style: solid;
}

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

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

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

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

.foot-cols > * {
    min-width: 0;
}

.site-foot .widget-title {
    color: #FFFFFF;
}

.site-foot .widget-title::before {
    content: "";
    display: block;
    width: 40px;
    height: 2px;
    margin-bottom: 0.6rem;
    background: var(--accent);
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li,
.site-foot .textwidget {
    color: #C7D2E1;
    font-size: 0.95rem;
}

.site-foot .widget a {
    color: #E3EBF5;
    text-decoration: none;
    border-bottom: 1px dashed var(--accent);
}

.site-foot .widget a:hover {
    color: #6FD0F7;
    border-bottom-style: solid;
}

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

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(199, 210, 225, 0.18);
    font-size: 0.87rem;
    color: #93A5BC;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: var(--dark);
    color: #E3EBF5;
    font-size: 0.9rem;
    line-height: 1.5;
    box-shadow: 0 -8px 24px rgba(17, 24, 39, 0.25);
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
}

.cookie-banner a {
    color: #6FD0F7;
}

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

.error-box {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 2rem 2.1rem;
    box-shadow: 0 8px 22px rgba(30, 41, 59, 0.07);
}

.error-box .search-form {
    margin: 1.2rem 0 1.4rem;
    max-width: 520px;
}

.no-results {
    background: var(--bg-alt);
    border-radius: 8px;
    padding: 1.6rem 1.8rem;
    box-shadow: 0 8px 22px rgba(30, 41, 59, 0.07);
}

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

@media (max-width: 960px) {
    .nav-toggle {
        display: inline-block;
        margin-left: auto;
    }

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

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

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

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

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

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

    .hero-copy {
        grid-column: 1;
    }

    .hero-art {
        width: 62%;
        opacity: 0.35;
        left: auto;
        right: -8%;
    }

    .timeline {
        gap: 1.1rem;
    }

    .quote-wrap {
        margin-left: 0;
    }

    .mosaic {
        grid-auto-rows: 165px;
    }
}

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

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

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

    .shell-narrow {
        width: 92%;
    }

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

    .tl-line {
        display: none;
    }

    .tl-item.tl-left,
    .tl-item.tl-right {
        grid-column: 1;
    }

    .tl-item {
        padding: 1rem 1.15rem;
    }

    .quote-box {
        padding: 1.5rem 1.25rem 1.4rem 1.6rem;
        border-left-width: 8px;
    }

    .mosaic {
        grid-template-columns: minmax(0, 1fr);
        grid-auto-rows: 200px;
    }

    .mosaic .m1,
    .mosaic .m2,
    .mosaic .m3,
    .mosaic .m4 {
        grid-column: 1;
        grid-row: auto;
    }

    .entry,
    .comments-area,
    .error-box {
        padding: 1.3rem 1.15rem 1.5rem;
    }

    .sidebar {
        padding: 1.2rem 1.15rem;
    }

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

    .site-foot {
        padding: 2.4rem 0 1.4rem;
    }
}
