/*
Theme Name: dds_thescreenlounge.com
Theme URI: https://thescreenlounge.com/
Author: Виктория Ларина
Description: Тема для информационного сайта о кино 1960-х и 1970-х годов. Холодная кинотечная палитра, строгая сетка, плёночные акценты.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: slounge
*/

:root {
    --bg: #F0F4F8;
    --alt: #E2E8F0;
    --paper: #FFFFFF;
    --head: #0B1A2F;
    --foot: #0F233A;
    --ink: #1E293B;
    --accent: #3B82F6;
    --steel: #94A3B8;
    --muted: #64748B;
    --title-font: "Manrope", "Inter", "Segoe UI", "Arial Narrow", sans-serif;
    --body-font: "Roboto", "Open Sans", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--body-font);
    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='420' height='480' viewBox='0 0 420 480'%3E%3Cpolygon points='210,10 400,120 400,360 210,470 20,360 20,120' fill='%233B82F6' fill-opacity='0.03'/%3E%3C/svg%3E"),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='340' height='390' viewBox='0 0 340 390'%3E%3Cpolygon points='170,8 325,98 325,292 170,382 15,292 15,98' fill='%230B1A2F' fill-opacity='0.03'/%3E%3C/svg%3E");
    background-repeat: no-repeat, no-repeat;
    background-position: right -120px top 60px, left -110px bottom 40px;
    background-attachment: fixed, fixed;
}

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

p { margin: 0 0 1.1em; }

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--title-font);
    color: var(--head);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.18;
    margin: 0 0 0.7em;
}

h1 { font-size: 2.1rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }

/* ---------- Контейнер ---------- */
.shell {
    width: min(92%, 1180px);
    margin-inline: auto;
}

/* ---------- Верхняя полоса плёнки ---------- */
.reel-top {
    height: 3px;
    background: var(--accent);
}

/* ---------- Шапка ---------- */
.site-head {
    background: var(--head);
    color: #E8EEF6;
    border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

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

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

.brand-mark { display: block; line-height: 0; flex: 0 0 auto; }
.brand-mark img { display: block; max-height: 56px; width: auto; }
.brand-text { min-width: 0; }

.brand-name {
    display: block;
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.06rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    text-decoration: none;
}

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

.brand-desc {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A8BAD0;
}

/* ---------- Навигация ---------- */
.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--steel);
    color: #E8EEF6;
    font-family: var(--title-font);
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 0.6rem 1rem;
    cursor: pointer;
    transform: skewX(-2deg);
}

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

.main-nav a {
    position: relative;
    display: inline-block;
    color: #DCE6F2;
    text-decoration: none;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 0.95rem;
    padding-bottom: 4px;
}

.main-nav a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 2px;
    background: var(--accent);
    transform: scaleY(0);
    transform-origin: bottom;
    opacity: 0;
    transition: transform 0.25s ease, opacity 0.25s ease;
}

.main-nav a:hover { color: #FFFFFF; }
.main-nav a:hover::after { transform: scaleY(1); opacity: 1; }

.main-nav .current-menu-item > a { color: #FFFFFF; }
.main-nav .current-menu-item > a::after { transform: scaleY(1); opacity: 1; }

/* ---------- Хлебные крошки ---------- */
.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

.breadcrumbs a { color: var(--muted); text-decoration: none; }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { color: var(--steel); margin: 0 0.35rem; }

/* ---------- Основная область ---------- */
.site-main { padding: 1.6rem 0 4rem; }

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

.layout-single { display: block; }

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

.layout-with-sidebar .content-area { min-width: 0; }

/* ---------- Заголовки секций ---------- */
.sec-title {
    position: relative;
    padding-left: 74px;
    margin-bottom: 1.6rem;
}

.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 54px;
    height: 1px;
    background: var(--steel);
}

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    padding: 0.8rem 1.7rem;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 0.92rem;
    letter-spacing: 0.02em;
    text-decoration: none;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    transform: skewX(-2deg);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.btn > span { display: inline-block; transform: skewX(2deg); }

.btn:hover {
    background: #FFFFFF;
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), 0 0 20px rgba(59, 130, 246, 0.34);
}

.btn-ghost {
    background: transparent;
    color: var(--head);
    border-color: var(--steel);
}

.btn-ghost:hover {
    background: var(--accent);
    color: #FFFFFF;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), 0 0 20px rgba(59, 130, 246, 0.3);
}

/* ---------- Текстовые ссылки ---------- */
.entry-content a,
.card-excerpt a,
.widget-area a,
.text-link {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.28s ease, color 0.28s ease;
}

.entry-content a:hover,
.card-excerpt a:hover,
.text-link:hover { background-size: 100% 1px; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.6rem;
}

.card-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.6rem;
}

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border: 1px solid var(--alt);
    border-radius: 0;
    overflow: hidden;
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.card::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 3px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.3s ease;
}

.card:hover { transform: translateY(-5px); border-color: var(--steel); }
.card:hover::after { transform: scaleX(1); }

.card-thumb-wrap {
    position: relative;
    display: block;
    overflow: hidden;
    background: var(--alt);
}

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

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: radial-gradient(ellipse at center, rgba(11, 26, 47, 0) 45%, rgba(11, 26, 47, 0.38) 100%);
}

.card-thumb-fallback {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.35) 0 3px, transparent 3px 26px),
        linear-gradient(135deg, #0B1A2F 0%, #24425F 60%, #3B82F6 160%);
}

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

.card-title {
    font-size: 1.16rem;
    margin: 0 0 0.5rem;
}

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.03em;
    margin-bottom: 0.7rem;
}

.card-excerpt { color: var(--ink); font-size: 0.95rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more { margin-top: auto; padding-top: 0.9rem; }

.card-more a {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
    letter-spacing: 0.03em;
}

.card-more a:hover { color: var(--head); }

/* ---------- Главная: секции ---------- */
.front-section {
    position: relative;
    padding: 4rem 1.4rem;
    border-bottom: 1px solid var(--alt);
    overflow: hidden;
}

.front-section > .front-inner {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
    min-width: 0;
    position: relative;
    z-index: 2;
}

/* «Кинокадр» — вертикальные полосы по краям блока */
.frame::before,
.frame::after {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 10px;
    z-index: 1;
    pointer-events: none;
}

.frame::before {
    left: 0;
    background: linear-gradient(90deg, rgba(11, 26, 47, 0.42), rgba(11, 26, 47, 0));
}

.frame::after {
    right: 0;
    background: linear-gradient(270deg, rgba(11, 26, 47, 0.42), rgba(11, 26, 47, 0));
}

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

.sec-alt.front-section {
    background-image: linear-gradient(160deg, rgba(59, 130, 246, 0.12) 0%, rgba(255, 255, 255, 0) 55%);
}

.front-lead {
    max-width: 720px;
    color: var(--muted);
    font-size: 1.02rem;
}

/* Перфорация плёнки между секциями */
.perf {
    height: 16px;
    background-color: var(--head);
    background-image:
        repeating-linear-gradient(90deg, rgba(148, 163, 184, 0.85) 0 10px, rgba(11, 26, 47, 0) 10px 28px);
    background-size: auto 8px;
    background-position: center;
    background-repeat: repeat-x;
}

/* ---------- Блок 1: рубрикатор ---------- */
.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr));
    gap: 1.2rem;
    margin-top: 2.2rem;
}

.rubric-tile {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    min-width: 0;
    padding: 1.4rem 1.3rem;
    background: var(--bg);
    border: 1px solid var(--alt);
    text-decoration: none;
    color: var(--head);
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.rubric-tile svg { flex: 0 0 auto; }
.rubric-tile svg path,
.rubric-tile svg circle,
.rubric-tile svg rect,
.rubric-tile svg line { transition: stroke 0.3s ease; }

.rubric-name {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 1.02rem;
    line-height: 1.25;
    min-width: 0;
}

.rubric-note {
    display: block;
    font-family: var(--body-font);
    font-weight: 400;
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.25rem;
    transition: color 0.3s ease;
}

.rubric-tile:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #FFFFFF;
    transform: translateY(-3px);
}

.rubric-tile:hover .rubric-note { color: rgba(255, 255, 255, 0.85); }
.rubric-tile:hover svg path,
.rubric-tile:hover svg circle,
.rubric-tile:hover svg rect,
.rubric-tile:hover svg line { stroke: #FFFFFF; }

/* ---------- Блок 2: зигзаг ---------- */
.zig-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 2.6rem;
    align-items: center;
    margin-top: 2.4rem;
}

.zig-row + .zig-row { margin-top: 3.2rem; }

.zig-media { position: relative; min-width: 0; border: 1px solid var(--steel); }

.zig-media img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    filter: grayscale(100%) contrast(1.08);
}

.zig-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(11, 26, 47, 0) 50%, rgba(11, 26, 47, 0.42) 100%);
}

.zig-text { min-width: 0; }
.zig-text h3 { font-size: 1.42rem; }

.zig-mark {
    display: inline-block;
    font-family: var(--title-font);
    font-size: 0.78rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--steel);
    margin-bottom: 0.6rem;
}

.zig-reverse .zig-media { order: 2; }
.zig-reverse .zig-text { order: 1; }

/* ---------- Блок 3: шаги ---------- */
.steps-ribbon {
    position: relative;
    margin-top: 2.4rem;
    padding-left: 2.6rem;
}

.steps-ribbon::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 3px;
    background: var(--accent);
}

.step-item {
    position: relative;
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 1.4rem;
    align-items: start;
    padding: 1.4rem 0;
}

.step-item + .step-item { border-top: 1px solid var(--alt); }

.step-num {
    font-family: var(--title-font);
    font-weight: 800;
    font-size: 3rem;
    line-height: 1;
    color: var(--steel);
    letter-spacing: -0.04em;
}

.step-body { min-width: 0; }
.step-body h3 { margin-bottom: 0.35rem; font-size: 1.15rem; }
.step-body p { margin: 0; color: var(--muted); font-size: 0.96rem; }

/* ---------- Блок 4: цитата ---------- */
.quote-plate {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 1.6rem;
    align-items: start;
    margin-top: 2rem;
    padding: 2.4rem 2.2rem;
    background: rgba(255, 255, 255, 0.55);
    border: 1px solid var(--steel);
}

.quote-mark {
    font-family: var(--title-font);
    font-size: 4.4rem;
    font-weight: 800;
    line-height: 0.8;
    color: var(--steel);
    border-left: 3px solid var(--steel);
    padding-left: 0.5rem;
}

.quote-text {
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 1.5rem;
    line-height: 1.42;
    color: var(--head);
    margin: 0 0 0.9rem;
    min-width: 0;
}

.quote-author {
    font-size: 0.86rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
    margin: 0;
}

/* ---------- Блок «последние записи» ---------- */
.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.latest-head .sec-title { margin-bottom: 0; }

/* ---------- Запись и страницы ---------- */
.entry-head { margin-bottom: 1.6rem; }
.entry-title { font-size: 2.2rem; }
.entry-meta { font-size: 0.86rem; color: var(--muted); }

.entry-thumb { margin: 0 0 1.8rem; border: 1px solid var(--alt); }
.entry-thumb img { display: block; width: 100%; object-fit: cover; }

.entry-content { font-size: 1.02rem; }
.entry-content h2 { margin-top: 2rem; font-size: 1.55rem; }
.entry-content h3 { margin-top: 1.6rem; }
.entry-content ul, .entry-content ol { padding-left: 1.3rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--alt);
    border-left: 3px solid var(--accent);
    color: var(--head);
}

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

.entry-content img { display: block; height: auto; }

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

.entry-content th,
.entry-content td {
    border: 1px solid var(--steel);
    padding: 0.7rem 0.8rem;
    text-align: left;
}

.entry-content th { background: var(--alt); font-family: var(--title-font); }

.entry-footer {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--alt);
    font-size: 0.9rem;
    color: var(--muted);
}

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

.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1.2rem;
    margin-top: 2rem;
}

.post-nav a {
    display: block;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--paper);
    border: 1px solid var(--alt);
    text-decoration: none;
    color: var(--head);
    font-family: var(--title-font);
    font-weight: 700;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.post-nav a:hover { border-color: var(--accent); transform: translateY(-3px); }
.post-nav span { display: block; font-family: var(--body-font); font-weight: 400; font-size: 0.78rem; color: var(--muted); margin-bottom: 0.3rem; letter-spacing: 0.08em; text-transform: uppercase; }

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

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; }

.sidebar .widget {
    padding: 1.4rem 1.5rem;
    background: var(--paper);
    border: 1px solid var(--alt);
    margin-bottom: 1.5rem;
    color: var(--ink);
}

.sidebar .widget-title,
.sidebar .widget h2 {
    font-family: var(--title-font);
    font-size: 1.05rem;
    color: var(--head);
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid var(--alt);
}

.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.5rem 0; border-bottom: 1px dashed var(--alt); }
.sidebar .widget li:last-child { border-bottom: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: 0.78rem; color: var(--muted); }
.sidebar .widget p { color: var(--ink); }

/* ---------- Форма поиска ---------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--steel);
    border-radius: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

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

.search-form button {
    flex: 0 0 auto;
    padding: 0.75rem 1.2rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--title-font);
    font-weight: 700;
    cursor: pointer;
    transform: skewX(-2deg);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.search-form button:hover {
    background: var(--paper);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16);
}

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.4rem;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.6rem 0.9rem;
    text-align: center;
    border: 1px solid var(--steel);
    background: var(--paper);
    color: var(--head);
    text-decoration: none;
    font-family: var(--title-font);
    font-weight: 700;
    font-size: 0.9rem;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.pager .page-numbers:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.pager .page-numbers.current { background: var(--head); border-color: var(--head); color: #FFFFFF; }
.pager .page-numbers.dots { border-color: transparent; background: transparent; }

/* ---------- Комментарии ---------- */
.comments-area {
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--alt);
}

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

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

.comment-list .comment-body {
    padding: 1.2rem 1.3rem;
    background: var(--paper);
    border: 1px solid var(--alt);
    margin-bottom: 1rem;
}

.comment-meta { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.comment-author .fn { font-family: var(--title-font); font-style: normal; font-weight: 700; color: var(--head); }
.comment-list .reply a { font-size: 0.85rem; font-family: var(--title-font); font-weight: 700; color: var(--accent); text-decoration: none; }

.comment-form label { display: block; font-size: 0.88rem; margin-bottom: 0.3rem; color: var(--head); font-family: var(--title-font); }

.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;
    border: 1px solid var(--steel);
    background: var(--paper);
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
}

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

.comment-form .submit {
    padding: 0.8rem 1.7rem;
    border: 1px solid var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    font-family: var(--title-font);
    font-weight: 700;
    cursor: pointer;
    transform: skewX(-2deg);
    transition: background 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.comment-form .submit:hover {
    background: var(--paper);
    color: var(--accent);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.16), 0 0 18px rgba(59, 130, 246, 0.3);
}

/* ---------- 404 ---------- */
.err-box {
    padding: 2.6rem 2.2rem;
    background: var(--paper);
    border: 1px solid var(--alt);
}

.err-code {
    font-family: var(--title-font);
    font-size: 4.6rem;
    font-weight: 800;
    line-height: 1;
    color: var(--steel);
    letter-spacing: -0.05em;
    margin: 0 0 0.6rem;
}

.err-actions { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }

/* ---------- Подвал ---------- */
.site-foot {
    background: var(--foot);
    color: #C7D5E4;
    border-top: 3px solid var(--accent);
}

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

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

.site-foot .widget-title,
.site-foot .widget h2 {
    font-family: var(--title-font);
    font-size: 1rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.site-foot .widget { color: #C7D5E4; font-size: 0.92rem; }
.site-foot .widget p { color: #C7D5E4; }
.site-foot .widget ul { list-style: none; margin: 0; padding: 0; }
.site-foot .widget li { padding: 0.42rem 0; }
.site-foot .widget a { color: #DCE6F2; text-decoration: none; }
.site-foot .widget a:hover { color: var(--accent); }
.site-foot .widget .post-date { display: block; font-size: 0.78rem; color: #9FB2C7; }

.foot-contact { font-size: 0.92rem; }
.foot-contact a { color: #DCE6F2; }

.foot-bottom {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid rgba(148, 163, 184, 0.3);
    font-size: 0.85rem;
    color: #9FB2C7;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: space-between;
}

/* ---------- 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: 1.2rem;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    border-top: 3px solid var(--accent);
    color: #DCE6F2;
    font-size: 0.9rem;
}

.cookie-banner p { margin: 0; max-width: 720px; }
.cookie-banner a { color: #FFFFFF; }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.4rem; }
    .layout-single .content-area { width: 100%; }
    .front-section > .front-inner { width: 100%; }
    .zig-row { grid-template-columns: minmax(0, 1fr); gap: 1.6rem; }
    .zig-reverse .zig-media { order: 0; }
    .zig-reverse .zig-text { order: 0; }
    h1 { font-size: 1.9rem; }
    .entry-title { font-size: 1.85rem; }
}

@media (min-width: 961px) {
    .entry-title, .front-h1 { font-size: 3.5rem; line-height: 1.06; }
}

@media (max-width: 600px) {
    body { font-size: 16px; background-image: none; }
    .head-inner { padding: 1.1rem 0; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex: 1 1 100%; }
    .main-nav[hidden] { display: none !important; }
    .main-nav ul { flex-direction: column; gap: 0.9rem; padding-top: 1rem; }
    .front-section { padding: 2.6rem 1.1rem; }
    .quote-plate { grid-template-columns: minmax(0, 1fr); padding: 1.8rem 1.4rem; gap: 0.9rem; }
    .quote-text { font-size: 1.2rem; }
    .quote-mark { border-left: 0; padding-left: 0; font-size: 3rem; }
    .step-item { grid-template-columns: minmax(0, 1fr); gap: 0.5rem; }
    .steps-ribbon { padding-left: 1.4rem; }
    .step-num { font-size: 2.4rem; }
    .err-box { padding: 1.8rem 1.4rem; }
    .entry-content blockquote { padding: 1.2rem 1.2rem; }
    .frame::before, .frame::after { width: 5px; }
    .sec-title { padding-left: 0; }
    .sec-title::before { position: static; display: block; margin-bottom: 0.7rem; }
    .comment-list .comment-body { padding: 1rem 1rem; }
    .cookie-banner { padding: 1rem 1.1rem; justify-content: flex-start; }
    .sidebar .widget { padding: 1.2rem 1.2rem; }
}

/* ---------- Служебное ---------- */
.screen-reader-text {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
}
