/*
Theme Name: dds_klik1malaysia.com
Description: Индивидуальная тема для информационного сайта о недвижимости и практических разборах. Лавандовый техно-минимализм, холодная палитра, акцент на структурированном чтении.
Author: Егор Фёдоров
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: klikdom
*/

:root {
    --bg: #F8F7FC;
    --bg-alt: #EEF0F9;
    --ink: #1F1A30;
    --accent: #7C5CFC;
    --accent-soft: #9B82FF;
    --accent2: #00B4D8;
    --muted: #8885A3;
    --line: #D5D3E6;
    --dark: #1E1B2E;
    --dark-line: #2A2440;
    --sans: "Inter", "Manrope", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --serif: "Lora", "Source Serif Pro", Georgia, "Times New Roman", serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    background-color: var(--bg);
    background-image: radial-gradient(var(--line) 1px, transparent 1px);
    background-size: 24px 24px;
    color: var(--ink);
    font-family: var(--serif);
    font-size: 17px;
    line-height: 1.75;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--sans);
    color: var(--ink);
    line-height: 1.2;
    letter-spacing: -0.015em;
    margin: 0 0 0.6em;
    font-weight: 700;
}

h1 { font-size: 3.6rem; letter-spacing: -0.03em; }
h2 { font-size: 2.05rem; }
h3 { font-size: 1.5rem; }
h4 { font-size: 1.22rem; }
h5, h6 { font-size: 1.05rem; }

p {
    margin: 0 0 1.15em;
}

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

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

.page-wrap {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.site-main {
    flex: 1;
    display: block;
}

.page-shell {
    padding: 2.4rem 0 4.5rem;
}

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

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

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

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

.btn {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.94rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.2;
    padding: 0.78em 1.9em;
    border-radius: 50px;
    border: 1.5px solid var(--accent);
    background: linear-gradient(115deg, rgba(124, 92, 252, 0.06), rgba(0, 180, 216, 0.03));
    color: var(--accent);
    cursor: pointer;
    text-decoration: none;
    transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus {
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(124, 92, 252, 0.25);
}

.btn-solid {
    background: var(--accent);
    color: #FFFFFF;
}

.btn-solid:hover,
.btn-solid:focus {
    background: var(--accent-soft);
    border-color: var(--accent-soft);
    color: #FFFFFF;
}

.btn-ghost {
    background: transparent;
    border-color: transparent;
    color: var(--accent);
    padding-left: 0;
    padding-right: 0;
}

.btn-ghost:hover,
.btn-ghost:focus {
    background: transparent;
    color: var(--accent2);
    box-shadow: none;
    transform: translateY(-2px);
}

.btn-light {
    border-color: rgba(255, 255, 255, 0.8);
    color: #FFFFFF;
    background: rgba(255, 255, 255, 0.06);
}

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

.prose a,
.card-excerpt a,
.widget a,
.trail a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-style: dashed;
    text-decoration-thickness: 1px;
    text-underline-offset: 5px;
    transition: color 0.16s ease, text-decoration-color 0.16s ease;
}

.prose a:hover,
.card-excerpt a:hover,
.widget a:hover,
.trail a:hover {
    color: var(--accent-soft);
    text-decoration-style: solid;
}

/* ------------------------------------------------------------------
 * Шапка
 * ------------------------------------------------------------------ */

.top {
    position: static;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--sans);
    font-size: 1.06rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--ink);
    letter-spacing: -0.01em;
}

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

.brand-tag {
    margin: 0.3rem 0 0;
    font-family: var(--sans);
    font-size: 0.78rem;
    line-height: 1.45;
    color: var(--muted);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--ink);
    background: transparent;
    border: 1.5px solid var(--line);
    border-radius: 50px;
    padding: 0.55em 1.2em;
    cursor: pointer;
}

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

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

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

.nav-toggle.is-active {
    border-color: var(--accent);
}

.main-nav {
    flex: 0 1 auto;
}

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

.nav-list a {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--ink);
    padding: 0.25rem 0;
    border-bottom: 1.5px solid transparent;
}

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.9rem;
    border-left: 1px solid var(--line);
}

/* ------------------------------------------------------------------
 * Секции главной
 * ------------------------------------------------------------------ */

.fs {
    position: relative;
    padding: 80px 0;
    overflow: hidden;
}

.fs-inner {
    width: min(85%, 1180px);
    margin-inline: auto;
    min-width: 0;
    position: relative;
    z-index: 2;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(31, 26, 48, 0.03) 0, rgba(31, 26, 48, 0.03) 1px, transparent 1px, transparent 40px);
}

.fs-alt::after {
    content: "";
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 320px;
    height: 260px;
    background-image: repeating-linear-gradient(135deg, rgba(124, 92, 252, 0.14) 0, rgba(124, 92, 252, 0.14) 1.5px, transparent 1.5px, transparent 14px);
    pointer-events: none;
    z-index: 1;
}

.sec-title {
    position: relative;
    font-size: 2.05rem;
    margin: 0 0 2.2rem;
    padding-bottom: 0.7rem;
    display: table;
}

.sec-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66%;
    height: 1.5px;
    background: var(--accent);
}

/* Hero */

.fs-hero {
    padding: 0;
    background: var(--dark);
    color: #FFFFFF;
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(115deg, rgba(124, 92, 252, 0.86), rgba(30, 27, 46, 0.92));
    z-index: 1;
}

.hero-grid {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
    padding: 96px 0;
}

.hero-text {
    min-width: 0;
    max-width: 44rem;
}

.hero-kicker {
    display: inline-block;
    font-family: var(--sans);
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: #7FE6FA;
    margin-bottom: 1.1rem;
}

.hero-title {
    color: #FFFFFF;
    font-size: 3.6rem;
    letter-spacing: -0.03em;
    margin: 0 0 1rem;
}

.hero-lead {
    font-family: var(--serif);
    font-size: 1.1rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.86);
    margin: 0 0 1.9rem;
    max-width: 40rem;
}

.hero-house {
    flex: 0 0 auto;
    opacity: 0.75;
}

/* Чек-лист */

.check-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 1.15rem;
}

.check-item {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    min-width: 0;
}

.check-box {
    flex: 0 0 auto;
    position: relative;
    width: 34px;
    height: 34px;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    background: transparent;
}

.check-box::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 8px;
    width: 9px;
    height: 15px;
    border-right: 2.5px solid var(--accent2);
    border-bottom: 2.5px solid var(--accent2);
    transform: rotate(42deg);
}

.check-body {
    min-width: 0;
    font-size: 1.02rem;
    line-height: 1.7;
}

.check-body strong {
    font-family: var(--sans);
    color: var(--ink);
}

/* Статистика */

.stat-row {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0;
    background: linear-gradient(120deg, rgba(124, 92, 252, 0.08), rgba(0, 180, 216, 0.04));
    border-radius: 14px;
    padding: 2.4rem 2.2rem;
}

.stat-cell {
    min-width: 0;
    padding: 0.4rem 1.8rem;
    border-left: 1px solid var(--line);
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}

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

.stat-num {
    font-family: var(--sans);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--accent);
}

.stat-cap {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--muted);
}

.stat-slash {
    display: block;
    width: 120px;
    height: 10px;
    margin-top: 1.8rem;
    background: var(--accent2);
    opacity: 0.5;
    clip-path: polygon(12px 0, 100% 0, calc(100% - 12px) 100%, 0 100%);
}

.fs-stats::before {
    content: "";
    position: absolute;
    left: 10%;
    right: 10%;
    top: 0;
    height: 1px;
    background: var(--line);
}

/* Карта тем */

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

.map-tile {
    display: block;
    min-width: 0;
    background: var(--bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--line);
    border-radius: 16px;
    padding: 1.7rem 1.6rem;
    color: var(--ink);
    transition: border-color 0.18s ease, background 0.18s ease;
}

.map-tile:hover,
.map-tile:focus {
    border-left-color: var(--accent);
    background: var(--bg-alt);
}

.map-tile svg {
    display: block;
    margin-bottom: 1rem;
}

.map-name {
    display: block;
    font-family: var(--sans);
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.map-desc {
    display: block;
    font-size: 0.93rem;
    line-height: 1.55;
    color: var(--muted);
}

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

.card-stack {
    display: grid;
    gap: 1.5rem;
}

.card {
    display: flex;
    flex-direction: column;
    position: relative;
    background: var(--bg);
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 24px;
    overflow: hidden;
    transition: border-color 0.18s ease;
}

.card::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.18s ease;
}

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

.card:hover::before {
    opacity: 1;
}

.card-layout {
    display: flex;
    gap: 1.6rem;
    align-items: stretch;
    min-width: 0;
    flex: 1;
}

.card-thumb-wrap {
    flex: 0 0 240px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    background: var(--bg-alt);
    min-height: 170px;
}

.card-thumb-wrap a {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.card-thumb-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    filter: grayscale(100%) contrast(0.92) brightness(1.02);
}

.card-thumb-wrap::after {
    content: "";
    position: absolute;
    inset: 0;
    background: #8885A3;
    mix-blend-mode: color;
    opacity: 0.55;
    pointer-events: none;
}

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

.card-title {
    position: relative;
    font-size: 1.35rem;
    line-height: 1.3;
    margin: 0 0 0.55rem;
    padding-left: 14px;
}

.card-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

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

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

.card-meta {
    font-family: var(--sans);
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.7rem;
    padding-left: 14px;
}

.card-meta-sep {
    margin: 0 0.4rem;
    color: var(--line);
}

.card-excerpt {
    padding-left: 14px;
    font-size: 0.98rem;
    color: var(--ink);
}

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

.card-more {
    align-self: flex-start;
    margin-left: 14px;
    margin-top: auto;
    font-size: 0.9rem;
}

.empty-note {
    color: var(--muted);
    font-size: 1.02rem;
}

/* ------------------------------------------------------------------
 * Хлебные крошки, заголовки страниц
 * ------------------------------------------------------------------ */

.trail {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 1.8rem;
    line-height: 1.7;
}

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

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

.trail-sep {
    margin: 0 0.4rem;
    color: var(--line);
}

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

.page-title {
    font-size: 2.6rem;
    margin: 0 0 0.6rem;
}

.page-sub {
    color: var(--muted);
    font-size: 1.02rem;
    margin: 0;
}

.single-meta {
    font-family: var(--sans);
    font-size: 0.84rem;
    color: var(--muted);
}

.single-cover {
    margin: 0 0 2rem;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

/* ------------------------------------------------------------------
 * Текст записи
 * ------------------------------------------------------------------ */

.prose {
    font-size: 1.04rem;
    line-height: 1.8;
}

.prose h2,
.prose h3,
.prose h4 {
    position: relative;
    margin: 2.2rem 0 0.9rem;
    padding-left: 16px;
}

.prose h2::before,
.prose h3::before,
.prose h4::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.55em;
    width: 6px;
    height: 6px;
    background: var(--accent);
}

.prose ul,
.prose ol {
    margin: 0 0 1.3em;
    padding-left: 1.6rem;
}

.prose ul {
    list-style: none;
    padding-left: 1.5rem;
}

.prose ul li {
    position: relative;
    margin-bottom: 0.55em;
    padding-left: 0.4rem;
}

.prose ul li::before {
    content: "";
    position: absolute;
    left: -1.1rem;
    top: 0.72em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
}

.prose ol li {
    margin-bottom: 0.55em;
}

.prose blockquote {
    margin: 1.8rem 0;
    padding: 1.6rem 1.8rem;
    border-left: 6px solid var(--accent2);
    background: linear-gradient(120deg, rgba(124, 92, 252, 0.08), rgba(0, 180, 216, 0.04));
    border-radius: 0 12px 12px 0;
    font-style: normal;
}

.prose blockquote p {
    margin: 0 0 0.6em;
}

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

.prose blockquote::before {
    content: "✓";
    display: inline-block;
    margin-right: 0.6rem;
    color: var(--accent2);
    font-family: var(--sans);
    font-weight: 700;
}

.prose img {
    display: block;
    height: auto;
    border-radius: 12px;
}

.prose figure {
    margin: 1.8rem 0;
}

.prose figcaption {
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-top: 0.6rem;
}

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

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

.prose th {
    background: var(--bg-alt);
    font-family: var(--sans);
    font-weight: 600;
}

.prose code {
    background: var(--bg-alt);
    padding: 0.15em 0.4em;
    border-radius: 4px;
    font-size: 0.92em;
}

.prose pre {
    background: var(--dark);
    color: #EDEAFB;
    padding: 1.2rem 1.4rem;
    border-radius: 12px;
    overflow-x: auto;
}

.single-tax {
    margin-top: 2.2rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-family: var(--sans);
    font-size: 0.86rem;
}

.single-tax-label {
    color: var(--muted);
    margin-right: 0.6rem;
}

.tax-chip {
    display: inline-block;
    margin: 0 0.4rem 0.4rem 0;
    padding: 0.3em 0.9em;
    border: 1px solid var(--line);
    border-radius: 50px;
    color: var(--accent);
}

.tax-chip:hover {
    border-color: var(--accent);
}

.post-jump {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.2rem;
    margin-top: 2.4rem;
}

.jump-link {
    display: block;
    min-width: 0;
    padding: 1.2rem 1.4rem;
    border: 1px solid var(--line);
    border-radius: 16px;
    color: var(--ink);
    transition: border-color 0.18s ease;
}

.jump-link:hover {
    border-color: var(--accent);
}

.jump-next {
    text-align: right;
}

.jump-label {
    display: block;
    font-family: var(--sans);
    font-size: 0.76rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.jump-title {
    display: block;
    font-family: var(--sans);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.4;
}

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

.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 1rem;
    border: 1.5px solid var(--line);
    border-radius: 50px;
    font-family: var(--sans);
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--ink);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease, color 0.18s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--accent);
    background: var(--accent);
    color: #FFFFFF;
    transform: translateY(-2px);
}

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

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

.comments-pagination {
    margin-top: 1.6rem;
    font-family: var(--sans);
    font-size: 0.9rem;
}

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

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

.sidebar .widget {
    margin-bottom: 1.9rem;
    color: var(--ink);
}

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

.sidebar .widget-title {
    position: relative;
    font-size: 1.06rem;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
    color: var(--ink);
}

.sidebar .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66%;
    height: 1.5px;
    background: var(--accent);
}

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

.sidebar .widget li {
    position: relative;
    padding: 0 0 0.7rem 1.1rem;
    margin-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--ink);
}

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

.sidebar .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    background: var(--accent2);
}

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

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

.sidebar .widget p {
    color: var(--ink);
    font-size: 0.96rem;
    margin: 0 0 0.9em;
}

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

/* ------------------------------------------------------------------
 * Формы
 * ------------------------------------------------------------------ */

.find-label {
    display: block;
}

.find-label-text {
    display: block;
    font-family: var(--sans);
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.5rem;
}

.find-row {
    display: flex;
    gap: 0.6rem;
    min-width: 0;
}

.find-input {
    flex: 1;
    min-width: 0;
    font-family: var(--serif);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 50px;
    padding: 0.7em 1.2em;
}

.find-input:focus {
    outline: none;
    border-color: var(--accent);
}

.find-btn {
    flex: 0 0 auto;
}

.err-code {
    display: block;
    font-family: var(--sans);
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    letter-spacing: -0.04em;
    margin-bottom: 0.6rem;
}

.err-tools {
    display: grid;
    gap: 1.4rem;
    justify-items: start;
    max-width: 34rem;
}

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

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

.talk-title {
    font-size: 1.5rem;
    margin-bottom: 1.6rem;
}

.talk-list,
.talk-list .children {
    list-style: none;
    margin: 0;
    padding: 0;
}

.talk-list .children {
    margin-left: 1.6rem;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line);
}

.talk-item {
    margin-bottom: 1.4rem;
}

.talk-body {
    border: 1px solid var(--line);
    border-radius: 16px;
    padding: 1.4rem 1.6rem;
    background: var(--bg);
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 1rem;
    align-items: baseline;
    margin-bottom: 0.6rem;
}

.talk-author {
    font-family: var(--sans);
    font-weight: 600;
}

.talk-date {
    font-family: var(--sans);
    font-size: 0.78rem;
    color: var(--muted);
}

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

.talk-actions {
    font-family: var(--sans);
    font-size: 0.86rem;
}

.talk-hold {
    color: var(--muted);
    font-size: 0.9rem;
}

.talk-closed {
    color: var(--muted);
}

.comment-form {
    margin-top: 2rem;
}

.comment-form label {
    display: block;
    font-family: var(--sans);
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 0.4rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 85%;
    max-width: 640px;
    font-family: var(--serif);
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--bg);
    border: 1.5px solid var(--line);
    border-radius: 12px;
    padding: 0.7em 1em;
}

.comment-form textarea {
    width: 100%;
    max-width: none;
}

.comment-form input:focus,
.comment-form textarea:focus {
    outline: none;
    border-color: var(--accent);
}

.comment-form .form-submit {
    margin-top: 1.2rem;
}

.comment-form input[type="submit"] {
    font-family: var(--sans);
}

.talk-note {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.bottom {
    position: relative;
    background: var(--dark);
    color: #D9D5EC;
    padding: 3.6rem 0 2.2rem;
    overflow: hidden;
}

.bottom-glyph {
    position: absolute;
    right: 2%;
    bottom: 0;
    opacity: 0.9;
    z-index: 0;
    pointer-events: none;
}

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

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

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

.bottom .widget {
    color: #D9D5EC;
    font-size: 0.95rem;
}

.bottom .widget-title {
    position: relative;
    font-size: 1.02rem;
    color: #FFFFFF;
    margin: 0 0 1rem;
    padding-bottom: 0.6rem;
}

.bottom .widget-title::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 66%;
    height: 1.5px;
    background: var(--accent2);
}

.bottom .widget p {
    color: #C3BFDA;
    line-height: 1.65;
    margin: 0 0 0.9em;
}

.bottom .widget li {
    position: relative;
    padding: 0 0 0.5rem 1.05rem;
    line-height: 1.5;
}

.bottom .widget li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.6em;
    width: 6px;
    height: 6px;
    background: var(--accent2);
}

.bottom .widget a {
    color: #D9D5EC;
    text-decoration: none;
}

.bottom .widget a:hover {
    color: #FFFFFF;
}

.bottom .post-date {
    display: block;
    font-family: var(--sans);
    font-size: 0.78rem;
    color: #9A94BA;
}

.bottom-note {
    margin: 2.8rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid var(--dark-line);
    font-family: var(--sans);
    font-size: 0.82rem;
    color: #9A94BA;
}

/* ------------------------------------------------------------------
 * Cookie-уведомление
 * ------------------------------------------------------------------ */

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

.cookie-note {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
    background: var(--dark);
    border-top: 1.5px solid var(--accent);
    padding: 1.1rem 2rem;
}

.cookie-text {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #D9D5EC;
}

.cookie-ok {
    flex: 0 0 auto;
}

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .hero-title { font-size: 2.5rem; }
    .page-title { font-size: 2rem; }

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

    .layout-single {
        width: 100%;
    }

    .fs-inner {
        width: 92%;
    }

    .fs {
        padding: 56px 0;
    }

    .hero-inner {
        padding: 64px 0;
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-house {
        align-self: flex-end;
    }

    .nav-toggle {
        display: inline-flex;
        margin-left: auto;
    }

    .main-nav {
        flex: 1 1 100%;
        display: none;
    }

    .main-nav.is-open {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        gap: 0;
        border-top: 1px solid var(--line);
        margin-top: 1rem;
        padding-top: 0.6rem;
    }

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

    .nav-list a {
        display: block;
        padding: 0.7rem 0;
        border-bottom: 0;
    }

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

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

    .bottom-glyph {
        display: none;
    }
}

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

    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.6rem; }
    .hero-title { font-size: 2.05rem; }
    .page-title { font-size: 1.7rem; }
    .sec-title { font-size: 1.6rem; }

    .fs {
        padding: 44px 0;
    }

    .hero-inner {
        padding: 52px 0;
    }

    .hero-house {
        width: 120px;
        height: 100px;
    }

    .card {
        padding: 18px;
    }

    .card-layout {
        flex-direction: column;
        gap: 1.1rem;
    }

    .card-thumb-wrap {
        flex: none;
        width: 100%;
        position: static;
        min-height: 0;
    }

    .card-thumb-wrap a {
        position: static;
    }

    .card-thumb-wrap img {
        width: 100%;
        height: auto;
        aspect-ratio: 16 / 9;
    }

    .stat-row {
        grid-template-columns: minmax(0, 1fr);
        padding: 1.8rem 1.4rem;
        gap: 1.6rem;
    }

    .stat-cell {
        border-left: 0;
        padding: 0 0 1.4rem;
        border-bottom: 1px solid var(--line);
    }

    .stat-cell:last-child {
        border-bottom: 0;
        padding-bottom: 0;
    }

    .stat-num {
        font-size: 2.4rem;
    }

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

    .map-tile {
        padding: 1.4rem 1.3rem;
    }

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

    .jump-next {
        text-align: left;
    }

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

    .cookie-note {
        padding: 1rem 1.3rem;
        gap: 0.9rem;
    }

    .prose blockquote {
        padding: 1.2rem 1.2rem;
    }

    .talk-body {
        padding: 1.1rem 1.2rem;
    }

    .talk-list .children {
        margin-left: 0.6rem;
        padding-left: 0.9rem;
    }

    .comment-form input[type="text"],
    .comment-form input[type="email"],
    .comment-form input[type="url"] {
        width: 100%;
    }

    .find-row {
        flex-wrap: wrap;
    }

    .find-input {
        flex: 1 1 100%;
    }
}
