/*
Theme Name: dds_invertedapeclub.com
Theme URI: https://invertedapeclub.com/
Author: Олег Савельев
Description: Тема для информационно-аналитического портала о токенизации недвижимости и цифровых активах.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: iapclub
*/

:root {
    --bg: #F7F5FB;
    --bg-alt: #EFEBF7;
    --bg-accent: #E7E0F5;
    --head-bg: #1C1633;
    --foot-bg: #14102A;
    --side-bg: #F1EDF9;
    --ink: #221C35;
    --lav: #7C4DFF;
    --mint: #00C2A8;
    --muted: #7A7391;
    --line: #E2DBF0;
    --dash: #D8CFF0;
    --chip-bg: #EDE7FF;
    --chip-ink: #5B3DBF;
    --head-font: "Space Grotesk", "Unbounded", "Trebuchet MS", "Segoe UI", system-ui, sans-serif;
    --body-font: "Inter", "Manrope", -apple-system, "Segoe UI", Roboto, 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.7;
    color: var(--ink);
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(45deg, rgba(124, 77, 255, 0.03) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(-45deg, rgba(124, 77, 255, 0.03) 0 1px, transparent 1px 40px);
    background-attachment: fixed;
}

body::before {
    content: "";
    position: fixed;
    top: 70px;
    right: -40px;
    width: 380px;
    height: 340px;
    z-index: 0;
    pointer-events: none;
    opacity: 0.08;
    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 200 180'%3E%3Cpath d='M8 10 L192 10 L100 170 Z' fill='none' stroke='%237C4DFF' stroke-width='2'/%3E%3Cpath d='M42 42 L158 42 L100 140 Z' fill='none' stroke='%237C4DFF' stroke-width='1.5'/%3E%3C/svg%3E");
}

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

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

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

.entry-body a,
.widget-block a,
.card-excerpt a {
    position: relative;
    background-image: linear-gradient(90deg, var(--lav), var(--mint));
    background-repeat: no-repeat;
    background-size: 0 2px;
    background-position: 0 100%;
    transition: background-size 0.25s ease;
}

.entry-body a:hover,
.widget-block a:hover,
.card-excerpt a:hover { background-size: 100% 2px; }

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

h1 { font-size: 3.2rem; margin-top: 0; }
h2 { font-size: 2rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

.entry-body h2,
.section-title,
.sec-head h2 {
    padding-left: 0.85rem;
    position: relative;
}

.entry-body h2::before,
.section-title::before,
.sec-head h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.16em;
    width: 4px;
    height: 1.2em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lav), var(--mint));
}

p { margin: 0 0 1.1rem; }

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

blockquote {
    margin: 1.6rem 0;
    padding: 1.2rem 1.5rem;
    background: var(--bg-accent);
    border-left: 4px solid var(--lav);
    border-radius: 10px;
}

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

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

code { padding: 0.1em 0.35em; }

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

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

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

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

/* ------------------ shell ------------------ */

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

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

/* ------------------ header ------------------ */

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

.head-inner {
    display: flex;
    align-items: center;
    gap: 1.6rem;
    flex-wrap: wrap;
}

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--head-font);
    font-size: 1.12rem;
    font-weight: 700;
    line-height: 1.3;
    color: #FFFFFF;
}

.brand-desc {
    display: block;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #A79BD0;
    margin-top: 0.25rem;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid #6B5CA5;
    color: #EDE9F8;
    border-radius: 10px;
    padding: 0.5rem 0.9rem;
    font-family: var(--head-font);
    font-size: 0.95rem;
    cursor: pointer;
}

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

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

.main-nav a {
    color: #E4DEF7;
    font-family: var(--head-font);
    font-size: 0.98rem;
    padding-bottom: 3px;
    display: inline-block;
    border-bottom: 2px solid transparent;
}

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

/* ------------------ breadcrumbs ------------------ */

.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 1.1rem 0 0;
}

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

.breadcrumbs a:hover { color: var(--lav); }

.breadcrumbs .sep { margin: 0 0.4rem; color: var(--mint); }

/* ------------------ layout ------------------ */

.site-main { padding: 1.4rem 0 3.4rem; }

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

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

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

/* ------------------ buttons ------------------ */

.btn {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.98rem;
    padding: 0.8rem 1.6rem;
    border-radius: 10px;
    border: 1.5px solid transparent;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease;
}

.btn-fill {
    background: var(--lav);
    color: #FFFFFF;
}

.btn-fill:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.32);
}

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

.btn-ghost:hover {
    transform: translateY(-2px);
    background: rgba(124, 77, 255, 0.12);
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.18);
}

.btn-mint {
    border-color: var(--mint);
    color: var(--mint);
    background: transparent;
}

.btn-mint:hover {
    transform: translateY(-2px);
    background: rgba(0, 194, 168, 0.14);
    box-shadow: 0 10px 22px rgba(0, 194, 168, 0.2);
}

/* ------------------ cards ------------------ */

.cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1.7rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 6px 18px rgba(124, 77, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
    transform: translateY(-4px);
    border-color: var(--lav);
    box-shadow: 0 12px 26px rgba(124, 77, 255, 0.14), 0 4px 14px rgba(0, 194, 168, 0.14);
}

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

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 42%;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(28, 22, 51, 0), rgba(28, 22, 51, 0.32));
}

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

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

.card-title {
    font-size: 1.16rem;
    margin: 0.55rem 0 0.6rem;
    line-height: 1.32;
}

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

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

.card-excerpt {
    color: #423A5C;
    font-size: 0.95rem;
    flex: 1;
}

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

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 0.9rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    align-items: center;
}

.card-more {
    align-self: flex-start;
    margin-top: 1rem;
    font-family: var(--head-font);
    font-size: 0.92rem;
    color: var(--lav);
}

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

.tag-chip {
    display: inline-block;
    background: var(--chip-bg);
    color: var(--chip-ink);
    border-radius: 6px;
    padding: 0.16rem 0.55rem;
    font-size: 0.76rem;
    font-family: var(--head-font);
}

.tag-chip:hover { background: #E2D8FF; }

.chips-row { display: flex; flex-wrap: wrap; gap: 0.4rem; }

/* ------------------ front page ------------------ */

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

.front-section.is-alt {
    background-color: var(--bg-alt);
    background-image:
        repeating-linear-gradient(45deg, rgba(124, 77, 255, 0.05) 0 1px, transparent 1px 40px),
        repeating-linear-gradient(-45deg, rgba(124, 77, 255, 0.05) 0 1px, transparent 1px 40px);
}

.front-section.is-dashed { border-top: 1px dashed var(--dash); }

.sec-head { margin-bottom: 2rem; }

.sec-dot {
    display: block;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--mint);
    margin: 0 0 0.7rem 0.85rem;
}

.sec-head h2 { margin: 0 0 0.6rem; }

.sec-head p {
    margin: 0;
    color: var(--muted);
    max-width: 62ch;
    padding-left: 0.85rem;
}

.chain-divider {
    height: 26px;
    background-image: radial-gradient(circle, var(--mint) 1.6px, transparent 1.8px);
    background-size: 22px 22px;
    background-repeat: repeat-x;
    background-position: left center;
    opacity: 0.55;
    transform: rotate(-1.2deg);
    margin: 0 auto;
    width: min(92%, 1180px);
}

/* hero */

.hero {
    position: relative;
    overflow: hidden;
    background-color: #1C1633;
    background-image: linear-gradient(90deg, rgba(20, 16, 42, 0.86), rgba(20, 16, 42, 0.42)), var(--hero-img);
    background-size: cover;
    background-position: center;
    color: #FFFFFF;
}

.hero-inner {
    padding: 5rem 0 5.2rem;
    position: relative;
    z-index: 2;
}

.hero-box { max-width: 47rem; min-width: 0; }

.hero-kicker {
    display: inline-block;
    font-family: var(--head-font);
    font-size: 0.82rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--mint);
    border: 1px solid rgba(0, 194, 168, 0.5);
    border-radius: 6px;
    padding: 0.28rem 0.7rem;
    margin-bottom: 1.3rem;
}

.hero h1 {
    color: #FFFFFF;
    margin: 0 0 1.1rem;
}

.hero-sub {
    color: #CFC4F0;
    font-size: 1.12rem;
    max-width: 44rem;
    margin-bottom: 1.9rem;
}

.hero-actions { display: flex; flex-wrap: wrap; gap: 0.9rem; }

.hero-tri {
    position: absolute;
    top: 8%;
    right: 3%;
    width: 210px;
    height: 190px;
    opacity: 0.45;
    z-index: 1;
    pointer-events: none;
}

/* stats */

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

.stat-cell {
    min-width: 0;
    padding: 0.6rem 1.4rem;
    border-right: 1px dashed rgba(0, 194, 168, 0.55);
}

.stat-cell:last-child { border-right: none; }

.stat-cell:first-child { padding-left: 0; }

.stat-num {
    display: block;
    font-family: var(--head-font);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--lav);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    color: var(--muted);
    font-size: 0.92rem;
}

/* icon grid */

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

.icon-card {
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.8rem 1.6rem;
    box-shadow: 0 6px 18px rgba(124, 77, 255, 0.08);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.icon-card:hover {
    transform: translateY(-4px);
    border-color: var(--lav);
    box-shadow: 0 12px 26px rgba(124, 77, 255, 0.14), 0 4px 14px rgba(0, 194, 168, 0.14);
}

.icon-circle {
    width: 58px;
    height: 58px;
    border-radius: 50%;
    background: var(--chip-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.1rem;
}

.icon-card h3 { margin: 0 0 0.6rem; font-size: 1.22rem; }

.icon-card p { margin: 0; color: #4A4266; font-size: 0.96rem; }

/* quote */

.fs-quote {
    background-color: var(--head-bg);
    background-image: radial-gradient(circle, rgba(0, 194, 168, 0.16) 1.5px, transparent 1.6px);
    background-size: 26px 26px;
    color: #FFFFFF;
    border-radius: 14px;
    padding: 3rem 3rem 2.4rem;
    border-left: 4px solid var(--mint);
}

.fs-quote p {
    font-family: var(--head-font);
    font-size: 1.85rem;
    line-height: 1.38;
    margin: 0 0 1.4rem;
}

.fs-quote .hl {
    background: linear-gradient(90deg, #B9A2FF, var(--mint));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.fs-quote cite {
    display: block;
    font-style: normal;
    font-size: 0.9rem;
    color: #A79BD0;
}

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

.front-cta-line {
    margin-top: 2.2rem;
    text-align: center;
}

/* ------------------ entry ------------------ */

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

.entry-head h1 { font-size: 2.6rem; margin-bottom: 0.8rem; }

.entry-meta {
    color: var(--muted);
    font-size: 0.88rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

.entry-thumb {
    margin: 0 0 1.8rem;
    border-radius: 14px;
    overflow: hidden;
}

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

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

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

.entry-footer {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px dashed var(--dash);
}

.page-title {
    font-size: 2.4rem;
    margin-bottom: 1.6rem;
}

/* ------------------ sidebar ------------------ */

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

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

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

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

.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lav), var(--mint));
}

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

.sidebar li { margin-bottom: 0.75rem; line-height: 1.45; }

.sidebar a { color: #33294F; }

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

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

.sidebar p, .sidebar .textwidget { color: #423A5C; font-size: 0.95rem; }

/* ------------------ pagination ------------------ */

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

.pagination .nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

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

.pagination .page-numbers:hover,
.pagination > a:hover {
    transform: translateY(-2px);
    border-color: var(--lav);
    box-shadow: 0 8px 18px rgba(124, 77, 255, 0.16);
}

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

.pagination .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
    transform: none;
}

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

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

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

.search-form label {
    flex: 1 1 200px;
    min-width: 0;
    display: block;
}

.search-form input[type="search"] {
    width: 100%;
    min-width: 0;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 10px;
    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(--lav);
}

.search-form button {
    border: none;
    cursor: pointer;
    background: var(--lav);
    color: #FFFFFF;
    font-family: var(--head-font);
    border-radius: 10px;
    padding: 0.7rem 1.3rem;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.search-form button:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.3);
}

.error-box {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 2.4rem 2.2rem;
    box-shadow: 0 6px 18px rgba(124, 77, 255, 0.08);
}

.error-code {
    font-family: var(--head-font);
    font-size: 4.4rem;
    line-height: 1;
    color: var(--lav);
    margin: 0 0 0.6rem;
}

.error-box .search-form { margin: 1.6rem 0; }

.nothing-found {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.8rem 1.8rem;
}

/* ------------------ comments ------------------ */

.comments-area {
    margin-top: 2.8rem;
    padding-top: 1.8rem;
    border-top: 1px dashed var(--dash);
}

.comments-title, .comment-reply-title {
    font-family: var(--head-font);
    font-size: 1.5rem;
}

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

.comment-list ul.children { list-style: none; padding-left: 1.4rem; }

.comment-item {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 14px;
    padding: 1.2rem 1.3rem;
    margin-bottom: 1.1rem;
}

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

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

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

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

.comment-reply-link {
    font-size: 0.86rem;
    font-family: var(--head-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(--line);
    border-radius: 10px;
    background: #FFFFFF;
    color: var(--ink);
    font-family: var(--body-font);
    font-size: 0.95rem;
}

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

.comment-form label { display: block; margin-bottom: 0.3rem; font-size: 0.9rem; }

.comment-form .submit {
    border: none;
    cursor: pointer;
    background: var(--lav);
    color: #FFFFFF;
    font-family: var(--head-font);
    border-radius: 10px;
    padding: 0.8rem 1.6rem;
    font-size: 0.98rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment-form .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.3);
}

/* ------------------ footer ------------------ */

.site-foot {
    background: var(--foot-bg);
    color: #CFC7E8;
    padding: 3rem 0 1.6rem;
    margin-top: 2rem;
}

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

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

.site-foot .widget-title {
    font-family: var(--head-font);
    font-size: 1.05rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-left: 0.7rem;
    position: relative;
}

.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.2em;
    width: 3px;
    height: 1.1em;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--lav), var(--mint));
}

.site-foot p,
.site-foot .textwidget,
.site-foot li { color: #C3BADF; font-size: 0.94rem; }

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

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

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

.site-foot li { margin-bottom: 0.6rem; }

.site-foot a { color: #D8D1F0; }

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

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

.foot-bottom {
    margin-top: 2.4rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(124, 77, 255, 0.28);
    font-size: 0.86rem;
    color: #9C92BE;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--head-bg);
    color: #E6E0F7;
    border-top: 3px solid var(--mint);
    padding: 1rem 1.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
    justify-content: center;
}

.cookie-banner p { margin: 0; font-size: 0.9rem; max-width: 70ch; }

.cookie-banner a { color: #C3B0FF; }

.cookie-accept {
    border: none;
    cursor: pointer;
    background: var(--lav);
    color: #FFFFFF;
    font-family: var(--head-font);
    border-radius: 10px;
    padding: 0.6rem 1.4rem;
    font-size: 0.94rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cookie-accept:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(124, 77, 255, 0.35);
}

/* ------------------ adaptive ------------------ */

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .entry-head h1 { font-size: 2rem; }
    .layout-with-sidebar { grid-template-columns: minmax(0, 1fr); gap: 2.2rem; }
    .layout-single { width: 100%; }
    .icon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .front-latest .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.4rem; }
    .stat-cell:nth-child(2) { border-right: none; }
    .hero-tri { width: 150px; height: 135px; opacity: 0.3; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.55rem; }
    .nav-toggle { display: inline-block; }
    .main-nav { flex-basis: 100%; }
    .main-nav ul { flex-direction: column; gap: 0.8rem; padding-top: 0.9rem; }
    .head-inner { gap: 1rem; }
    .hero-inner { padding: 3.4rem 0 3.6rem; }
    .hero h1 { font-size: 1.95rem; }
    .hero-sub { font-size: 1rem; }
    .front-section { padding: 2.4rem 0; }
    .icon-grid { grid-template-columns: minmax(0, 1fr); }
    .front-latest .cards-grid { grid-template-columns: minmax(0, 1fr); }
    .stats-row { grid-template-columns: minmax(0, 1fr); }
    .stat-cell { border-right: none; border-bottom: 1px dashed rgba(0, 194, 168, 0.55); padding-bottom: 1.1rem; }
    .stat-cell:last-child { border-bottom: none; }
    .stat-num { font-size: 2.4rem; }
    .fs-quote { padding: 1.8rem 1.4rem 1.5rem; }
    .fs-quote p { font-size: 1.32rem; }
    .foot-cols { grid-template-columns: minmax(0, 1fr); gap: 1.8rem; }
    .error-box { padding: 1.6rem 1.4rem; }
    .page-title { font-size: 1.85rem; }
    .sidebar { padding: 1.3rem 1.2rem; }
    body::before { display: none; }
}
