/*
Theme Name: dds_abelozertseva.ru
Theme URI: https://abelozertseva.ru/
Author: Анна Белозерцева
Description: Тема для независимого цифрового журнала о веб-дизайне, интерфейсах и креативных практиках.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: lavmast
*/

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

:root {
    --paper: #F5F0F7;
    --paper-alt: #EAE2F0;
    --aside-bg: #F0EBF4;
    --deep: #201A2E;
    --ink: #1E1828;
    --accent: #A67CBE;
    --accent-dark: #7A5A8E;
    --accent-soft: #D4B8E0;
    --muted: #7A6A87;
    --head-font: "Space Grotesk", "IBM Plex Sans", "Trebuchet MS", "Segoe UI", sans-serif;
    --body-font: "Inter", "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;
    font-family: var(--body-font);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--paper);
    background-image: repeating-linear-gradient(90deg, rgba(30, 24, 40, 0.05) 0 1px, rgba(30, 24, 40, 0) 1px 80px);
}

body::after {
    content: "";
    position: fixed;
    right: -140px;
    bottom: -170px;
    width: 540px;
    height: 540px;
    z-index: -1;
    opacity: 0.15;
    filter: blur(18px);
    pointer-events: none;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cpath fill='%23D4B8E0' d='M321 61c38 33 61 90 52 141-9 51-50 96-97 122-47 26-100 33-138 10-38-23-61-76-64-127-3-51 14-100 50-131 36-31 91-44 137-36 46 8 84 36 60 21z'/%3E%3C/svg%3E");
}

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

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 4px;
}

a:hover,
a:focus {
    color: var(--accent-dark);
    text-decoration-style: solid;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--head-font);
    color: var(--ink);
    line-height: 1.18;
    font-weight: 600;
    margin: 0 0 1rem;
}

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

h2 {
    font-size: 2.1rem;
}

h3 {
    font-size: 1.45rem;
}

h4 {
    font-size: 1.2rem;
}

p {
    margin: 0 0 1.1em;
}

ul, ol {
    margin: 0 0 1.2em;
    padding-left: 1.3rem;
}

li {
    margin-bottom: 0.45em;
}

blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--paper-alt);
    border-left: 3px solid var(--accent);
    border-radius: 4px;
    font-family: var(--head-font);
    font-size: 1.2rem;
}

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

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

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

th {
    background: var(--paper-alt);
    font-family: var(--head-font);
}

code, pre {
    font-family: "SFMono-Regular", Consolas, monospace;
    background: var(--paper-alt);
    border-radius: 4px;
}

code {
    padding: 0.1em 0.35em;
    font-size: 0.92em;
}

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

.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%, 1180px);
    margin-inline: auto;
}

.site-main {
    display: block;
    padding-bottom: 90px;
}

.page-wrap {
    padding-top: 44px;
}

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

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

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

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

.btn {
    display: inline-block;
    padding: 0.72rem 1.5rem;
    border-radius: 4px;
    border: 1px solid var(--accent);
    background: transparent;
    color: var(--accent);
    font-family: var(--head-font);
    font-size: 0.95rem;
    letter-spacing: 0.03em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
}

.btn-soft {
    border-color: transparent;
    background: var(--paper-alt);
    color: var(--accent);
}

.btn-soft:hover,
.btn-soft:focus {
    background: var(--paper-alt);
    color: var(--accent-dark);
    box-shadow: 0 6px 18px rgba(212, 184, 224, 0.75);
}

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

.site-top {
    position: relative;
    padding: 26px 0;
    background: rgba(245, 240, 247, 0.72);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid rgba(212, 184, 224, 0.55);
}

.site-top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 20px;
}

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

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

.brand-mark img {
    display: block;
    max-width: 68px;
    height: auto;
}

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

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

.brand-name:hover {
    color: var(--accent-dark);
    text-decoration: none;
}

.brand-tag {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 6px;
    max-width: 62ch;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: var(--head-font);
    font-size: 0.9rem;
    cursor: pointer;
}

.site-nav ul {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-nav li {
    margin: 0;
}

.site-nav a {
    font-family: var(--head-font);
    font-size: 0.98rem;
    color: var(--ink);
    text-decoration: none;
}

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

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

.trail {
    margin: 0 0 26px;
    font-size: 0.86rem;
    color: var(--muted);
}

.trail a {
    color: var(--muted);
    text-decoration: none;
}

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

.trail-sep {
    color: var(--accent-soft);
    margin: 0 4px;
}

/* =========================================================
   6. Заголовки секций
   ========================================================= */

.sect-title {
    position: relative;
    padding-left: 30px;
    margin-bottom: 2.4rem;
    font-size: 2.3rem;
    max-width: 22ch;
}

.sect-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
}

.sect-lead {
    max-width: 62ch;
    color: var(--muted);
}

/* Точка-маркер у заголовков внутри текста записи */
.entry-body h2 {
    position: relative;
    padding-left: 26px;
    margin-top: 2.2rem;
}

.entry-body h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

/* Цифровой росчерк */
.stroke-line {
    width: 220px;
    height: 1px;
    border: 0;
    margin: 28px 0 0;
    background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(212, 184, 224, 0) 100%);
}

.editorial-rule {
    width: 60%;
    height: 1px;
    margin: 0 auto 0 0;
    border: 0;
    background: var(--accent-soft);
}

/* =========================================================
   7. Главная
   ========================================================= */

.front-section {
    padding: 120px 0;
}

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

.front-hero {
    padding: 96px 0 84px;
}

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

.hero-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 22px;
    font-family: var(--head-font);
    font-size: 0.9rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
}

.hero-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--accent);
    flex: 0 0 auto;
}

.hero-title {
    margin-bottom: 1.2rem;
}

.hero-text {
    max-width: 54ch;
    color: var(--muted);
    font-size: 1.06rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 26px;
}

.hero-figure {
    min-width: 0;
    line-height: 0;
}

.hero-figure svg {
    width: 100%;
    height: auto;
    display: block;
}

/* Блок 2 — таймлайн */
.tl {
    margin-top: 8px;
}

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

.tl-num {
    padding-top: 0.05rem;
    padding-right: 14px;
    text-align: right;
    font-family: var(--head-font);
    font-size: 0.95rem;
    letter-spacing: 0.08em;
    color: var(--muted);
}

.tl-axis {
    position: relative;
    min-height: 100%;
}

.tl-axis::before {
    content: "";
    position: absolute;
    left: 50%;
    top: 0;
    bottom: -6px;
    border-left: 1px dashed var(--accent-soft);
}

.tl-item:last-child .tl-axis::before {
    bottom: auto;
    height: 22px;
}

.tl-axis::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 8px;
    width: 9px;
    height: 9px;
    margin-left: -4px;
    border-radius: 50%;
    background: var(--accent);
}

.tl-body {
    min-width: 0;
    padding: 0 0 46px 22px;
}

.tl-body h3 {
    margin-bottom: 0.5rem;
}

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

/* Последние записи */
.latest-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 18px;
}

.cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.front-more {
    margin-top: 40px;
}

/* Блок 3 — цитата */
.front-quote {
    background-color: var(--paper-alt);
    background-image: radial-gradient(circle, rgba(166, 124, 190, 0.08) 1px, rgba(166, 124, 190, 0) 1px), linear-gradient(180deg, var(--paper-alt) 0%, var(--paper) 100%);
    background-size: 20px 20px, 100% 100%;
}

.quote-plate {
    display: flex;
    gap: 26px;
    padding: 2.6rem 2.4rem;
    background: rgba(245, 240, 247, 0.55);
    border-radius: 8px;
}

.quote-bar {
    flex: 0 0 3px;
    width: 3px;
    background: var(--accent);
    align-self: flex-start;
    height: 2.6em;
}

.quote-body {
    min-width: 0;
}

.quote-body p {
    margin: 0 0 1.2rem;
    font-family: var(--head-font);
    font-size: 1.85rem;
    line-height: 1.35;
}

.quote-author {
    margin: 0;
    font-size: 0.95rem;
    color: var(--muted);
}

.quote-author strong {
    display: block;
    font-family: var(--head-font);
    font-weight: 600;
    color: var(--ink);
}

/* Блок 4 — рубрикатор */
.topic-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 26px;
}

.topic-tile {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
    padding: 2rem 1.9rem;
    border: 1px solid var(--accent-soft);
    border-radius: 8px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease;
}

.topic-tile:hover,
.topic-tile:focus {
    background: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
}

.topic-tile svg {
    flex: 0 0 auto;
    display: block;
}

.topic-tile .tile-icon {
    stroke: var(--accent);
    fill: none;
}

.topic-tile:hover .tile-icon {
    stroke: #FFFFFF;
}

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

.tile-text strong {
    display: block;
    font-family: var(--head-font);
    font-size: 1.25rem;
    line-height: 1.3;
}

.tile-text span {
    display: block;
    margin-top: 5px;
    font-size: 0.9rem;
    color: var(--muted);
}

.topic-tile:hover .tile-text span {
    color: rgba(255, 255, 255, 0.82);
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 8px 24px rgba(212, 184, 224, 0.55);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.front-section--alt .card,
.front-quote .card {
    background: #FBF8FC;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(212, 184, 224, 0.85);
}

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

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

.card-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    opacity: 0;
    background: linear-gradient(135deg, rgba(166, 124, 190, 0.55) 0%, rgba(166, 124, 190, 0) 62%);
    transition: opacity 0.25s ease;
    pointer-events: none;
}

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

.card-thumb-empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, var(--paper-alt) 0%, var(--accent-soft) 100%);
}

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

.card-title {
    font-size: 1.2rem;
    margin-bottom: 0.6rem;
}

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.96rem;
}

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

.card-foot {
    margin-top: auto;
    padding-top: 1rem;
}

.entry-meta {
    font-size: 0.84rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

.entry-meta a {
    color: var(--muted);
    text-decoration: none;
}

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

.meta-sep {
    color: var(--accent-soft);
}

.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px;
}

.layout-with-sidebar .card-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

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

.page-head {
    margin-bottom: 34px;
}

.page-head h1 {
    font-size: 2.7rem;
    margin-bottom: 0.6rem;
}

.entry-thumb {
    margin: 0 0 28px;
    border-radius: 8px;
    overflow: hidden;
}

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

.entry-body {
    min-width: 0;
}

.entry-body img {
    border-radius: 8px;
}

.entry-body > *:first-child {
    margin-top: 0;
}

.entry-tags {
    margin-top: 30px;
    padding-top: 18px;
    border-top: 1px solid var(--accent-soft);
    font-size: 0.9rem;
    color: var(--muted);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
    margin-top: 34px;
}

.post-nav a {
    max-width: 46ch;
}

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

.sidebar {
    min-width: 0;
    padding: 1.7rem 1.6rem;
    border-radius: 8px;
    background: var(--aside-bg);
    color: var(--ink);
}

.sidebar .widget {
    margin-bottom: 2rem;
}

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

.sidebar .widget-title {
    font-size: 1.1rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
}

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

.sidebar li {
    padding-bottom: 0.6rem;
    margin-bottom: 0.6rem;
    border-bottom: 1px dashed var(--accent-soft);
}

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

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

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

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

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

.site-bottom {
    background: var(--deep);
    color: #E4DCEC;
    padding: 72px 0 34px;
}

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

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

.site-bottom .widget-title {
    font-size: 1.05rem;
    color: #FFFFFF;
    margin-bottom: 0.9rem;
}

.site-bottom .widget {
    margin-bottom: 1.6rem;
}

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

.site-bottom p,
.site-bottom li,
.site-bottom .textwidget {
    color: #D8CEE4;
    font-size: 0.95rem;
}

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

.site-bottom li {
    margin-bottom: 0.55rem;
}

.site-bottom a {
    color: var(--accent-soft);
    text-decoration: none;
}

.site-bottom a:hover {
    color: #FFFFFF;
    text-decoration: underline;
    text-decoration-style: solid;
}

.foot-stroke {
    width: 200px;
    height: 1px;
    border: 0;
    margin: 44px 0 22px;
    background: linear-gradient(90deg, var(--accent-soft) 0%, rgba(212, 184, 224, 0) 100%);
}

.foot-copy {
    font-size: 0.88rem;
    color: #A797B8;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 44px;
}

.pager .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.95rem;
    border: 1px solid var(--accent-soft);
    border-radius: 4px;
    font-family: var(--head-font);
    font-size: 0.95rem;
    color: var(--ink);
    text-decoration: none;
    background: var(--paper);
}

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

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

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

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

.search-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.search-form input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--accent-soft);
    border-radius: 4px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

.search-form input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-area {
    margin-top: 48px;
    padding-top: 30px;
    border-top: 1px solid var(--accent-soft);
}

.comments-area h2 {
    font-size: 1.5rem;
}

.comment-list {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
}

.comment-list ul.children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 22px;
    border-left: 1px dashed var(--accent-soft);
}

.comment-item {
    margin-bottom: 1.4rem;
    padding: 1.2rem 1.3rem;
    border-radius: 8px;
    background: var(--paper-alt);
}

.comment-head {
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
}

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

.comment-date {
    color: var(--muted);
    margin-left: 8px;
}

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

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

.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(--accent-soft);
    border-radius: 4px;
    background: #FFFFFF;
    font-family: var(--body-font);
    font-size: 0.95rem;
    color: var(--ink);
}

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

.comment-form .submit {
    padding: 0.72rem 1.5rem;
    border: 1px solid var(--accent);
    border-radius: 4px;
    background: transparent;
    color: var(--accent);
    font-family: var(--head-font);
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--accent);
    color: #FFFFFF;
}

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

.notfound {
    padding: 30px 0 20px;
}

.notfound .search-form {
    max-width: 460px;
    margin-bottom: 22px;
}

.no-results {
    padding: 1.6rem 1.7rem;
    border-radius: 8px;
    background: var(--paper-alt);
}

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

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

.cookie-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 1.1rem 1.6rem;
    background: var(--deep);
    color: #E4DCEC;
    border-top: 1px solid var(--accent);
}

.cookie-bar p {
    margin: 0;
    font-size: 0.92rem;
    max-width: 80ch;
}

.cookie-bar a {
    color: var(--accent-soft);
}

.cookie-bar button {
    padding: 0.6rem 1.3rem;
    border: 1px solid var(--accent-soft);
    border-radius: 4px;
    background: transparent;
    color: #FFFFFF;
    font-family: var(--head-font);
    font-size: 0.92rem;
    cursor: pointer;
}

.cookie-bar button:hover {
    background: var(--accent);
    border-color: var(--accent);
}

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

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

    .front-section {
        padding: 76px 0;
    }

    .front-hero {
        padding: 62px 0 56px;
    }

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

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

    .layout-single {
        width: 100%;
    }

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

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

    .nav-toggle {
        display: inline-block;
        order: 2;
        margin-left: auto;
    }

    .site-nav {
        order: 3;
        flex: 1 1 100%;
    }

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

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
        padding-top: 14px;
    }
}

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

    h1 {
        font-size: 2.1rem;
    }

    h2 {
        font-size: 1.7rem;
    }

    .sect-title {
        font-size: 1.7rem;
        padding-left: 22px;
    }

    .front-section {
        padding: 54px 0;
    }

    .front-hero {
        padding: 44px 0 40px;
    }

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

    .quote-plate {
        padding: 1.8rem 1.4rem;
        gap: 16px;
    }

    .quote-body p {
        font-size: 1.35rem;
    }

    .topic-tile {
        padding: 1.5rem 1.3rem;
    }

    .tl-item {
        grid-template-columns: minmax(0, 70px) 22px minmax(0, 1fr);
    }

    .tl-body {
        padding-left: 16px;
        padding-bottom: 34px;
    }

    .brand-tag {
        display: none;
    }

    .brand-mark img,
    .brand-mark svg {
        max-width: 52px;
        height: auto;
    }

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

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

    .site-bottom {
        padding: 54px 0 28px;
    }
}
