/*
Theme Name: dds_olegbreslavtsev.com
Theme URI: https://olegbreslavtsev.com/
Author: Олег Бреславцев
Description: «Свет и объём» — тема для сайта-визитки и портфолио фотографа интерьеров и архитектуры. Японский минимализм, холодная палитра, архитектурная сетка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lightvol
*/

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

:root {
    --bg: #F4F6F8;
    --bg-alt: #E8ECF0;
    --head-bg: #FFFFFF;
    --foot-bg: #1B2A3A;
    --aside-bg: #EDF1F5;
    --ink: #1B2A3A;
    --acc: #2E5C8A;
    --acc2: #7BA7C9;
    --mute: #6B7F91;
    --line: #D0D9E2;
    --grid-line: rgba(220, 227, 234, 0.3);
    --sans: "Inter", "Helvetica Neue", Helvetica, "Segoe UI", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--sans);
    font-weight: 400;
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        linear-gradient(to right, var(--grid-line) 1px, transparent 1px),
        linear-gradient(to bottom, var(--grid-line) 1px, transparent 1px);
    background-size: 24px 24px;
}

body::after {
    content: "";
    position: fixed;
    right: 0;
    bottom: 0;
    width: 420px;
    height: 420px;
    max-width: 55vw;
    max-height: 55vh;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg fill='none' stroke='%237BA7C9' stroke-width='2' opacity='0.08'%3E%3Cpath d='M0 400 L400 120'/%3E%3Cpath d='M400 400 L400 120'/%3E%3Cpath d='M400 120 L150 60'/%3E%3Cpath d='M150 60 L150 340'/%3E%3Cpath d='M0 400 L150 340'/%3E%3C/g%3E%3C/svg%3E");
}

.page-shell {
    position: relative;
    z-index: 1;
}

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

figure {
    margin: 1.6rem 0;
}

p {
    margin: 0 0 1.1em;
}

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

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

h2 {
    font-size: 2rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

a {
    color: var(--acc);
    text-decoration: none;
    position: relative;
    transition: color 0.25s ease, left 0.25s ease, border-color 0.25s ease;
}

.entry-body a:hover,
.trail a:hover,
.widget a:hover,
.main-nav a:hover {
    border-bottom: 1px solid currentColor;
    left: 2px;
}

ul, ol {
    padding-left: 1.4rem;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    border-left: 2px solid var(--acc);
    background: var(--bg-alt);
    color: var(--ink);
}

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

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

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
}

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

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

th {
    background: var(--bg-alt);
    font-weight: 500;
}

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

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

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

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

.btn {
    display: inline-block;
    border-radius: 0;
    padding: 0.85rem 2rem;
    font-size: 0.92rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid var(--acc);
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.btn-fill {
    background: var(--acc);
    color: #fff;
}

.btn-fill:hover,
.btn-fill:focus {
    background: var(--acc2);
    border-color: var(--acc2);
    color: #fff;
}

.btn-ghost {
    background: transparent;
    color: var(--acc);
}

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

.btn-light {
    background: transparent;
    color: #fff;
    border-color: rgba(255, 255, 255, 0.75);
}

.btn-light:hover,
.btn-light:focus {
    background: var(--acc2);
    border-color: var(--acc2);
    color: #fff;
}

.btn:hover {
    border-bottom-width: 1px;
    left: 0;
}

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

.horizon {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--acc), var(--acc2));
}

.site-top {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
    position: relative;
    z-index: 3;
}

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

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

.brand-mark {
    flex: 0 0 auto;
    line-height: 0;
}

.brand-logo {
    max-height: 62px;
    width: auto;
    display: block;
}

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

.brand-name {
    display: block;
    color: var(--ink);
    font-size: 0.98rem;
    line-height: 1.45;
    letter-spacing: 0.01em;
    max-width: 46ch;
}

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

.brand-desc {
    margin: 0.35rem 0 0;
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--mute);
    max-width: 58ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 0;
    padding: 0.55rem 0.9rem;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--ink);
    cursor: pointer;
}

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

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

.main-nav a {
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

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

/* =============================================================
   4. Основные раскладки
   ============================================================= */

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

.page-wrap {
    padding-top: 2.4rem;
}

.layout-with-sidebar {
    display: grid;
    grid-template-columns: 67% 27%;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
}

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

.layout-single {
    display: block;
}

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

.trail {
    font-size: 0.82rem;
    color: var(--mute);
    margin-bottom: 1.6rem;
    letter-spacing: 0.03em;
}

.trail a {
    color: var(--mute);
}

.trail a:hover {
    color: var(--acc);
}

.trail .sep {
    margin: 0 0.45rem;
    color: var(--acc2);
}

/* заголовки секций и архивов */

.sec-title,
.page-title {
    position: relative;
    padding-top: 1.2rem;
    padding-left: 1.15rem;
    margin-bottom: 1.8rem;
    font-size: 2rem;
    letter-spacing: 0.015em;
}

.sec-title::before,
.page-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

.sec-title::after,
.page-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(1.2rem + 0.55em);
    width: 6px;
    height: 6px;
    background: var(--acc);
}

.sec-lead {
    color: var(--mute);
    max-width: 64ch;
    margin-bottom: 2.4rem;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.8rem;
}

.card-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
    gap: 1.8rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 0;
    box-shadow: none;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.card:hover {
    border-color: var(--acc);
    transform: translateY(-4px);
}

.card-thumb {
    display: block;
    width: 100%;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    background:
        repeating-linear-gradient(45deg, rgba(46, 92, 138, 0.08) 0 1px, transparent 1px 12px),
        var(--bg-alt);
}

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

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

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

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

.meta {
    font-size: 0.78rem;
    color: var(--mute);
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.7rem;
}

.meta a {
    color: var(--mute);
}

.meta a:hover {
    color: var(--acc);
}

.meta-sep {
    margin: 0 0.4rem;
}

.card-excerpt {
    color: var(--mute);
    font-size: 0.94rem;
    margin-bottom: 1.1rem;
}

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

.card-more {
    margin-top: auto;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--acc);
    align-self: flex-start;
}

.card-more:hover {
    border-bottom: 1px solid currentColor;
    left: 2px;
}

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

.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
    background: var(--foot-bg);
}

.hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(27, 42, 58, 0.45);
}

.hero-inner {
    position: relative;
    z-index: 2;
    padding: 5rem 0;
    width: min(92%, 1180px);
    margin-inline: auto;
}

.hero-box {
    max-width: 780px;
}

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

.hero-sub {
    color: rgba(255, 255, 255, 0.82);
    font-weight: 300;
    font-size: 1.12rem;
    max-width: 60ch;
    margin-bottom: 2.2rem;
}

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

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

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

/* блок 2 — сетка карточек услуг */

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

.dir-card {
    border: 1px solid var(--line);
    background: #fff;
    padding: 2.2rem 1.8rem;
    min-width: 0;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.dir-card:hover {
    border-color: var(--acc);
    transform: translateY(-4px);
}

.dir-icon {
    display: block;
    margin-bottom: 1.4rem;
    color: var(--acc);
}

.dir-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.6rem;
}

.dir-card p {
    color: var(--mute);
    font-size: 0.95rem;
    margin: 0;
}

/* блок 3 — цитата на тёмном фоне */

.quote-band {
    background-color: var(--foot-bg);
    background-image: repeating-linear-gradient(45deg, rgba(46, 92, 138, 0.15) 0 1px, transparent 1px 12px);
    padding: 6rem 2.2rem;
}

.quote-inner {
    width: 85%;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    color: #fff;
}

.quote-inner p {
    font-size: 2.4rem;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: #fff;
    margin: 0 0 1.8rem;
}

.quote-author {
    display: block;
    font-size: 0.85rem;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--acc2);
}

/* блок 4 — таймлайн */

.timeline {
    display: grid;
    gap: 0;
}

.tl-item {
    display: grid;
    grid-template-columns: 110px 46px minmax(0, 1fr);
    align-items: stretch;
}

.tl-num {
    text-align: right;
    padding: 0 1.4rem 3rem 0;
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 0.12em;
    color: var(--mute);
    line-height: 1.2;
}

.tl-axis {
    position: relative;
}

.tl-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 1px;
    background: var(--acc2);
    transform: translateX(-50%);
}

.tl-item:first-child .tl-axis::before {
    top: 0.6rem;
}

.tl-item:last-child .tl-axis::before {
    bottom: auto;
    height: 0.6rem;
}

.tl-axis::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 0.45rem;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--acc);
    transform: translateX(-50%);
}

.tl-body {
    padding: 0 0 3rem 1.4rem;
    min-width: 0;
}

.tl-item:last-child .tl-body,
.tl-item:last-child .tl-num {
    padding-bottom: 0;
}

.tl-body h3 {
    margin: 0 0 0.4rem;
    font-size: 1.3rem;
}

.tl-body p {
    color: var(--mute);
    margin: 0;
    max-width: 62ch;
}

/* лента последних записей на главной */

.latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2.2rem;
}

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

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

.entry {
    background: #fff;
    border: 1px solid var(--line);
    padding: 2.6rem 2.6rem 3rem;
    min-width: 0;
}

.entry-title {
    font-size: 2.6rem;
    margin-bottom: 0.7rem;
}

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

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

.entry-body {
    font-size: 1.02rem;
}

.entry-body h2,
.entry-body h3 {
    margin-top: 2rem;
}

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

.entry-tags {
    margin-top: 2.4rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.85rem;
    color: var(--mute);
}

.entry-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    font-size: 0.9rem;
}

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

.sidebar {
    background: var(--aside-bg);
    border: 1px solid var(--line);
    padding: 1.8rem 1.6rem;
    min-width: 0;
}

.widget {
    margin-bottom: 2rem;
}

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

.widget-title {
    position: relative;
    padding-top: 0.9rem;
    padding-left: 1.1rem;
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--ink);
}

.widget-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 1px;
    background: var(--acc);
}

.widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    top: calc(0.9rem + 0.5em);
    width: 6px;
    height: 6px;
    background: var(--acc);
}

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

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

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

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

.sidebar .widget li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
}

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

.sidebar .post-date {
    display: block;
    font-size: 0.76rem;
    color: var(--mute);
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

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

.searchform {
    display: flex;
    gap: 0;
    max-width: 480px;
}

.searchform input[type="search"],
.searchform input[type="text"] {
    flex: 1 1 auto;
    min-width: 0;
    border: 1px solid var(--line);
    border-right: none;
    border-radius: 0;
    background: #fff;
    padding: 0.75rem 0.9rem;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--ink);
}

.searchform button {
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #fff;
    border-radius: 0;
    padding: 0.75rem 1.4rem;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.searchform button:hover {
    background: var(--acc2);
    border-color: var(--acc2);
}

.comments-block {
    margin-top: 2.6rem;
    background: #fff;
    border: 1px solid var(--line);
    padding: 2.2rem 2.4rem 2.6rem;
}

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

.comments-block .comment-list .children {
    list-style: none;
    margin: 1rem 0 0 1.6rem;
    padding: 0;
}

.note {
    border-top: 1px solid var(--line);
    padding-top: 1.2rem;
    margin-bottom: 1.2rem;
}

.note-head {
    display: flex;
    gap: 1rem;
    align-items: baseline;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.note-author {
    font-weight: 500;
}

.note-date,
.note-reply {
    font-size: 0.8rem;
    color: var(--mute);
    letter-spacing: 0.04em;
}

.note-text p {
    margin: 0 0 0.7em;
}

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

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

.comment-form .form-submit input {
    border: 1px solid var(--acc);
    background: var(--acc);
    color: #fff;
    border-radius: 0;
    padding: 0.8rem 2rem;
    font-family: inherit;
    font-size: 0.85rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease;
}

.comment-form .form-submit input:hover {
    background: var(--acc2);
    border-color: var(--acc2);
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.85rem;
    border: 1px solid var(--line);
    border-radius: 0;
    background: #fff;
    color: var(--ink);
    font-size: 0.9rem;
    letter-spacing: 0.04em;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

.pager .page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc);
    left: 0;
    border-bottom-width: 1px;
}

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

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

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

.site-foot {
    position: relative;
    z-index: 1;
    background: var(--foot-bg);
    color: #C7D3DE;
    padding: 4rem 0 2rem;
}

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

.foot-cols .widget {
    margin-bottom: 0;
    min-width: 0;
}

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

.site-foot .widget-title::before,
.site-foot .widget-title::after {
    background: var(--acc2);
}

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

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

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

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

.site-foot .widget li {
    padding: 0.42rem 0;
    border-bottom: 1px solid rgba(199, 211, 222, 0.14);
}

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

.site-foot .post-date {
    display: block;
    font-size: 0.76rem;
    color: #92A5B6;
}

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(199, 211, 222, 0.18);
    font-size: 0.82rem;
    color: #92A5B6;
    letter-spacing: 0.03em;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: #16222F;
    color: #DCE5ED;
    padding: 1.1rem 1.6rem;
    border-top: 1px solid rgba(123, 167, 201, 0.3);
    font-size: 0.88rem;
}

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

.cookie-banner a {
    color: var(--acc2);
}

.cookie-accept {
    border: 1px solid var(--acc2);
    background: transparent;
    color: #fff;
    border-radius: 0;
    padding: 0.6rem 1.6rem;
    font-family: inherit;
    font-size: 0.82rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.cookie-accept:hover {
    background: var(--acc2);
}

/* =============================================================
   13. 404 и служебные
   ============================================================= */

.void {
    text-align: left;
    padding: 2rem 0 4rem;
}

.void-code {
    font-size: 6rem;
    font-weight: 300;
    line-height: 1;
    color: var(--acc2);
    letter-spacing: -0.04em;
    margin: 0 0 1rem;
}

.void .searchform {
    margin: 2rem 0;
}

.nothing {
    background: #fff;
    border: 1px solid var(--line);
    padding: 2rem 2.2rem;
}

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

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

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

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

    .narrow {
        width: 100%;
    }

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

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

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .sec-title,
    .page-title {
        font-size: 1.6rem;
    }

    .top-inner {
        padding: 1.2rem 0;
    }

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

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

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

    .main-nav ul {
        flex-direction: column;
        gap: 0;
        margin-top: 0.8rem;
        border-top: 1px solid var(--line);
    }

    .main-nav li {
        border-bottom: 1px solid var(--line);
    }

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

    .hero {
        min-height: 60vh;
    }

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

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

    .quote-band {
        padding: 3.4rem 1.4rem;
    }

    .quote-inner {
        width: 100%;
    }

    .quote-inner p {
        font-size: 1.5rem;
    }

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

    .dir-card {
        padding: 1.6rem 1.4rem;
    }

    .tl-item {
        grid-template-columns: minmax(0, 1fr);
        padding-left: 1.2rem;
        border-left: 1px solid var(--acc2);
    }

    .tl-axis {
        display: none;
    }

    .tl-num {
        text-align: left;
        padding: 0 0 0.3rem;
        font-size: 1.1rem;
        letter-spacing: 0.2em;
    }

    .tl-body {
        padding: 0 0 2.2rem;
    }

    .entry {
        padding: 1.6rem 1.3rem 2rem;
    }

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

    .comments-block {
        padding: 1.5rem 1.3rem 1.8rem;
    }

    .comments-block .comment-list .children {
        margin-left: 0.8rem;
    }

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

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

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

    .void-code {
        font-size: 4rem;
    }

    body::after {
        width: 220px;
        height: 220px;
    }
}
