/*
Theme Name: dds_previouslyonhalo.com
Author: Полина Зубова
Description: Информационная тема в стиле японского минимализма с холодной палитрой для сайта о раскрасках, видеоиграх и детских материалах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pohalo
*/

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

:root {
    --bg: #F4F7FB;
    --bg-alt: #EBF0F8;
    --foot: #1F2937;
    --text: #1E293B;
    --accent: #1E4A6B;
    --accent-dark: #142F45;
    --accent2: #7C8BA0;
    --muted: #94A3B8;
    --line: #C9D4E2;
    --seal: #B0342B;
    --white: #FFFFFF;
    --head-font: "Jost", "Futura", "Century Gothic", "Avenir Next", "Trebuchet MS", sans-serif;
    --body-font: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text);
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.78;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(90deg, rgba(30, 74, 107, 0.05) 0 1px, transparent 1px 8px),
        linear-gradient(rgba(30, 74, 107, 0.035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30, 74, 107, 0.035) 1px, transparent 1px);
    background-size: auto, 34px 34px, 34px 34px;
    background-attachment: fixed;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    font-weight: 600;
    letter-spacing: 0.06em;
    line-height: 1.24;
    color: var(--text);
    margin: 2rem 0 0.9rem;
}

h1 { font-size: 2.4rem; }
h2 { font-size: 1.75rem; }
h3 { font-size: 1.32rem; }
h4 { font-size: 1.12rem; }

p { margin: 0 0 1.1rem; }

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

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

ul, ol { padding-left: 1.3rem; }
li { margin-bottom: 0.45rem; }

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 6px solid var(--accent);
    font-size: 1.05rem;
}

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    background: var(--bg-alt);
    font-size: 0.92em;
}

pre { padding: 1.1rem 1.3rem; overflow-x: auto; border-left: 4px solid var(--accent2); }

table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    background: var(--white);
    border: 2px solid var(--line);
}

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

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

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

/* =========================================================
   2. Контейнер и раскладки
   ========================================================= */

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

.front-shell { width: min(85%, 1240px); }

.page-main { display: block; padding: 2.2rem 0 3.5rem; }

.layout-single { display: block; }

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

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

.layout-with-sidebar > * { min-width: 0; }

/* =========================================================
   3. Ссылки в тексте
   ========================================================= */

.entry-content a,
.card-excerpt a,
.widget a,
.archive-note a,
.comment-text a {
    position: relative;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted rgba(30, 74, 107, 0.6);
}

.entry-content a::after,
.card-excerpt a::after,
.widget a::after,
.archive-note a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -1px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after,
.widget a:hover::after,
.archive-note a:hover::after,
.comment-text a:hover::after { transform: scaleX(1); }

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

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.85rem 1.7rem;
    color: var(--accent);
    background: transparent;
    border: 2px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: var(--white);
    transform: translateY(2px);
}

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

.btn-solid:hover,
.btn-solid:focus { background: var(--accent-dark); color: var(--white); }

.btn-ghost {
    border: 0;
    padding: 0.4rem 0;
    clip-path: none;
    letter-spacing: 0.14em;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: transparent;
    color: var(--accent-dark);
    transform: translateY(2px);
}

/* =========================================================
   5. Декоративные печати и заголовки секций
   ========================================================= */

.tambo-round {
    position: relative;
    flex: 0 0 auto;
    width: 26px;
    height: 26px;
    border: 2px solid var(--seal);
    border-radius: 50%;
}

.tambo-round::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: 50%;
    background: var(--seal);
    opacity: 0.55;
}

.tambo-square {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    overflow: hidden;
    border: 2px solid var(--seal);
    background: rgba(244, 247, 251, 0.92);
}

.tambo-square span {
    writing-mode: vertical-rl;
    font-family: var(--head-font);
    font-size: 7px;
    letter-spacing: 0.5px;
    color: var(--seal);
    line-height: 1;
}

.sec-head {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 0 0 0.7rem;
    padding-left: 7%;
}

.sec-head-right {
    justify-content: flex-end;
    padding-left: 0;
    padding-right: 5%;
}

.sec-title {
    display: inline-block;
    margin: 0;
    padding-bottom: 0.35rem;
    font-size: 1.95rem;
    letter-spacing: 0.1em;
    border-bottom: 2px solid var(--accent);
}

.sec-note {
    padding-left: 7%;
    color: var(--accent2);
    margin-bottom: 2.2rem;
}

.sec-note-right {
    padding-left: 0;
    padding-right: 5%;
    text-align: right;
}

.page-h1 { font-size: 2.1rem; }

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

.topbar {
    position: static;
    background: transparent;
    padding: 1.8rem 0 1.4rem;
    border-bottom: 1px solid rgba(124, 139, 160, 0.35);
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin-right: auto;
    max-width: 60%;
    min-width: 0;
}

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

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

.brand-text { display: flex; flex-direction: column; min-width: 0; }

.brand-name {
    font-family: var(--head-font);
    font-size: 1.02rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    color: var(--text);
    line-height: 1.3;
}

.brand-desc {
    font-size: 0.8rem;
    color: var(--accent2);
    line-height: 1.45;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 5px;
    background: transparent;
    border: 2px solid var(--accent);
    color: var(--accent);
    padding: 0.55rem 0.9rem;
    cursor: pointer;
    font-family: var(--head-font);
    letter-spacing: 0.12em;
    text-transform: uppercase;
    font-size: 0.72rem;
}

.nav-toggle-bar {
    display: block;
    width: 16px;
    height: 2px;
    background: var(--accent);
}

.nav-toggle-label { margin-left: 0.4rem; }

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

.nav-list li { margin: 0; }

.nav-list a {
    position: relative;
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.86rem;
    letter-spacing: 0.11em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--text);
    padding-bottom: 3px;
    border-bottom: 1px dotted transparent;
}

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

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

/* =========================================================
   7. Хлебные крошки
   ========================================================= */

.crumbs {
    font-size: 0.83rem;
    color: var(--muted);
    margin: 0 0 1.8rem;
    letter-spacing: 0.02em;
}

.crumbs a {
    color: var(--accent2);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent2);
}

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

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

/* =========================================================
   8. Секции главной
   ========================================================= */

.fs {
    position: relative;
    padding: 3.6rem 0;
}

.fs-num {
    position: absolute;
    top: 0.6rem;
    left: 0;
    z-index: 0;
    font-family: var(--head-font);
    font-size: 5.2rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: rgba(30, 74, 107, 0.09);
    pointer-events: none;
}

.fs > *:not(.fs-num) { position: relative; z-index: 1; }

.fs-alt {
    background-color: var(--bg-alt);
    background-image: linear-gradient(135deg, rgba(30, 74, 107, 0.1), rgba(30, 74, 107, 0) 58%);
    padding: 3.4rem 2.6rem;
    border-radius: 0;
}

.fs-dots {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 2.6rem;
}

.fs-dots i {
    display: block;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--accent2);
    opacity: 0.55;
}

/* Hero */

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 3rem;
    align-items: center;
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.14;
    letter-spacing: 0.02em;
    margin: 0 0 1.4rem;
}

.hero-title-plate {
    display: inline-block;
    background: var(--white);
    padding: 0.06em 0.32em;
    transform: rotate(-1.6deg);
    box-shadow: 0 0 0 1px rgba(30, 74, 107, 0.1);
}

.hero-lead { font-size: 1.05rem; }

.hero-sub { color: var(--accent2); }

.hero-art img {
    display: block;
    width: 100%;
    height: auto;
}

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

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

.tline::before {
    content: "";
    position: absolute;
    top: 6px;
    bottom: 6px;
    left: 50%;
    width: 2px;
    background: var(--line);
    transform: translateX(-50%);
}

.tline-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 72px minmax(0, 1fr);
    align-items: start;
    margin: 0 0 2rem;
}

.tline-dot {
    grid-column: 2;
    justify-self: center;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    background: var(--bg-alt);
    color: var(--accent);
    font-family: var(--head-font);
    font-size: 0.95rem;
}

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

.tline-item:nth-child(odd) .tline-card {
    grid-column: 1;
    text-align: right;
    padding-right: 0.4rem;
}

.tline-item:nth-child(even) .tline-card {
    grid-column: 3;
    padding-left: 0.4rem;
}

.tline-card h3 { margin: 0 0 0.4rem; font-size: 1.15rem; }

.tline-card p { margin: 0; color: #33445A; }

/* Карта тем */

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

.tile {
    display: block;
    min-width: 0;
    padding: 1.7rem 1.5rem;
    color: var(--text);
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 0;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.tile-ico { display: block; color: var(--accent); margin-bottom: 0.7rem; }

.tile-ico svg { display: block; width: 44px; height: 44px; }

.tile-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.06rem;
    letter-spacing: 0.08em;
    margin-bottom: 0.35rem;
}

.tile-desc { display: block; font-size: 0.9rem; color: var(--accent2); line-height: 1.55; }

.tile:hover,
.tile:focus {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--white);
    transform: translateY(-4px);
}

.tile:hover .tile-ico,
.tile:hover .tile-desc,
.tile:focus .tile-ico,
.tile:focus .tile-desc { color: var(--white); }

/* Цитата */

.quote-grid {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: start;
}

.quote-main {
    min-width: 0;
    padding-left: 2.4rem;
    border-left: 10px solid var(--accent);
}

.quote-main .tambo-square { margin-bottom: 1.2rem; }

.quote-text {
    margin: 0 0 1rem;
    padding: 0;
    background: none;
    border: 0;
    font-family: var(--head-font);
    font-size: clamp(1.6rem, 3.4vw, 4rem);
    line-height: 1.16;
    letter-spacing: 0.01em;
    color: var(--text);
}

.quote-author {
    font-size: 0.9rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--accent2);
    margin: 0;
}

.quote-aside { min-width: 0; font-size: 0.92rem; color: #33445A; }

.quote-aside a {
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px dotted var(--accent);
}

.quote-aside a:hover { border-bottom-style: solid; }

.quote-aside-note { color: var(--accent2); font-size: 0.85rem; }

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

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

.cards {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    min-width: 0;
    background: var(--white);
    border: 0;
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    border-radius: 0;
    transition: transform 0.2s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform 0.24s ease;
    z-index: 3;
}

.card:hover { transform: translateY(-6px); }

.card:hover::before { transform: scaleY(1); }

.card-thumb-wrap { position: relative; overflow: hidden; }

.card-thumb-wrap img,
.card img { display: block; }

.card-body {
    flex: 1;
    min-width: 0;
    padding: 1.6rem 1.7rem 1.8rem;
}

.card-title {
    margin: 0 0 0.5rem;
    font-size: 1.28rem;
    letter-spacing: 0.04em;
}

.card-title a {
    color: var(--text);
    text-decoration: none;
    border-bottom: 1px dotted transparent;
}

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

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

.card-excerpt { color: #33445A; }

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

.card-more { margin-top: 0.4rem; }

.card-seal {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 4;
}

.card-seal-flat { position: static; display: inline-flex; margin-bottom: 0.8rem; }

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

.sidebar {
    background: none;
    min-width: 0;
    padding-top: 0.5rem;
}

.sidebar .widget {
    background: var(--white);
    border-right: 2px solid var(--line);
    border-bottom: 2px solid var(--line);
    padding: 1.3rem 1.4rem;
    margin-bottom: 1.8rem;
    color: var(--text);
}

.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.4rem;
    font-size: 1.02rem;
    letter-spacing: 0.1em;
    color: var(--text);
    border-bottom: 2px solid var(--accent);
}

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

.sidebar .widget li {
    margin: 0 0 0.65rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.94rem;
}

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

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

.sidebar .widget .post-date,
.sidebar .widget .rss-date { display: block; color: var(--muted); font-size: 0.78rem; }

/* =========================================================
   11. Записи и страницы
   ========================================================= */

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

.entry-title {
    margin: 0 0 0.7rem;
    font-size: 2.3rem;
    letter-spacing: 0.03em;
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    font-size: 0.8rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: var(--muted);
}

.entry-cat { color: var(--accent2); }

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

.entry-thumb img { display: block; width: 100%; height: auto; }

.entry-content { font-size: 1.03rem; }

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

.entry-content ul li,
.entry-content ol li { margin-bottom: 0.5rem; }

.entry-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
}

.entry-tags a {
    font-size: 0.8rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    border: 1px solid var(--line);
    padding: 0.25rem 0.7rem;
}

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

.page-links { margin-top: 1.4rem; font-family: var(--head-font); letter-spacing: 0.06em; }

.archive-note { color: var(--accent2); margin-bottom: 1.8rem; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    margin: 2.6rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.55rem 0.85rem;
    text-align: center;
    font-family: var(--head-font);
    font-size: 0.86rem;
    letter-spacing: 0.06em;
    color: var(--accent);
    text-decoration: none;
    background: transparent;
    border: 2px solid var(--line);
    transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

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

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

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

.comments-area .nav-links {
    display: flex;
    gap: 0.8rem;
    margin-top: 1.4rem;
    font-family: var(--head-font);
    letter-spacing: 0.06em;
}

/* =========================================================
   13. Формы поиска и комментариев
   ========================================================= */

.searchform {
    display: flex;
    flex-wrap: wrap;
    gap: 0.7rem;
    margin: 1.4rem 0;
}

.searchform-input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 0.95rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 0;
}

.searchform-input:focus { outline: none; border-color: var(--accent); }

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

.comments-title { margin-top: 0; font-size: 1.4rem; }

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

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

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

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

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

.comment-date { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; }

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

.comment-actions a { color: var(--accent); text-decoration: none; border-bottom: 1px dotted var(--accent); }

.comment-form label {
    display: block;
    font-family: var(--head-font);
    font-size: 0.82rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    margin-bottom: 0.35rem;
    color: var(--accent2);
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--text);
    background: var(--white);
    border: 2px solid var(--line);
    border-radius: 0;
}

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

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

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

.comment-form .form-submit input[type="submit"],
.comment-form .submit {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    padding: 0.85rem 1.7rem;
    color: var(--white);
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 0;
    cursor: pointer;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
}

.comment-form .form-submit input[type="submit"]:hover { background: var(--accent-dark); }

/* =========================================================
   14. 404
   ========================================================= */

.notfound { padding: 1rem 0 2rem; }

.notfound-code {
    display: block;
    font-family: var(--head-font);
    font-size: 5.5rem;
    line-height: 1;
    letter-spacing: 0.1em;
    color: rgba(30, 74, 107, 0.16);
}

.notfound-actions { margin-top: 1.4rem; }

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

.site-foot {
    background: var(--foot);
    color: #D6DEE9;
    padding: 3rem 0 2rem;
    margin-top: 3rem;
}

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

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

.site-foot .widget { color: #D6DEE9; margin-bottom: 1.5rem; }

.site-foot .widget-title {
    margin: 0 0 0.9rem;
    padding-bottom: 0.4rem;
    font-size: 0.98rem;
    letter-spacing: 0.11em;
    color: var(--white);
    border-bottom: 2px solid rgba(214, 222, 233, 0.28);
}

.site-foot .widget p { color: #D6DEE9; font-size: 0.92rem; }

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

.site-foot .widget li { margin: 0 0 0.55rem; font-size: 0.92rem; }

.site-foot .widget a { color: #CFE0EF; border-bottom: 1px dotted rgba(207, 224, 239, 0.5); }

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

.site-foot .widget a::after { background: var(--white); }

.site-foot .post-date { color: #9FB0C4; }

.foot-line {
    margin-top: 2rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(214, 222, 233, 0.2);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    color: #A9B6C6;
}

/* =========================================================
   16. 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: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--foot);
    color: #E2E8F0;
    border-top: 3px solid var(--accent);
}

.cookie-text { margin: 0; font-size: 0.88rem; max-width: 780px; }

.cookie-accept {
    flex: 0 0 auto;
    color: var(--white);
    background: var(--accent);
    border-color: var(--accent);
}

.cookie-accept:hover { background: var(--white); color: var(--accent); border-color: var(--white); }

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

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

    .card-thumb-wrap {
        flex: 0 0 240px;
        align-self: stretch;
        margin-right: -24px;
        z-index: 2;
    }

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

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

    .card-body { padding-left: 2.9rem; }
}

@media (min-width: 961px) {
    .fs-timeline { margin-left: 4%; }
    .fs-quote { margin-left: 7%; }
    .fs-num { left: -1.4rem; }
}

@media (max-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .hero-title { font-size: 2.5rem; }
    .quote-grid { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.6rem; }
    .layout-single .content-area { width: 100%; }
    .front-shell { width: min(92%, 1180px); }
    .foot-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

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

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

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

    .nav-list {
        flex-direction: column;
        gap: 0.9rem;
        padding: 1rem 0 0.4rem;
    }

    .brand { max-width: 100%; }

    .tline-item { grid-template-columns: 44px minmax(0, 1fr); }
    .tline-dot { grid-column: 1; justify-self: start; }
    .tline-item:nth-child(odd) .tline-card,
    .tline-item:nth-child(even) .tline-card {
        grid-column: 2;
        text-align: left;
        padding-left: 1rem;
        padding-right: 0;
    }
    .tline::before { left: 22px; transform: none; }
}

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

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

    .sec-head,
    .sec-note { padding-left: 0; }

    .sec-head-right { justify-content: flex-start; padding-right: 0; }

    .sec-note-right { text-align: left; padding-right: 0; }

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

    .fs { padding: 2.4rem 0; }

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

    .fs-num { font-size: 3.4rem; }

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

    .quote-main { padding-left: 1.2rem; border-left-width: 6px; }

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

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

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

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

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

    .card-seal { position: absolute; top: 10px; left: 10px; }

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