/*
Theme Name: dds_djangojobsboard.com
Author: Алексей Комаров
Description: Информационно-сервисный портал о недвижимости и рабочих пространствах для IT-специалистов.
Version: 1.1
Text Domain: itdwell
*/

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

:root {
    --bg: #f4f7fb;
    --bg-alt: #e8eef5;
    --bg-alt-deep: #dde5ef;
    --head: #0f1b2d;
    --foot: #0a121f;
    --panel: #ffffff;
    --ink: #1b2a3a;
    --accent: #2f7df6;
    --accent-soft: #5fd0c7;
    --muted: #6b7f94;
    --line: #dde5ef;
    --radius: 12px;
    --radius-s: 8px;
    --shadow: 0 4px 16px rgba(15, 27, 45, 0.06);
    --shadow-up: 0 8px 24px rgba(15, 27, 45, 0.1);
    --font-head: "Inter Tight", "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
    --font-body: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, 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: radial-gradient(rgba(47, 125, 246, 0.04) 1.5px, transparent 1.6px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    -webkit-font-smoothing: antialiased;
}

body::before {
    content: "";
    position: fixed;
    top: -120px;
    right: -140px;
    width: 520px;
    height: 520px;
    border-radius: 50%;
    background: var(--accent-soft);
    opacity: 0.08;
    filter: blur(60px);
    pointer-events: none;
    z-index: 0;
}

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

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

.entry-body a:not(.btn),
.card-title a,
.widget a,
.crumbs a {
    background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.28s ease, color 0.2s ease;
}

.entry-body a:not(.btn):hover,
.card-title a:hover,
.widget a:hover,
.crumbs a:hover {
    background-size: 100% 1px;
}

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

h1 {
    font-size: 2.8rem;
}

h2 {
    font-size: 1.9rem;
}

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.2rem 1.6rem;
    background: var(--bg-alt);
    border-radius: var(--radius);
    font-size: 1.06rem;
}

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

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

pre {
    overflow-x: auto;
    padding: 1rem 1.2rem;
    background: var(--head);
    color: #dbe6f4;
    border-radius: var(--radius-s);
}

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

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

th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 600;
}

/* ==========================================================================
   2. Каркас
   ========================================================================== */

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

.site-main {
    position: relative;
    z-index: 1;
    padding: 2.4rem 0 3.4rem;
}

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

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

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

/* ==========================================================================
   3. Верхняя полоса, шапка
   ========================================================================== */

.topline {
    height: 3px;
    background: linear-gradient(90deg, var(--accent), var(--accent-soft));
}

.site-head {
    position: relative;
    z-index: 2;
    background: var(--head);
    color: #e8eef5;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.02rem;
    font-weight: 600;
    line-height: 1.35;
    color: #ffffff;
    max-height: 2.7em;
    overflow: hidden;
}

.brand-name a {
    color: inherit;
}

.brand-tagline {
    display: block;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #93a9c0;
    max-height: 2.9em;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    margin-left: auto;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(232, 238, 245, 0.35);
    border-radius: var(--radius-s);
    color: #e8eef5;
    font: inherit;
    font-size: 0.92rem;
    cursor: pointer;
}

.nav-toggle span {
    position: relative;
    display: block;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle span::before,
.nav-toggle span::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: currentColor;
}

.nav-toggle span::before {
    top: -6px;
}

.nav-toggle span::after {
    top: 6px;
}

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

.nav-main a {
    display: inline-block;
    padding: 0.35rem 0;
    color: #cdd9e7;
    font-family: var(--font-head);
    font-size: 0.99rem;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ==========================================================================
   4. Заголовки секций, кнопки, теги
   ========================================================================== */

.section-title,
.entry-title,
.block-title {
    position: relative;
    padding-left: 1.05rem;
}

.section-title::before,
.entry-title::before,
.block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: -0.12em;
    bottom: -0.12em;
    width: 3px;
    border-radius: 2px;
    background: var(--accent);
}

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    background: var(--accent);
    color: #ffffff;
    border: 1px solid var(--accent);
    border-radius: var(--radius-s);
    font-family: var(--font-head);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(47, 125, 246, 0.25);
}

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

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

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

.tag-chip {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: var(--bg-alt);
    color: var(--accent);
    border-radius: 4px;
    font-size: 0.78rem;
    line-height: 1.6;
    transition: background 0.2s ease, color 0.2s ease;
}

.tag-chip:hover {
    background: var(--accent);
    color: #ffffff;
}

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

.crumbs {
    margin: 0 0 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

.crumbs .sep {
    margin: 0 0.35rem;
    color: #a9bacb;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
    margin-bottom: 2.4rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.card::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: var(--accent-soft);
    opacity: 0;
    transition: opacity 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-up);
}

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

.card-thumb-wrap {
    display: block;
    overflow: hidden;
    border-radius: var(--radius) var(--radius) 0 0;
}

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

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

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

.card-meta {
    margin-bottom: 0.5rem;
    color: var(--muted);
    font-size: 0.82rem;
}

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

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

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

.card-excerpt {
    color: #3b4c5e;
    font-size: 0.96rem;
}

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

.card-more {
    display: inline-block;
    margin-top: 0.4rem;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.95rem;
}

.card-more:hover {
    color: #1a5fc4;
}

.list-empty {
    padding: 2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2rem 0 0.5rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.8rem;
    background: var(--panel);
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.95rem;
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 125, 246, 0.25);
}

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

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

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

.entry {
    padding: 2rem 2.2rem 2.4rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

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

.entry-title {
    margin-bottom: 0.6rem;
    font-size: 2.2rem;
}

.entry-meta {
    color: var(--muted);
    font-size: 0.87rem;
}

.entry-thumb {
    display: block;
    width: 100%;
    height: auto;
    margin-bottom: 1.6rem;
    border-radius: var(--radius);
    aspect-ratio: 16 / 7;
    object-fit: cover;
}

.entry-body h2,
.entry-body h3 {
    margin-top: 1.6em;
}

.entry-body img {
    border-radius: var(--radius-s);
}

.entry-foot {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--line);
}

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

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

.sidebar {
    min-width: 0;
}

.sidebar .widget {
    margin-bottom: 1.6rem;
    padding: 1.3rem 1.4rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    color: var(--ink);
}

.sidebar .widget-title {
    margin: 0 0 0.9rem;
    padding-left: 0.85rem;
    position: relative;
    color: var(--ink);
    font-size: 1.1rem;
}

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.05em;
    bottom: 0.05em;
    width: 3px;
    border-radius: 2px;
    background: var(--accent-soft);
}

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

.widget li {
    padding: 0.45rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
}

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

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

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

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

.widget p {
    margin: 0 0 0.8em;
    font-size: 0.95rem;
}

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

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

.search-form {
    display: flex;
    gap: 0.5rem;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: 2px solid rgba(47, 125, 246, 0.35);
    outline-offset: 1px;
}

.search-form button {
    padding: 0.62rem 1.1rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-s);
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 125, 246, 0.25);
}

.comments-area {
    margin-top: 1.8rem;
    padding: 1.8rem 2rem 2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.comments-title {
    margin-bottom: 1.2rem;
    font-size: 1.4rem;
}

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

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

.comment-item {
    margin-bottom: 1rem;
    padding: 1.1rem 1.2rem;
    background: var(--bg-alt);
    border-radius: var(--radius-s);
}

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

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

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

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

.comment-reply-link {
    font-size: 0.88rem;
}

.comment-respond {
    margin-top: 1.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    background: #ffffff;
    border: 1px solid var(--line);
    border-radius: var(--radius-s);
    color: var(--ink);
    font: inherit;
    font-size: 0.95rem;
}

.comment-form textarea {
    min-height: 140px;
    resize: vertical;
}

.comment-form label {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
    color: var(--muted);
}

.comment-form .form-submit input[type="submit"] {
    padding: 0.72rem 1.5rem;
    background: var(--accent);
    border: 1px solid var(--accent);
    border-radius: var(--radius-s);
    color: #ffffff;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .form-submit input[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(47, 125, 246, 0.25);
}

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

.front-shell {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.fs {
    margin-bottom: 2.6rem;
    padding: 2.5rem 2.2rem;
    border-radius: var(--radius);
}

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

.fs-alt {
    background: linear-gradient(180deg, var(--bg-alt), var(--bg-alt-deep));
}

/* — hero — */

.fs-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--head);
}

.fs-hero img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 16 / 7;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
}

.fs-hero-inner {
    position: relative;
    z-index: 1;
    padding: 4.2rem 2.6rem;
    background: linear-gradient(90deg, rgba(10, 18, 31, 0.86) 0%, rgba(10, 18, 31, 0.62) 60%, rgba(10, 18, 31, 0.35) 100%);
}

.fs-hero h1 {
    max-width: 22ch;
    margin-bottom: 0.7rem;
    color: #ffffff;
    font-size: 2.8rem;
}

.fs-hero p {
    max-width: 52ch;
    margin-bottom: 1.6rem;
    color: var(--bg-alt);
    font-size: 1.08rem;
}

/* — статистика — */

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

.fact {
    min-width: 0;
    padding: 0.4rem 1.2rem;
    border-left: 1px solid var(--bg-alt-deep);
    text-align: center;
}

.fact:first-child {
    border-left: none;
}

.fact-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
}

.fact-label {
    display: block;
    margin-top: 0.35rem;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.45;
}

/* — последние записи — */

.fs-latest {
    background: transparent;
    padding-left: 0;
    padding-right: 0;
}

.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.fs-head h2 {
    margin: 0;
}

/* — zigzag — */

.zz-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.2rem;
    align-items: center;
    margin-bottom: 2.4rem;
}

.zz-row:last-child {
    margin-bottom: 0;
}

.zz-row img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 10 / 7;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.zz-media {
    min-width: 0;
}

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

.zz-text h3 {
    font-size: 1.55rem;
}

.zz-row.flip .zz-media {
    order: 2;
}

.zz-link {
    font-family: var(--font-head);
    font-weight: 600;
}

/* — FAQ — */

.faq-item {
    margin-bottom: 0.9rem;
    padding: 0;
    background: var(--panel);
    border-radius: var(--radius-s);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.faq-item:last-child {
    margin-bottom: 0;
}

.faq-item > summary {
    position: relative;
    padding: 1.05rem 3rem 1.05rem 1.5rem;
    border-left: 3px solid transparent;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.08rem;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.faq-item > summary::-webkit-details-marker {
    display: none;
}

.faq-item > summary::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 1.4rem;
    width: 10px;
    height: 10px;
    margin-top: -6px;
    border-right: 2px solid var(--accent);
    border-bottom: 2px solid var(--accent);
    transform: rotate(45deg);
    transition: transform 0.25s ease;
}

.faq-item[open] > summary {
    border-left-color: var(--accent-soft);
    color: var(--accent);
}

.faq-item[open] > summary::after {
    transform: rotate(-135deg);
    margin-top: -2px;
}

.faq-answer {
    padding: 0 1.5rem 1.2rem;
    color: #46596c;
    font-size: 0.98rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

/* — CTA внутри секций — */

.fs-note {
    margin-top: 1.6rem;
    padding: 1.4rem 1.6rem;
    background: var(--head);
    border-radius: var(--radius);
    color: #cbd8e7;
}

.fs-note p {
    margin: 0 0 1rem;
}

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

.site-foot {
    position: relative;
    z-index: 1;
    margin-top: 2rem;
    padding: 3rem 0 1.6rem;
    background: var(--foot);
    color: #b9c8d9;
}

.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid rgba(232, 238, 245, 0.12);
}

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

.site-foot .widget {
    color: #b9c8d9;
    font-size: 0.95rem;
}

.site-foot .widget-title {
    margin: 0 0 0.9rem;
    color: #ffffff;
    font-size: 1.05rem;
}

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

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

.site-foot .widget li {
    border-bottom-color: rgba(232, 238, 245, 0.1);
}

.site-foot .widget .post-date {
    display: block;
    color: #8296ab;
    font-size: 0.8rem;
}

.foot-bottom {
    padding-top: 1.4rem;
    color: #7f93a8;
    font-size: 0.86rem;
}

.foot-contact a {
    color: var(--accent-soft);
}

/* ==========================================================================
   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: center;
    gap: 1rem;
    padding: 1rem 1.4rem;
    background: rgba(15, 27, 45, 0.96);
    color: #dde7f2;
    font-size: 0.92rem;
    box-shadow: 0 -6px 24px rgba(10, 18, 31, 0.25);
}

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

.cookie-banner button {
    padding: 0.55rem 1.3rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-s);
    color: #ffffff;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-banner button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(47, 125, 246, 0.25);
}

/* ==========================================================================
   14. Страница 404 и поиск
   ========================================================================== */

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

.page-head h1 {
    font-size: 2.2rem;
    margin-bottom: 0.4rem;
}

.page-head p {
    margin: 0;
    color: var(--muted);
}

.notfound {
    padding: 2.2rem;
    background: var(--panel);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.notfound .search-form {
    margin: 1.2rem 0 1.4rem;
    max-width: 480px;
}

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

@media (max-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2rem;
    }

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

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

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

    .fact:nth-child(3) {
        border-left: none;
    }

    h1 {
        font-size: 2.2rem;
    }

    .fs-hero h1 {
        font-size: 2.1rem;
    }

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

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

    .head-inner {
        gap: 0.9rem;
    }

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

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

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

    .nav-main ul {
        flex-direction: column;
        gap: 0;
        padding-top: 0.6rem;
        border-top: 1px solid rgba(232, 238, 245, 0.15);
    }

    .nav-main li {
        border-bottom: 1px solid rgba(232, 238, 245, 0.08);
    }

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

    .fs {
        padding: 1.8rem 1.4rem;
        margin-bottom: 1.8rem;
    }

    .fs-hero-inner {
        padding: 2.4rem 1.4rem;
    }

    .fs-hero h1 {
        font-size: 1.75rem;
    }

    .fs-note {
        padding: 1.2rem 1.3rem;
    }

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

    .fact {
        border-left: none;
        padding: 0;
    }

    .zz-row {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.2rem;
    }

    .zz-row.flip .zz-media {
        order: 0;
    }

    .entry,
    .comments-area,
    .notfound {
        padding: 1.4rem 1.2rem 1.6rem;
    }

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

    h1 {
        font-size: 1.85rem;
    }

    h2 {
        font-size: 1.5rem;
    }

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

    .cookie-banner {
        justify-content: flex-start;
        padding: 0.9rem 1rem;
        font-size: 0.86rem;
    }
}
