/*
Theme Name: dds_terraconsult.ru
Author: Алексей Руднев
Description: Тема информационно-образовательного портала о правовой и финансовой грамотности. Дизайн «Закономерный порядок»: швейцарская модульная сетка и японский минимализм в холодной фиолетовой температуре.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: terracon
*/

:root {
    --bg: #F7F5FA;
    --bg-alt: #EDEAF4;
    --head-bg: #2B2438;
    --foot-bg: #1E1829;
    --side-bg: #F0EDF5;
    --ink: #1A1621;
    --accent: #A267D9;
    --accent-dark: #8A4EC4;
    --accent-soft: #D5B3FF;
    --muted: #7B6D8C;
    --line: #D6CDE4;
    --shell: 1180px;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='96' viewBox='0 0 56 96'%3E%3Cpath d='M28 0L56 16L56 48L28 64L0 48L0 16Z M28 64L28 96' fill='none' stroke='%23A267D9' stroke-opacity='0.16' stroke-width='1'/%3E%3C/svg%3E");
    background-repeat: repeat;
    color: var(--ink);
    font-family: "Inter", "Golos UI", "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

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

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

h1, h2, h3, h4, h5, h6 {
    font-family: "Inter", "Golos UI", "Helvetica Neue", Arial, sans-serif;
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.01em;
    margin: 0 0 0.7em;
}

h1 {
    font-size: 3.5rem;
    font-weight: 300;
}

h2 {
    font-size: 2rem;
    font-weight: 700;
}

h3 {
    font-size: 1.4rem;
    font-weight: 700;
}

h4 {
    font-size: 1.15rem;
    font-weight: 700;
}

p {
    margin: 0 0 1.15em;
}

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

li {
    margin-bottom: 0.4em;
}

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

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

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

pre {
    padding: 1.1rem 1.3rem;
    border-radius: 8px;
    overflow-x: auto;
}

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

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

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

/* -------------------------------------------------- контейнеры */

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

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

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

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

.site-main {
    display: block;
    padding: 0 0 4.5rem;
}

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

/* -------------------------------------------------- ссылки в контенте */

.entry-content a,
.card-excerpt a,
.comment-text a,
.widget .textwidget a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-size: 0 1px;
    background-position: 0 100%;
    transition: background-size 0.3s ease;
}

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

/* -------------------------------------------------- кнопки */

.btn {
    display: inline-block;
    padding: 0.8rem 1.8rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font-weight: 600;
    font-size: 0.98rem;
    text-decoration: none;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease;
}

.btn:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    box-shadow: 0 8px 22px rgba(43, 36, 56, 0.22);
}

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

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

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

.btn-light:hover {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: #2B2438;
    box-shadow: none;
}

/* -------------------------------------------------- верхняя полоса и шапка */

.topline {
    height: 6px;
    width: 100%;
    background: linear-gradient(90deg, #A267D9 0%, #D5B3FF 100%);
}

.site-head {
    background: var(--head-bg);
    color: #fff;
    padding: 1.5rem 0;
}

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

.brand {
    display: flex;
    align-items: center;
    gap: 1rem;
    min-width: 0;
    max-width: 640px;
    text-decoration: none;
    color: #fff;
}

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

.brand-logo {
    width: auto;
    max-height: 60px;
}

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

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: 0.01em;
    color: #fff;
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #C7BAD8;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.55rem;
    padding: 0.55rem 1rem;
    border: 2px solid rgba(213, 179, 255, 0.5);
    border-radius: 4px;
    background: transparent;
    color: #fff;
    font: inherit;
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle .bars {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--accent-soft);
    position: relative;
}

.nav-toggle .bars::before,
.nav-toggle .bars::after {
    content: "";
    position: absolute;
    left: 0;
    width: 18px;
    height: 2px;
    background: var(--accent-soft);
}

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

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

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

.site-nav li {
    margin: 0;
}

.site-nav a {
    display: inline-block;
    color: #EDE7F5;
    font-size: 0.98rem;
    text-decoration: none;
    padding-bottom: 3px;
    background-image: linear-gradient(var(--accent-soft), var(--accent-soft));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 0.3s ease, color 0.3s ease;
}

.site-nav a:hover,
.site-nav .current-menu-item > a {
    color: #fff;
    background-size: 100% 2px;
}

/* -------------------------------------------------- хлебные крошки */

.crumbs {
    padding: 1.3rem 0 0;
    font-size: 0.88rem;
    color: var(--muted);
}

.crumbs a {
    color: var(--muted);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

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

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

.section-title,
.block-title {
    position: relative;
    padding-left: 1.1rem;
    text-align: left;
    font-weight: 700;
}

.section-title::before,
.block-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.18em;
    width: 3px;
    height: 0.8em;
    background: var(--accent);
}

.section-lead {
    max-width: 720px;
    margin: -0.3rem 0 2.4rem;
    color: var(--muted);
}

/* -------------------------------------------------- карточки записей */

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

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

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

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

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

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

.card-thumb-wrap a::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(162, 103, 217, 0.28);
    opacity: 0;
    transition: opacity 0.3s ease;
}

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

.thumb-stub {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: linear-gradient(135deg, #EDEAF4 0%, #E1D8EF 100%);
}

.thumb-stub svg {
    display: block;
    width: 100%;
    height: 100%;
}

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

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

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

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

.card-excerpt {
    color: #40384C;
    font-size: 0.97rem;
    margin-bottom: 1.1rem;
}

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

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

.card-foot {
    margin-top: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.8rem;
}

.post-meta {
    font-size: 0.83rem;
    color: var(--muted);
}

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

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

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

.card-more {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.card-more:hover {
    border-color: var(--accent);
}

.card.sticky-post {
    border-color: var(--accent);
}

.sticky-mark {
    display: inline-block;
    margin-bottom: 0.5rem;
    padding: 0.15rem 0.6rem;
    border: 1px solid var(--accent-soft);
    border-radius: 4px;
    font-size: 0.72rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
}

/* -------------------------------------------------- главная: секции */

.fs {
    padding: 80px 0;
}

.fs-main {
    background: transparent;
}

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

/* hero */

.fs-hero {
    position: relative;
    overflow: hidden;
    background: var(--head-bg);
    color: #fff;
    padding: 92px 0;
}

.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
    gap: 3rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-eyebrow {
    display: inline-block;
    margin-bottom: 1.2rem;
    padding-left: 0.9rem;
    position: relative;
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent-soft);
}

.hero-eyebrow::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.35em;
    width: 3px;
    height: 0.9em;
    background: var(--accent-soft);
}

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

.hero-sub {
    max-width: 620px;
    color: #C9BEDA;
    font-size: 1.08rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-top: 2rem;
}

.hero-mark {
    display: block;
    width: 100%;
    max-width: 340px;
    justify-self: center;
}

.hero-stamp {
    position: absolute;
    right: -40px;
    bottom: -70px;
    width: 320px;
    opacity: 0.08;
    z-index: 1;
    pointer-events: none;
}

/* таймлайн */

.tl {
    margin-left: 0;
    max-width: 760px;
    padding-left: 2.6rem;
    position: relative;
}

.tl::before {
    content: "";
    position: absolute;
    left: 6px;
    top: 0.6rem;
    bottom: 0.6rem;
    width: 1px;
    background: var(--accent);
}

.tl-item {
    position: relative;
    padding-bottom: 2.1rem;
    min-width: 0;
}

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

.tl-item::before {
    content: "";
    position: absolute;
    left: -2.6rem;
    top: 0.55rem;
    margin-left: 1px;
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
}

.tl-num {
    display: block;
    font-size: 1.9rem;
    font-weight: 300;
    line-height: 1;
    letter-spacing: 0.08em;
    color: var(--line);
    margin-bottom: 0.35rem;
}

.tl-item h3 {
    margin-bottom: 0.35rem;
}

.tl-item p {
    margin: 0;
    color: #40384C;
}

/* рубрикатор */

.rubric-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.6rem;
}

.rubric {
    min-width: 0;
    display: block;
    padding: 2rem 1.6rem;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.5);
    text-decoration: none;
    color: var(--ink);
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.rubric:hover {
    background: rgba(213, 179, 255, 0.2);
    border-color: var(--accent);
    transform: translateY(-4px);
}

.rubric svg {
    display: block;
    width: 46px;
    height: 46px;
    margin-bottom: 1.2rem;
}

.rubric-name {
    display: block;
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.4rem;
}

.rubric-note {
    display: block;
    font-size: 0.9rem;
    color: var(--muted);
    line-height: 1.6;
}

/* цитата-манифест */

.manifest {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    padding: 2.6rem 2.2rem;
    background: rgba(255, 255, 255, 0.55);
    border-radius: 8px;
}

.manifest::before {
    content: "";
    flex: 0 0 auto;
    width: 10px;
    align-self: stretch;
    background: var(--accent);
    border-radius: 2px;
}

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

.manifest-text {
    font-size: 2.1rem;
    font-weight: 300;
    line-height: 1.35;
    letter-spacing: -0.015em;
    margin: 0 0 1.1rem;
}

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

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

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

.fs-head h2 {
    margin-bottom: 0;
}

.fs-head .card-more {
    font-size: 0.95rem;
}

/* -------------------------------------------------- записи и страницы */

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

.entry-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.7rem;
}

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

.entry-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 8px;
}

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

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

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

.entry-tags a {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.2rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--muted);
    text-decoration: none;
    transition: border-color 0.3s ease, color 0.3s ease;
}

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

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

.archive-title {
    font-size: 2.2rem;
    font-weight: 700;
}

.no-posts {
    padding: 2rem 1.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

/* -------------------------------------------------- пагинация */

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

.pager .page-numbers {
    display: inline-block;
    min-width: 44px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    text-decoration: none;
    font-size: 0.95rem;
    transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}

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

.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    font-weight: 600;
}

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

/* -------------------------------------------------- сайдбар и виджеты */

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

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

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

.widget-title {
    position: relative;
    padding-left: 0.9rem;
    font-size: 1.08rem;
    font-weight: 700;
    margin: 0 0 1rem;
}

.widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 0.85em;
    background: var(--accent);
}

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

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

.sidebar li {
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--ink);
}

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

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

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

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

.sidebar .textwidget {
    font-size: 0.95rem;
    color: #40384C;
}

/* -------------------------------------------------- формы */

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

.search-form label {
    flex: 1;
    min-width: 0;
    margin: 0;
}

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

input[type="text"]:focus,
input[type="search"]:focus,
input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.search-form button,
input[type="submit"],
.comment-form .submit {
    padding: 0.65rem 1.4rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

/* -------------------------------------------------- комментарии */

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

.comments-title,
.comment-reply-title {
    position: relative;
    padding-left: 1rem;
    font-size: 1.35rem;
    font-weight: 700;
}

.comments-title::before,
.comment-reply-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.22em;
    width: 3px;
    height: 0.8em;
    background: var(--accent);
}

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

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

.comment-inner {
    padding: 1.2rem 1.4rem;
    margin-bottom: 1rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
}

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

.comment-author {
    font-weight: 700;
}

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

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

.comment-actions a {
    font-size: 0.88rem;
    color: var(--accent);
    text-decoration: none;
}

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

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

.no-comments {
    color: var(--muted);
}

/* -------------------------------------------------- 404 */

.err-block {
    padding: 3rem 2.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    text-align: left;
}

.err-code {
    font-size: 4rem;
    font-weight: 300;
    line-height: 1;
    color: var(--line);
    margin-bottom: 1rem;
}

.err-block .search-form {
    max-width: 460px;
    margin: 1.6rem 0;
}

/* -------------------------------------------------- подвал */

.site-foot {
    position: relative;
    overflow: hidden;
    background: var(--foot-bg);
    color: #D8CFE4;
    padding: 3.4rem 0 1.6rem;
}

.foot-stamp {
    position: absolute;
    right: -60px;
    top: -60px;
    width: 300px;
    opacity: 0.08;
    pointer-events: none;
}

.foot-cols {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 2.4rem;
}

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

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

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

.site-foot .widget-title {
    color: #FFFFFF;
    font-size: 1.02rem;
}

.site-foot .widget-title::before {
    background: var(--accent-soft);
}

.site-foot .textwidget,
.site-foot li {
    color: #C4B8D4;
    font-size: 0.93rem;
}

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

.site-foot li {
    padding: 0.4rem 0;
    border-bottom: 1px solid rgba(213, 179, 255, 0.14);
}

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

.site-foot a {
    color: #D8CFE4;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.site-foot .post-date {
    display: block;
    font-size: 0.8rem;
    color: #9C8DAF;
}

.copyright {
    position: relative;
    z-index: 2;
    margin-top: 2.6rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(213, 179, 255, 0.16);
    font-size: 0.85rem;
    color: #A697B8;
}

/* -------------------------------------------------- cookie */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: #2B2438;
    border-top: 3px solid var(--accent);
    color: #E4DCEE;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    max-width: 760px;
}

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

.cookie-accept {
    padding: 0.55rem 1.5rem;
    border: 2px solid var(--accent);
    border-radius: 4px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, border-color 0.3s ease;
}

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

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

/* -------------------------------------------------- адаптив */

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

    h1 {
        font-size: 2.6rem;
    }

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

    .layout-single {
        width: 100%;
    }

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

    .hero-mark {
        max-width: 260px;
        justify-self: start;
    }

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

    .manifest-text {
        font-size: 1.7rem;
    }
}

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

    h2 {
        font-size: 1.55rem;
    }

    .fs {
        padding: 52px 0;
    }

    .fs-hero {
        padding: 60px 0;
    }

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

    .site-nav {
        width: 100%;
    }

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

    .site-nav ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        margin-top: 0.8rem;
    }

    .site-nav li {
        width: 100%;
        border-bottom: 1px solid rgba(213, 179, 255, 0.16);
    }

    .site-nav a {
        display: block;
        width: 100%;
        padding: 0.65rem 0;
    }

    .head-inner {
        gap: 1rem;
    }

    .brand {
        max-width: 100%;
    }

    .card-body {
        padding: 1.2rem 1.2rem 1.4rem;
    }

    .manifest {
        padding: 1.8rem 1.4rem;
        gap: 1.2rem;
    }

    .manifest::before {
        width: 6px;
    }

    .manifest-text {
        font-size: 1.4rem;
    }

    .rubric {
        padding: 1.6rem 1.3rem;
    }

    .err-block {
        padding: 2rem 1.4rem;
    }

    .tl {
        padding-left: 2rem;
    }

    .tl-item::before {
        left: -2rem;
    }

    .hero-stamp {
        width: 210px;
        right: -50px;
        bottom: -50px;
    }

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