/*
Theme Name: dds_prudentialrealtycenter.com
Author: Алексей Громов
Description: Индивидуальная тема для информационного сайта о жилой недвижимости. Скандинавский минимализм со швейцарской сеткой, холодная стальная палитра и янтарный акцент.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: prudrc
*/

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

:root {
    --bg: #F4F6F8;
    --bg-alt: #E8ECF1;
    --head-bg: #FFFFFF;
    --line: #C9D2DC;
    --foot-bg: #2C3A4A;
    --side-bg: #EDF1F5;
    --text: #1E2A36;
    --accent: #D97706;
    --accent-dark: #B45309;
    --blue: #2563EB;
    --muted: #7A8899;
    --card-line: #DDE3EA;
    --shell: min(92%, 1180px);
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    color: var(--text);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(226, 231, 237, 0.4) 0,
        rgba(226, 231, 237, 0.4) 1px,
        transparent 1px,
        transparent 24px
    );
    font-family: "Inter", "Manrope", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    font-weight: 400;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
}

body::after {
    content: "";
    position: fixed;
    right: -170px;
    bottom: -150px;
    width: 780px;
    height: 585px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 800 600'%3E%3Cg fill='none' stroke='%232563EB' stroke-width='18' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M40 300 400 40 760 300'/%3E%3Cpath d='M130 280v300M670 280v300'/%3E%3Cpath d='M130 580h540'/%3E%3Cpath d='M330 580V430h140v150'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
}

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

h1 { font-size: 3.2rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

p {
    margin: 0 0 1.1em;
}

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

figure {
    margin: 1.6em 0;
}

blockquote {
    margin: 1.8em 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.05rem;
}

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

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

li {
    margin-bottom: 0.4em;
}

code, pre {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.92em;
}

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    background: var(--bg-alt);
    border: 1px solid var(--card-line);
    border-radius: 8px;
}

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

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

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

.table-scroll {
    overflow-x: auto;
}

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

/* ==================================================================
   2. Ссылки и кнопки
   ================================================================== */

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

.entry-content a,
.card-excerpt a,
.side-block a,
.crumbs a {
    position: relative;
    display: inline;
}

.entry-content a::after,
.card-excerpt a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -4px;
    height: 2px;
    background: var(--accent);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.22s ease;
}

.entry-content a:hover::after,
.card-excerpt a:hover::after {
    transform: scaleX(1);
}

.btn {
    display: inline-block;
    padding: 0.78rem 1.7rem;
    border-radius: 6px;
    border: 2px solid transparent;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

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

.btn-fill:hover,
.btn-fill:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

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

.btn-out:hover,
.btn-out:focus {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    color: #FFFFFF;
    transform: translateY(-1px);
}

.hero .btn-out {
    color: #FFFFFF;
}

/* ==================================================================
   3. Каркас страницы
   ================================================================== */

.shell {
    width: var(--shell);
    margin-inline: auto;
}

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

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

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

.site-head,
.site-main,
.site-foot,
.topline {
    position: relative;
    z-index: 1;
}

.site-main {
    padding: 2.6rem 0 4rem;
}

.front-main {
    padding: 0 0 0;
}

/* ==================================================================
   4. Верхняя полоса, шапка, меню
   ================================================================== */

.topline {
    display: flex;
    height: 3px;
}

.topline span {
    display: block;
    flex: 1 1 50%;
}

.topline-a { background: var(--accent); }
.topline-b { background: var(--blue); }

.site-head {
    background: var(--head-bg);
    border-bottom: 1px solid var(--line);
}

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

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

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

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

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

.brand-name {
    display: block;
    margin: 0;
    font-size: 0.98rem;
    font-weight: 700;
    line-height: 1.35;
    letter-spacing: -0.01em;
    color: var(--text);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-name a {
    color: inherit;
}

.brand-desc {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin: 0.25rem 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--muted);
}

.nav-toggle {
    display: none;
    padding: 0.55rem 0.9rem;
    background: transparent;
    border: 2px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
}

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

.main-nav li {
    margin: 0;
}

.main-nav a {
    display: inline-block;
    padding: 0.2rem 0;
    color: var(--text);
    font-size: 0.97rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ==================================================================
   5. Заголовки секций, крошки
   ================================================================== */

.sec-title {
    display: flex;
    align-items: center;
    margin-bottom: 1.6rem;
    font-size: 2rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 auto;
    width: 32px;
    height: 4px;
    margin-right: 16px;
    background: var(--accent);
}

.crumbs {
    margin-bottom: 1.6rem;
    font-size: 0.86rem;
    color: var(--muted);
}

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

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

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

.entry-title::first-letter,
.hero-title::first-letter {
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.5em;
    line-height: 1;
    color: var(--accent);
}

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

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

.card-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.6rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(30, 42, 54, 0.06);
    overflow: hidden;
    transition: box-shadow 0.22s ease, transform 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    box-shadow: 0 6px 16px rgba(30, 42, 54, 0.10);
    transform: translateY(-2px);
    border-color: var(--accent);
}

.card-thumb {
    display: block;
    line-height: 0;
}

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

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

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

.card-title a {
    color: var(--text);
    transition: color 0.2s ease;
}

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

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

.card-tag {
    padding: 0.12rem 0.55rem;
    background: rgba(37, 99, 235, 0.08);
    border-radius: 4px;
    color: var(--blue);
    font-weight: 600;
}

.card-tag:hover {
    background: rgba(217, 119, 6, 0.12);
    color: var(--accent-dark);
}

.card-excerpt {
    flex: 1;
    margin-bottom: 1.1rem;
    font-size: 0.95rem;
    color: #40505F;
}

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

.card-more {
    align-self: flex-start;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--accent);
}

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

/* ==================================================================
   7. Главная: секции
   ================================================================== */

.fs {
    padding: 80px 0;
}

.fs-alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(
        45deg,
        rgba(208, 216, 226, 0.5) 0,
        rgba(208, 216, 226, 0.5) 1px,
        transparent 1px,
        transparent 24px
    );
}

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

/* 7.1 Hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 96px 0;
    background: #1E2A36;
}

.hero-media {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero-media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: rgba(30, 42, 54, 0.7);
}

.hero .shell {
    position: relative;
    z-index: 2;
}

.hero-box {
    width: 50%;
    min-width: 0;
    text-align: left;
}

.hero-title {
    margin-bottom: 1rem;
    color: #FFFFFF;
    font-size: 3.2rem;
}

.hero-sub {
    margin-bottom: 1.8rem;
    color: #D5DEE6;
    font-size: 1.05rem;
}

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

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

.stats-cell {
    min-width: 0;
    padding: 0 1.4rem;
    border-left: 1px solid var(--line);
    text-align: center;
}

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

.stats-num {
    display: block;
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: var(--accent);
}

.stats-label {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--muted);
}

/* 7.3 Таймлайн */

.tl {
    position: relative;
    padding: 0.6rem 0;
}

.tl::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1px;
    margin-left: -0.5px;
    background: var(--blue);
}

.tl-item {
    position: relative;
    width: 50%;
    padding: 0 2.6rem;
    margin-bottom: 2rem;
}

.tl-item:nth-child(odd) {
    margin-left: 0;
}

.tl-item:nth-child(even) {
    margin-left: 50%;
}

.tl-item::before {
    content: "";
    position: absolute;
    top: 2rem;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent);
}

.tl-item:nth-child(odd)::before {
    right: -5px;
}

.tl-item:nth-child(even)::before {
    left: -5px;
}

.tl-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    min-width: 0;
    padding: 1.3rem 1.5rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(30, 42, 54, 0.06);
}

.tl-icon {
    flex: 0 0 48px;
}

.tl-icon img {
    display: block;
    width: 48px;
    height: 48px;
}

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

.tl-step {
    display: block;
    margin-bottom: 0.2rem;
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--blue);
}

.tl-title {
    margin: 0 0 0.35rem;
    font-size: 1.15rem;
}

.tl-desc {
    margin: 0;
    font-size: 0.93rem;
    color: #40505F;
}

/* 7.4 CTA */

.fs-cta-wrap {
    padding: 80px 0;
}

.fs-cta {
    position: relative;
    display: flex;
    align-items: center;
    gap: 2.4rem;
    padding: 3rem 2.6rem;
    background: var(--foot-bg);
    border-radius: 10px;
}

.cta-bar {
    flex: 0 0 4px;
    align-self: center;
    width: 4px;
    height: 120px;
    background: var(--accent);
}

.cta-text {
    min-width: 0;
    flex: 1;
}

.cta-text h2 {
    margin-bottom: 0.6rem;
    color: #FFFFFF;
    font-size: 2rem;
}

.cta-text p {
    margin-bottom: 0;
    color: #A8B8C8;
}

.cta-act {
    flex: 0 0 auto;
}

/* 7.5 Последние записи */

.fs-latest .fs-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.4rem;
    flex-wrap: wrap;
}

.fs-head .sec-title {
    margin-bottom: 1.6rem;
}

.fs-all {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--blue);
}

.fs-all:hover {
    color: var(--accent);
}

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

.entry {
    margin-bottom: 2.6rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 0 0 10px 10px;
    box-shadow: 0 2px 8px rgba(30, 42, 54, 0.06);
    padding: 2.2rem 2.4rem 2.6rem;
}

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

.entry-title {
    margin-bottom: 0.6rem;
    font-size: 2.4rem;
}

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

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

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3 {
    margin-top: 1.7em;
}

.entry-footer {
    margin-top: 1.8rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--card-line);
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-footer a {
    color: var(--blue);
}

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

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

.page-head h1 {
    font-size: 2.6rem;
    margin-bottom: 0.4rem;
}

.page-head p {
    margin: 0;
    color: var(--muted);
}

.post-nav {
    display: flex;
    justify-content: space-between;
    gap: 1.4rem;
    margin-bottom: 2.6rem;
    font-size: 0.93rem;
}

.post-nav a {
    color: var(--blue);
    font-weight: 600;
}

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

.no-posts {
    padding: 2rem 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 10px;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 2.4rem 0 0;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 6px;
    color: var(--text);
    font-size: 0.93rem;
    font-weight: 600;
    text-align: center;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s 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: #FFFFFF;
}

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

/* ==================================================================
   10. Сайдбар
   ================================================================== */

.sidebar {
    min-width: 0;
}

.side-block {
    margin-bottom: 1.6rem;
    padding: 1.4rem 1.5rem;
    background: var(--side-bg);
    border: 1px solid var(--card-line);
    border-radius: 10px;
    color: var(--text);
    font-size: 0.94rem;
}

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

.side-block-title {
    display: flex;
    align-items: center;
    margin: 0 0 0.9rem;
    font-size: 1.05rem;
    color: var(--text);
}

.side-block-title::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 3px;
    margin-right: 10px;
    background: var(--accent);
}

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

.side-block li {
    margin-bottom: 0.6rem;
    padding-bottom: 0.6rem;
    border-bottom: 1px dashed var(--line);
    line-height: 1.45;
}

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

.side-block a {
    color: #1E2A36;
    font-weight: 600;
}

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

.side-block .post-date,
.side-block .rss-date {
    display: block;
    font-size: 0.8rem;
    color: #5D6B7A;
}

.side-block select,
.side-block input[type="search"],
.side-block input[type="text"] {
    width: 100%;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text);
    font: inherit;
    font-size: 0.93rem;
}

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

.site-foot {
    margin-top: 3rem;
    background: var(--foot-bg);
    color: #CBD6E0;
}

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

.foot-col {
    min-width: 0;
    font-size: 0.93rem;
    color: #CBD6E0;
}

.foot-block {
    margin-bottom: 1.4rem;
}

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

.foot-block-title {
    display: flex;
    align-items: center;
    margin: 0 0 0.9rem;
    font-size: 1.02rem;
    color: #FFFFFF;
}

.foot-block-title::before {
    content: "";
    flex: 0 0 auto;
    width: 18px;
    height: 3px;
    margin-right: 10px;
    background: var(--accent);
}

.foot-col p {
    color: #CBD6E0;
}

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

.foot-col li {
    margin-bottom: 0.55rem;
    line-height: 1.5;
}

.foot-col a {
    color: #E4EAF0;
}

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

.foot-col .post-date,
.foot-col .rss-date {
    display: block;
    font-size: 0.8rem;
    color: #9FB0C0;
}

.foot-contacts a {
    color: var(--accent);
    font-weight: 600;
}

.copyright {
    padding: 1.2rem 0 1.6rem;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.85rem;
    color: #9FB0C0;
}

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

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

.cookie-banner {
    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;
    padding: 1rem 1.6rem;
    background: #223040;
    border-top: 3px solid var(--accent);
    color: #E4EAF0;
    font-size: 0.9rem;
}

.cookie-banner p {
    margin: 0;
    min-width: 0;
    flex: 1 1 320px;
}

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

.cookie-btn {
    padding: 0.55rem 1.4rem;
    font-size: 0.9rem;
}

/* ==================================================================
   13. Комментарии и формы
   ================================================================== */

.talks {
    padding: 2rem 2.2rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 10px;
}

.talks-title {
    display: flex;
    align-items: center;
    font-size: 1.4rem;
    margin-bottom: 1.4rem;
}

.talks-title::before {
    content: "";
    flex: 0 0 auto;
    width: 24px;
    height: 4px;
    margin-right: 14px;
    background: var(--accent);
}

.talk-list {
    margin: 0 0 1.8rem;
    padding: 0;
    list-style: none;
}

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

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

.talk-body {
    padding: 1.1rem 1.3rem;
    background: var(--bg-alt);
    border-radius: 8px;
}

.talk-head {
    display: flex;
    align-items: baseline;
    gap: 0.8rem;
    margin-bottom: 0.5rem;
}

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

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

.talk-text p:last-child {
    margin-bottom: 0;
}

.talk-tools {
    margin-top: 0.6rem;
    font-size: 0.88rem;
}

.talk-hold {
    font-size: 0.86rem;
    color: var(--accent-dark);
}

.comment-respond {
    margin-top: 1.4rem;
}

.comment-reply-title {
    font-size: 1.2rem;
}

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.65rem 0.8rem;
    margin-bottom: 1rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

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

.comment-form .submit {
    display: inline-block;
    padding: 0.78rem 1.7rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.98rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.2s ease;
}

.comment-form .submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
    transform: translateY(-1px);
}

.search-form {
    display: flex;
    gap: 0.6rem;
    min-width: 0;
}

.search-form .search-field {
    flex: 1;
    min-width: 0;
    padding: 0.62rem 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--text);
    font: inherit;
    font-size: 0.95rem;
}

.search-form .search-submit {
    padding: 0.62rem 1.2rem;
    background: var(--accent);
    border: 2px solid var(--accent);
    border-radius: 6px;
    color: #FFFFFF;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.search-form .search-submit:hover {
    background: var(--accent-dark);
    border-color: var(--accent-dark);
}

/* ==================================================================
   14. 404
   ================================================================== */

.err-box {
    padding: 2.6rem 2.4rem;
    background: #FFFFFF;
    border: 1px solid var(--card-line);
    border-radius: 10px;
    text-align: left;
}

.err-code {
    display: block;
    font-size: 4.4rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
}

.err-actions {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-top: 1.6rem;
}

.err-search {
    margin-top: 1.8rem;
    max-width: 480px;
}

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

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

    .layout-with-sidebar {
        display: block;
    }

    .sidebar {
        margin-top: 2.6rem;
    }

    .layout-single,
    .fs-inner {
        width: 100%;
    }

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

    .hero-box {
        width: 72%;
    }

    .hero-title {
        font-size: 2.4rem;
    }

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

    .stats-cell:nth-child(odd) {
        border-left: 0;
    }

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

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

    h1 { font-size: 1.95rem; }
    h2 { font-size: 1.45rem; }

    .site-main {
        padding: 1.8rem 0 2.6rem;
    }

    .head-inner {
        padding: 1rem 0;
    }

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

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

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

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

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

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

    .fs,
    .fs-cta-wrap {
        padding: 48px 0;
    }

    .hero {
        padding: 64px 0;
    }

    .hero-box {
        width: 100%;
    }

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

    .sec-title {
        font-size: 1.45rem;
    }

    .sec-title::before {
        width: 22px;
        margin-right: 12px;
    }

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

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

    .stats-cell {
        padding: 0;
        border-left: 0;
    }

    .stats-cell + .stats-cell {
        padding-top: 1.2rem;
        border-top: 1px solid var(--line);
    }

    .tl::before {
        left: 9px;
        margin-left: 0;
    }

    .tl-item,
    .tl-item:nth-child(even) {
        width: 100%;
        margin-left: 0;
        padding: 0 0 0 2.2rem;
    }

    .tl-item::before,
    .tl-item:nth-child(odd)::before,
    .tl-item:nth-child(even)::before {
        left: 4px;
        right: auto;
        top: 1.6rem;
    }

    .tl-card {
        flex-direction: column;
        gap: 0.7rem;
        padding: 1.1rem 1.2rem;
    }

    .fs-cta {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.4rem;
        padding: 1.8rem 1.4rem;
    }

    .cta-bar {
        width: 60px;
        height: 4px;
        flex: 0 0 4px;
    }

    .entry,
    .talks,
    .err-box,
    .no-posts {
        padding: 1.5rem 1.3rem 1.7rem;
    }

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

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

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

    .post-nav {
        flex-direction: column;
        gap: 0.6rem;
    }
}
