/*
Theme Name: dds_aw8la.com
Theme URI: https://aw8la.com/
Author: Анна Савельева
Author URI: https://aw8la.com/
Description: Тема для информационного портала о недвижимости: каталог предложений, аналитика, статьи о рынке и практические материалы. Холодная сине-стальная гамма, чертёжный паттерн фона, аккуратная типографика.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: planum
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --deep: #0B1B2B;
    --panel: #FFFFFF;
    --text: #1A2B3C;
    --accent: #2F6FED;
    --accent2: #00B4D8;
    --muted: #6B7F94;
    --hair: #D0DCE8;
    --light: #E0F0FF;
    --font-head: "Space Grotesk", "Inter Tight", "Trebuchet MS", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body: "IBM Plex Sans", "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 200'%3E%3Cg fill='none' stroke='%232F6FED' stroke-opacity='0.06' stroke-width='2'%3E%3Cpath d='M20 95 L100 30 L180 95'/%3E%3Cpath d='M38 88 L38 170 L162 170 L162 88'/%3E%3Crect x='72' y='112' width='56' height='58'/%3E%3Cpath d='M90 112 L90 170 M110 112 L110 170 M72 140 L128 140'/%3E%3Cpath d='M140 52 L140 30 L156 30 L156 66'/%3E%3Ccircle cx='100' cy='70' r='10'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 1px, transparent 1px, transparent 20px);
    background-repeat: no-repeat, repeat;
    background-position: right -70px top 140px, 0 0;
    background-size: 440px 440px, auto;
}

.site { position: relative; z-index: 1; }

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

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

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

p { margin: 0 0 1.1em; }

a {
    color: var(--accent);
    text-decoration: none;
    background-image: linear-gradient(var(--accent2), var(--accent2));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 100% 0;
    transition: background-size 0.22s ease, color 0.2s ease;
}

a:hover { background-size: 100% 2px; }

.btn, .brand, .thumb-link, .page-numbers, .tag-chip, .fp-tile, .site-footer .widget-nav a {
    background-image: none;
}

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

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

.layout-single { display: block; width: min(85%, 1180px); margin-inline: auto; }

.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    gap: 6%;
    width: min(92%, 1180px);
    margin-inline: auto;
    align-items: start;
}

.site-main { padding: 46px 0 84px; }

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

.brandline {
    height: 3px;
    width: 100%;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent2) 100%);
}

.site-header {
    background: var(--deep);
    color: #fff;
    padding: 26px 0;
    position: static;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.brand {
    display: flex;
    align-items: center;
    gap: 16px;
    min-width: 0;
    max-width: 640px;
    color: #fff;
}

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

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

.brand-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 600;
    line-height: 1.35;
    color: #fff;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.brand-title a { color: #fff; background-image: none; }
.brand-title a:hover { color: var(--accent2); }

.brand-desc {
    margin: 6px 0 0;
    font-size: 0.82rem;
    line-height: 1.5;
    color: #9DB2C6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1.5px solid #3D5771;
    color: #fff;
    border-radius: 8px;
    padding: 9px 14px;
    font: 600 0.95rem/1 var(--font-head);
    cursor: pointer;
}

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

.main-nav a {
    color: #DCE7F2;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 500;
    padding: 4px 0;
    display: inline-block;
}

.main-nav a:hover { color: #fff; }

.main-nav .current-menu-item > a { color: var(--accent2); }

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

.breadcrumbs {
    font-size: 0.86rem;
    color: var(--muted);
    padding: 18px 0 0;
    width: min(92%, 1180px);
    margin-inline: auto;
}

.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs .sep { margin: 0 7px; color: var(--hair); }

/* ====== кнопки ====== */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1;
    padding: 14px 26px;
    border-radius: 8px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.btn-filled {
    background: var(--accent);
    color: #fff;
}

.btn-filled:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.32);
    color: #fff;
}

.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--muted);
}

.btn-outline:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 22px rgba(47, 111, 237, 0.26);
}

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

.sec-title {
    display: flex;
    align-items: center;
    gap: 0.95rem;
    font-size: 2rem;
    margin: 0 0 1.4rem;
}

.sec-title::before {
    content: "";
    flex: 0 0 40px;
    width: 40px;
    height: 2px;
    background: var(--accent2);
}

.sec-title--key > span::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    margin-right: 0.6rem;
    vertical-align: middle;
}

.sec-title--light { color: #fff; }

/* ====== главная: общие секции ====== */

.fp-sec { padding: 88px 0; }

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

.fp-sec--pattern {
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, var(--bg-alt) 0, var(--bg-alt) 1px, transparent 1px, transparent 20px);
}

.fp-in { width: min(85%, 1320px); margin-inline: auto; }

.fp-lead {
    max-width: 760px;
    color: var(--muted);
    font-size: 1.05rem;
    margin: -0.6rem 0 2.4rem;
}

/* ====== hero ====== */

.fp-hero {
    position: relative;
    padding: 0;
    overflow: hidden;
    background: var(--deep);
}

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

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

.fp-hero-veil {
    position: absolute;
    inset: 0;
    background: rgba(11, 27, 43, 0.7);
}

.fp-hero-inner {
    position: relative;
    z-index: 2;
    width: min(85%, 1320px);
    margin-inline: auto;
    padding: 118px 0 126px;
}

.fp-hero-box { max-width: 760px; }

.fp-hero h1 {
    color: #fff;
    font-size: 3.2rem;
    margin: 0 0 1.1rem;
}

.fp-hero-sub {
    color: #C6D2DE;
    font-size: 1.12rem;
    line-height: 1.65;
    margin: 0 0 2.1rem;
    max-width: 640px;
}

.fp-hero-mark {
    position: absolute;
    right: 0;
    bottom: 42px;
    display: flex;
    align-items: center;
    gap: 12px;
    z-index: 2;
}

.fp-hero-mark span {
    display: block;
    width: 120px;
    height: 1px;
    background: rgba(224, 240, 255, 0.55);
}

.fp-hero-mark i {
    display: block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--accent2);
    box-shadow: 0 0 0 6px rgba(0, 180, 216, 0.18);
}

/* ====== статистика ====== */

.fp-stats { background: var(--bg-alt); background-image: none; }

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

.fp-stat {
    min-width: 0;
    padding: 6px 26px;
    border-left: 1px solid var(--hair);
    text-align: left;
}

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

.fp-stat b {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1.05;
    color: var(--accent);
    letter-spacing: -0.03em;
}

.fp-stat span {
    display: block;
    margin-top: 10px;
    font-size: 0.95rem;
    line-height: 1.5;
    color: var(--muted);
}

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

.fp-latest-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 1.8rem;
}

.fp-latest-head .sec-title { margin-bottom: 0; }

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

/* ====== сетка иконок ====== */

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

.fp-icon-card {
    min-width: 0;
    background: var(--panel);
    border: 1px solid var(--hair);
    border-radius: 12px;
    padding: 2rem 1.8rem;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.fp-icon-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent2);
    box-shadow: 0 14px 30px rgba(47, 111, 237, 0.12);
}

.fp-icon-badge {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 1.5px solid var(--accent2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.3rem;
    color: var(--accent);
    transition: color 0.22s ease, background-color 0.22s ease;
}

.fp-icon-card:hover .fp-icon-badge { color: var(--accent2); background: rgba(0, 180, 216, 0.08); }

.fp-icon-badge svg { display: block; }

.fp-icon-card h3 { font-size: 1.28rem; margin-bottom: 0.6rem; }

.fp-icon-card p { color: var(--muted); margin: 0; font-size: 0.99rem; }

/* ====== цитата ====== */

.fp-quote {
    background: var(--deep);
    background-image: none;
    position: relative;
    overflow: hidden;
}

.fp-quote-figure {
    position: relative;
    margin: 0;
    padding: 0.4rem 0 0.4rem 2.2rem;
    max-width: 880px;
}

.fp-quote-figure::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    border-radius: 2px;
    background: linear-gradient(180deg, var(--accent) 0%, var(--accent2) 100%);
}

.fp-quote-figure blockquote {
    margin: 0;
    font-family: var(--font-head);
    font-size: 2.05rem;
    line-height: 1.38;
    color: var(--light);
    letter-spacing: -0.015em;
}

.fp-quote-figure figcaption {
    margin-top: 1.5rem;
    color: #7E93A8;
    font-size: 0.95rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.fp-quote-rhomb {
    position: absolute;
    top: 34px;
    right: 6%;
    width: 190px;
    height: 190px;
    opacity: 0.55;
    pointer-events: none;
}

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    position: relative;
    background: var(--panel);
    border: 1px solid transparent;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
    transition: transform 0.24s ease, box-shadow 0.24s ease, border-color 0.24s ease;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(47, 111, 237, 0.16);
    border-color: rgba(0, 180, 216, 0.4);
}

.card::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    width: 0;
    height: 0;
    border-left: 20px solid transparent;
    border-bottom: 20px solid var(--accent2);
    opacity: 0;
    transition: opacity 0.24s ease;
}

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

.card-thumb {
    display: block;
    width: 100%;
    overflow: hidden;
    background: var(--bg-alt);
}

.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    transition: transform 0.35s ease;
}

.card:hover .card-thumb img { transform: scale(1.03); }

.card-thumb-ph {
    aspect-ratio: 16 / 9;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E8EEF4 0%, #DCE6F0 100%);
    color: var(--accent);
}

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

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

.card-title {
    font-size: 1.26rem;
    line-height: 1.32;
    margin: 0 0 0.7rem;
}

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

.card-excerpt { color: var(--muted); font-size: 0.97rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

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

.card-more {
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.93rem;
    color: var(--accent);
}

.tag-chip {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.78rem;
    line-height: 1.35;
    background: rgba(47, 111, 237, 0.12);
    color: var(--accent);
    transition: background-color 0.2s ease;
}

.tag-chip:hover { background: rgba(47, 111, 237, 0.26); }

.card--wide { flex-direction: row; }
.card--wide .card-thumb { flex: 0 0 300px; position: relative; overflow: hidden; }

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

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

/* ====== контент записи/страницы ====== */

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

.entry {
    background: var(--panel);
    border-radius: 12px;
    padding: 2.6rem 2.8rem 3rem;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
}

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

.entry-title { font-size: 2.35rem; margin: 0 0 0.6rem; }

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

.entry-thumb { margin: 0 0 1.9rem; border-radius: 12px; overflow: hidden; }
.entry-thumb img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

.entry-content h2 { font-size: 1.75rem; margin-top: 2.1rem; }
.entry-content h3 { font-size: 1.35rem; margin-top: 1.7rem; }

.entry-content a {
    color: var(--accent);
    background-image: none;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--text);
    text-underline-offset: 3px;
}

.entry-content a:hover {
    text-decoration-style: solid;
    text-decoration-color: var(--accent);
}

.entry-content ul, .entry-content ol { padding-left: 1.3rem; margin: 0 0 1.2rem; }
.entry-content li { margin-bottom: 0.5rem; }

.entry-content img { border-radius: 10px; display: block; }

.entry-content blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.7rem;
    border-radius: 10px;
    background: var(--bg-alt);
    border-left: 4px solid var(--accent2);
    color: var(--text);
}

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

.entry-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.6rem 0;
    border: 1px solid var(--hair);
}

.entry-content th, .entry-content td {
    border: 1px solid var(--hair);
    padding: 10px 14px;
    text-align: left;
}

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

.entry-content code {
    background: var(--bg-alt);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 0.92em;
}

.entry-content pre {
    background: var(--deep);
    color: #DCE7F2;
    padding: 1.1rem 1.3rem;
    border-radius: 10px;
    overflow-x: auto;
}

.entry-tags { margin-top: 2rem; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.entry-tags .label { font-size: 0.85rem; color: var(--muted); }

.post-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.post-nav-item {
    min-width: 0;
    background: var(--panel);
    border-radius: 12px;
    padding: 1.2rem 1.4rem;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
}

.post-nav-item span { display: block; font-size: 0.8rem; color: var(--muted); margin-bottom: 6px; }
.post-nav-item a { font-family: var(--font-head); font-weight: 600; color: var(--text); }
.post-nav-item a:hover { color: var(--accent); }
.post-nav-item--next { text-align: right; }

.page-lead { margin-bottom: 2.2rem; }

.archive-head { margin-bottom: 2rem; }
.archive-head h1 { font-size: 2.35rem; margin-bottom: 0.4rem; }
.archive-head p { color: var(--muted); margin: 0; }

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

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

.no-posts {
    background: var(--panel);
    border-radius: 12px;
    padding: 2.2rem 2.4rem;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
}

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

.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--panel);
    border-radius: 12px;
    padding: 1.6rem 1.7rem;
    margin-bottom: 24px;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
    color: var(--text);
}

.sidebar .widget-title {
    font-family: var(--font-head);
    font-size: 1.12rem;
    margin: 0 0 1rem;
    color: var(--text);
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.sidebar .widget-title::before {
    content: "";
    flex: 0 0 26px;
    width: 26px;
    height: 2px;
    background: var(--accent2);
}

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

.sidebar .widget li {
    padding: 8px 0;
    border-bottom: 1px solid var(--bg-alt);
    line-height: 1.45;
}

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

.sidebar .widget a { color: var(--text); }
.sidebar .widget a:hover { color: var(--accent); }
.sidebar .widget .post-date { display: block; font-size: 0.8rem; color: var(--muted); margin-top: 3px; }
.sidebar .widget p { color: var(--text); }

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

.site-footer {
    background: var(--deep);
    color: #C3D2E0;
    padding: 64px 0 0;
    margin-top: 40px;
}

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

.site-footer .widget { min-width: 0; margin-bottom: 20px; color: #C3D2E0; }

.site-footer .widget-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    color: #fff;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 0.7rem;
}

.site-footer .widget-title::before {
    content: "";
    flex: 0 0 26px;
    width: 26px;
    height: 2px;
    background: var(--accent2);
}

.site-footer .widget p { color: #A9BCCE; font-size: 0.95rem; }
.site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.site-footer .widget li { padding: 6px 0; }
.site-footer .widget a { color: #C3D2E0; }
.site-footer .widget a:hover { color: var(--accent2); }
.site-footer .widget .post-date { display: block; font-size: 0.8rem; color: #8098AE; }

.footer-contact { margin-top: 0.4rem; font-size: 0.95rem; }
.footer-contact a { color: var(--accent2); }

.footer-bottom {
    margin-top: 26px;
    border-top: 1px solid rgba(195, 210, 224, 0.16);
    padding: 20px 0 26px;
    font-size: 0.88rem;
    color: #8098AE;
}

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

.pagination,
.comments-pagination {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 34px;
}

.pagination .page-numbers,
.comments-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border-radius: 8px;
    border: 1.5px solid var(--hair);
    background: var(--panel);
    color: var(--text);
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.pagination a.page-numbers:hover,
.comments-pagination a.page-numbers:hover {
    transform: translateY(-2px);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    box-shadow: 0 10px 20px rgba(47, 111, 237, 0.26);
}

.pagination .page-numbers.current,
.comments-pagination .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

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

/* ====== форма поиска ====== */

.search-form {
    display: flex;
    gap: 10px;
    min-width: 0;
}

.search-form input[type="search"] {
    flex: 1;
    min-width: 0;
    padding: 12px 15px;
    border: 1.5px solid var(--hair);
    border-radius: 8px;
    background: var(--panel);
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text);
}

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

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

.comments-area {
    margin-top: 28px;
    background: var(--panel);
    border-radius: 12px;
    padding: 2.2rem 2.4rem 2.4rem;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
}

.comments-title { font-size: 1.5rem; margin-bottom: 1.4rem; }

.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ul.children { list-style: none; margin: 0; padding-left: 26px; }

.comment-body {
    border: 1px solid var(--hair);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
    margin-bottom: 16px;
}

.comment-author { font-family: var(--font-head); font-weight: 600; }
.comment-metadata { font-size: 0.82rem; color: var(--muted); margin-bottom: 0.6rem; }
.comment-metadata a { color: var(--muted); }

.comment-respond { border-top: 1px solid var(--hair); padding-top: 1.6rem; }

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

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 11px 14px;
    border: 1.5px solid var(--hair);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 0.97rem;
    color: var(--text);
    background: var(--panel);
    margin-bottom: 14px;
}

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

.comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 8px;
    padding: 13px 26px;
    font: 600 0.98rem/1 var(--font-head);
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

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

.comment-reply-link { font-size: 0.88rem; }

/* ====== 404 ====== */

.notfound {
    background: var(--panel);
    border-radius: 12px;
    padding: 3rem 2.8rem;
    box-shadow: 0 6px 20px rgba(47, 111, 237, 0.08);
    text-align: center;
}

.notfound .code {
    font-family: var(--font-head);
    font-size: 5rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
    margin-bottom: 0.4rem;
}

.notfound .search-form { max-width: 460px; margin: 1.8rem auto 1.6rem; }

/* ====== cookie-баннер ====== */

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    background: var(--deep);
    color: #D6E2ED;
    padding: 16px 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    border-top: 2px solid var(--accent2);
}

.cookie-banner p { margin: 0; font-size: 0.92rem; max-width: 780px; }
.cookie-banner a { color: var(--accent2); }

.cookie-banner .btn-filled { padding: 11px 22px; font-size: 0.93rem; }

/* ====== служебное ====== */

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

.comments-pagination { margin-top: 0; margin-bottom: 1.6rem; }

.page-links {
    margin: 1.4rem 0 0;
    font-family: var(--font-head);
    font-size: 0.95rem;
    color: var(--muted);
}

.page-links a { margin: 0 4px; }

.comment-awaiting { color: var(--muted); font-size: 0.9rem; }

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

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

@media (max-width: 960px) {
    h1 { font-size: 2.5rem; }
    .fp-hero h1 { font-size: 2.5rem; }
    .sec-title { font-size: 1.7rem; }
    .fp-sec { padding: 68px 0; }
    .fp-hero-inner { padding: 86px 0 92px; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 32px;
        width: min(92%, 1180px);
    }

    .layout-single { width: min(92%, 1180px); }
    .fp-in, .fp-hero-inner { width: min(92%, 1180px); }

    .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fp-icons { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .cards-list { grid-template-columns: minmax(0, 1fr); }
    .fp-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 28px; }
    .fp-stat:nth-child(3) { border-left: 0; padding-left: 0; }
    .fp-quote-rhomb { width: 130px; height: 130px; opacity: 0.35; }
    .entry { padding: 2rem 2rem 2.2rem; }
}

@media (max-width: 600px) {
    body { font-size: 16px; }
    h1 { font-size: 2.05rem; }
    h2 { font-size: 1.6rem; }
    .fp-hero h1 { font-size: 2.05rem; }
    .fp-sec { padding: 54px 0; }
    .fp-hero-inner { padding: 66px 0 74px; }
    .fp-hero-mark { display: none; }

    .header-inner { flex-wrap: nowrap; align-items: flex-start; }
    .nav-toggle { display: inline-block; }

    .main-nav {
        display: none;
        width: 100%;
        order: 3;
        margin-top: 16px;
    }

    .main-nav.is-open { display: block; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav li { border-top: 1px solid rgba(220, 231, 242, 0.14); }
    .main-nav a { display: block; padding: 11px 0; }

    .cards-grid, .fp-icons { grid-template-columns: minmax(0, 1fr); }
    .fp-stats-grid { grid-template-columns: minmax(0, 1fr); row-gap: 22px; }
    .fp-stat { border-left: 0; padding: 0 0 0 16px; border-left: 3px solid var(--hair); }
    .fp-stat:first-child { padding-left: 16px; border-left: 3px solid var(--hair); }
    .fp-stat b { font-size: 2.5rem; }

    .footer-cols { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .post-nav { grid-template-columns: minmax(0, 1fr); }
    .post-nav-item--next { text-align: left; }

    .entry { padding: 1.5rem 1.4rem 1.8rem; }
    .comments-area { padding: 1.5rem 1.4rem 1.8rem; }
    .notfound { padding: 2.2rem 1.5rem; }
    .no-posts { padding: 1.6rem 1.4rem; }
    .sidebar .widget { padding: 1.3rem 1.3rem; }
    .fp-icon-card { padding: 1.6rem 1.4rem; }
    .fp-quote-figure { padding: 0.2rem 0 0.2rem 1.4rem; }
    .fp-quote-figure blockquote { font-size: 1.45rem; }
    .fp-quote-rhomb { display: none; }

    .card--wide { flex-direction: column; }

    .card--wide .card-thumb {
        flex: none;
        width: 100%;
        position: static;
    }

    .card--wide .card-thumb a,
    .card--wide .thumb-link { position: static; }

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

    .cookie-banner { padding: 14px 16px; gap: 12px; }
    .breadcrumbs { font-size: 0.8rem; }
}
