/*
Theme Name: dds_shopshylahmay.com
Theme URI: https://shopshylahmay.com/
Author: Алексей Руденко
Description: Тема для отраслевого PropTech-портала о цифровых продуктах для рынка недвижимости. Швейцарский стиль: модульная сетка, контрастная типографика, холодная палитра.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: shylah
*/

:root {
    --bg: #F4F7FA;
    --bg-alt: #E8EEF4;
    --dark: #0B1F33;
    --white: #FFFFFF;
    --text: #0F1E2E;
    --text-soft: #34475A;
    --accent: #1B6BFF;
    --accent-dark: #0F4FCC;
    --teal: #00C2A8;
    --muted: #6B7C8F;
    --line: #D0DAE4;
    --soft: #B0C4D8;
    --f-head: "Inter Tight", "Space Grotesk", "Helvetica Neue", Arial, sans-serif;
    --f-body: "Inter", "IBM Plex Sans", "Helvetica Neue", Arial, sans-serif;
    --pattern: repeating-linear-gradient(45deg, rgba(27, 107, 255, 0.08) 0 1px, transparent 1px 12px);
}

/* ---------- Сброс и база ---------- */

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { transition: none !important; }
}

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 17px;
    line-height: 1.65;
    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 520 320' fill='none' stroke='%231B6BFF' stroke-width='1.2' opacity='0.05'%3E%3Cpath d='M0 318h520'/%3E%3Cpath d='M20 318V210h60v108M80 318V150h70v168M150 318V240h40v78M190 318V90h80v228M270 318V180h50v138M320 318V60h70v258M390 318V200h50v118M440 318V130h60v188'/%3E%3Cpath d='M95 170h40M95 190h40M95 210h40M95 230h40M205 110h50M205 135h50M205 160h50M205 185h50M205 210h50M335 80h40M335 105h40M335 130h40M335 155h40M335 180h40M455 150h30M455 175h30M455 200h30'/%3E%3Cpath d='M355 60V30M230 90V66h10M470 130l15-20 15 20'/%3E%3Crect x='40' y='240' width='20' height='20'/%3E%3Crect x='285' y='200' width='20' height='20'/%3E%3Crect x='400' y='220' width='30' height='16'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right bottom;
    background-size: 560px auto;
    background-attachment: fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    letter-spacing: -0.02em;
    margin: 1.7em 0 0.6em;
}
h1 { font-size: 2.3rem; line-height: 1.1; letter-spacing: -0.03em; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.12rem; }
h5, h6 { font-size: 1rem; }

p { margin: 0 0 1.1em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0.22em;
    text-decoration-color: currentColor;
    transition: text-decoration-color 0.2s ease, text-decoration-thickness 0.2s ease, color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease;
}
a:hover {
    text-decoration-thickness: 2px;
    text-decoration-color: var(--teal);
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

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

/* ---------- Контейнер ---------- */

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

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

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.85em 1.6em;
    border: 2px solid transparent;
    border-radius: 2px;
    font-family: var(--f-head);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #FFFFFF; }
.btn-outline { background: transparent; border-color: var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: #FFFFFF; }
.btn-outline-light { background: transparent; border-color: #FFFFFF; color: #FFFFFF; }
.btn-outline-light:hover { background: var(--accent); border-color: var(--accent); color: #FFFFFF; }

/* ---------- Полоса сверху и шапка ---------- */

.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--accent) 0 70%, var(--teal) 70% 100%);
}

.masthead {
    background: var(--dark);
    color: #FFFFFF;
}
.masthead-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 1.4rem 0;
}
.brand {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    min-width: 0;
    color: #FFFFFF;
    text-decoration: none;
}
.brand:hover { text-decoration: none; }
.brand-mark { flex: 0 0 52px; width: 52px; height: 52px; display: block; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name {
    font-family: var(--f-head);
    font-size: 1.02rem;
    font-weight: 700;
    line-height: 1.25;
    letter-spacing: -0.01em;
    color: #FFFFFF;
    max-width: 62ch;
}
.brand-desc {
    margin-top: 0.35rem;
    font-size: 0.8rem;
    line-height: 1.45;
    color: var(--soft);
    max-width: 88ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.masthead-navrow { border-top: 1px solid rgba(176, 196, 216, 0.18); }
.primary-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-wrap: wrap;
}
.primary-nav a {
    display: block;
    padding: 1rem 1.3rem 0.85rem;
    border-bottom: 3px solid transparent;
    font-family: var(--f-head);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #FFFFFF;
    text-decoration: none;
}
.primary-nav li:first-child a { padding-left: 0; }
.primary-nav a:hover,
.primary-nav .current-menu-item > a,
.primary-nav .current_page_item > a {
    border-bottom-color: var(--accent);
    color: #FFFFFF;
    text-decoration: none;
}

.nav-toggle {
    display: none;
    flex: 0 0 auto;
    align-items: center;
    gap: 0.6rem;
    padding: 0.6rem 0.9rem;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 2px;
    color: #FFFFFF;
    font-family: var(--f-head);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: pointer;
}
.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
    display: block;
    width: 16px;
    height: 2px;
    background: #FFFFFF;
    position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle-bars::before { top: -5px; }
.nav-toggle-bars::after { top: 5px; }

/* ---------- Раскладка страниц ---------- */

.site-main { display: block; }
.page-wrap { padding-bottom: 5rem; }

.layout-single .content-area {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}
.layout-with-sidebar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
}
@media (min-width: 960px) {
    .layout-with-sidebar {
        grid-template-columns: minmax(0, 67%) minmax(0, 27%);
        justify-content: space-between;
        align-items: start;
    }
}
.content-area { min-width: 0; }

.breadcrumbs {
    padding: 1.6rem 0 0;
    margin-bottom: 2rem;
    font-size: 0.84rem;
    color: var(--muted);
}
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--text); }
.breadcrumbs .sep { margin: 0 0.35rem; color: var(--soft); }
.breadcrumbs span:last-child { color: var(--text); }

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

.section-title {
    display: flex;
    align-items: center;
    gap: 0.75em;
    margin: 0 0 2.2rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    text-align: left;
    color: var(--text);
}
.section-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 0.72em;
    background: var(--accent);
}
.section-lead {
    max-width: 46em;
    margin: -1rem 0 2.6rem;
    color: var(--muted);
}
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.5rem 2rem;
    margin-bottom: 2.2rem;
}
.section-head .section-title { margin: 0; }
.section-link { font-size: 0.92rem; font-weight: 500; }

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

.fs { padding: 5.5rem 0; }
.fs--base { background: var(--bg); }
.fs--alt { background: var(--bg-alt); }
.fs-dark {
    background-color: var(--dark);
    background-image: var(--pattern);
    color: #FFFFFF;
}

/* Hero */
.hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 3rem;
    align-items: center;
}
.hero-copy { min-width: 0; }
.hero-title {
    margin: 0 0 1.4rem;
    color: #FFFFFF;
    font-size: 2.3rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.035em;
    max-width: 14em;
}
.hero-sub {
    margin: 0 0 2.2rem;
    max-width: 36em;
    font-size: 1.08rem;
    color: #B0C4D8;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.8rem; }
.hero-visual { min-width: 0; }
.hero-visual img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 560 / 440;
}
@media (min-width: 960px) {
    .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 4rem; }
    .hero-title { font-size: 3.2rem; }
    .fs-hero { padding: 6.5rem 0; }
}

/* Сетка направлений */
.feature-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.4rem;
}
@media (min-width: 600px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .feature-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.feature {
    position: relative;
    min-width: 0;
    padding: 2rem 1.9rem 1.9rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.feature::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.feature:hover { border-color: var(--accent); }
.feature:hover::before { opacity: 1; }
.feature-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 1.4rem;
    color: var(--accent);
}
.feature h3 { margin: 0 0 0.6rem; font-size: 1.14rem; }
.feature p { margin: 0; font-size: 0.95rem; color: var(--text-soft); }

/* Статистика */
.stats {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}
.stat {
    min-width: 0;
    padding: 2.2rem 1.6rem 2.2rem 1.6rem;
    border-left: 1px solid var(--line);
}
.stat:nth-child(odd) { border-left: 0; padding-left: 0; }
.stat:nth-child(n+3) { border-top: 1px solid var(--line); }
.stat-num {
    font-family: var(--f-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.04em;
    color: var(--text);
}
.stat-label {
    margin-top: 1rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 22em;
}
@media (min-width: 960px) {
    .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .stat:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 1.6rem; }
    .stat:first-child { border-left: 0; padding-left: 0; }
    .stat:nth-child(n+3) { border-top: 0; }
    .stat-num { font-size: 4rem; }
}

/* CTA */
.cta-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.2rem;
    align-items: end;
}
.cta-copy { min-width: 0; }
.cta-title {
    margin: 0;
    max-width: 22em;
    font-family: var(--f-head);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -0.025em;
    color: #FFFFFF;
}
.cta-line {
    display: block;
    width: 120px;
    height: 2px;
    margin: 1.8rem 0 1.4rem;
    background: var(--teal);
}
.cta-text { margin: 0; max-width: 38em; color: #B0C4D8; }
.cta-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.1rem;
}
.cta-sublink { color: #FFFFFF; font-size: 0.92rem; text-decoration-color: rgba(255, 255, 255, 0.4); }
.cta-sublink:hover { color: #FFFFFF; }
@media (min-width: 960px) {
    .cta-grid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 4rem; }
    .cta-title { font-size: 2.3rem; }
    .cta-actions { align-items: flex-end; }
}

.empty-note { color: var(--muted); margin: 0; }

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

.cards-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.6rem;
}
@media (min-width: 600px) { .cards-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .cards-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.2s ease;
}
.card::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    z-index: 2;
    width: 3px;
    background: var(--accent);
    opacity: 0;
    transition: opacity 0.2s ease;
}
.card:hover { border-color: var(--accent); }
.card:hover::before { opacity: 1; }
.card-media a { display: block; }
.card-media img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border-radius: 0;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.4rem 1.5rem 1.5rem;
}
.card-title {
    margin: 0.8rem 0 0.4rem;
    font-size: 1.18rem;
    line-height: 1.28;
    letter-spacing: -0.015em;
    overflow-wrap: anywhere;
}
.card-title a { color: var(--text); text-decoration: none; }
.card-title a:hover { color: var(--accent); text-decoration: none; }
.card-meta { margin-bottom: 0.8rem; font-size: 0.8rem; color: var(--muted); }
.card-excerpt { flex: 1; font-size: 0.94rem; line-height: 1.6; color: var(--text-soft); }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more {
    align-self: flex-start;
    margin-top: 0.9rem;
    font-family: var(--f-head);
    font-size: 0.82rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

/* Цветные метки рубрик */
.cat-tags { display: flex; flex-wrap: wrap; gap: 0.35rem; }
.cat-tag {
    display: inline-block;
    padding: 0.28em 0.6em;
    border-radius: 0;
    font-family: var(--f-head);
    font-size: 0.68rem;
    font-weight: 600;
    line-height: 1.3;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #FFFFFF;
    text-decoration: none;
    background: var(--accent);
}
.cat-tag:hover { color: #FFFFFF; text-decoration: none; filter: brightness(0.88); }
.cat-c0 { background: #1B6BFF; }
.cat-c1 { background: #00C2A8; }
.cat-c2 { background: #4A6FA5; }
.cat-c3 { background: #2E8B9E; }
.cat-c4 { background: #5C7A99; }
.cat-sticky { background: var(--teal); color: #0B1F33; }

/* ---------- Пагинация (type => plain) ---------- */

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.85rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    font-family: var(--f-head);
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
    text-decoration: none;
}
.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: none; border: 0; min-width: auto; padding: 0 0.3rem; }

/* ---------- Архивы и записи ---------- */

.archive-header { margin-bottom: 2.4rem; }
.archive-title, .entry-title {
    margin: 0 0 0.8rem;
    font-size: 2.2rem;
    overflow-wrap: anywhere;
}
.archive-lead { max-width: 44em; color: var(--muted); margin: 0; }
.archive-lead p:last-child { margin-bottom: 0; }

.entry-header { margin-bottom: 2rem; }
.entry-header .cat-tags { margin-bottom: 1.1rem; }
.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.4rem;
    font-size: 0.86rem;
    color: var(--muted);
}
.entry-thumb { margin: 0 0 2.2rem; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 0; }

.entry-content { overflow-wrap: break-word; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 { font-size: 1.6rem; }
.entry-content h3 { font-size: 1.28rem; }
.entry-content ul,
.entry-content ol { margin: 0 0 1.2em; padding-left: 1.4em; }
.entry-content li { margin-bottom: 0.4em; }
.entry-content ul li::marker { color: var(--accent); }
.entry-content img { display: block; border-radius: 0; }
.entry-content figure { margin: 2rem 0; }
.entry-content figcaption { margin-top: 0.6rem; font-size: 0.84rem; color: var(--muted); }
.entry-content blockquote {
    margin: 2rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    font-family: var(--f-head);
    font-size: 1.15rem;
    line-height: 1.5;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content pre {
    overflow-x: auto;
    padding: 1.2rem 1.4rem;
    background: var(--dark);
    color: #DCE6F0;
    border-radius: 2px;
    font-size: 0.88rem;
}
.entry-content code { font-size: 0.9em; }
.entry-content table,
.comments table {
    width: 100%;
    margin: 1.8rem 0;
    border-collapse: collapse;
    border: 1px solid var(--line);
    font-size: 0.94rem;
    background: #FFFFFF;
}
.entry-content th,
.entry-content td {
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    text-align: left;
    vertical-align: top;
}
.entry-content th { background: var(--bg-alt); font-family: var(--f-head); font-weight: 600; }
.entry-content .wp-block-table { overflow-x: auto; }
.page-links { margin-top: 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; }

.entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem 1rem; margin-top: 2.2rem; font-size: 0.9rem; }

.post-nav {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
@media (min-width: 600px) { .post-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.post-nav a {
    display: block;
    height: 100%;
    padding: 1.1rem 1.3rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
    font-family: var(--f-head);
    font-weight: 600;
    line-height: 1.35;
    text-decoration: none;
}
.post-nav a:hover { border-color: var(--accent); }
.post-nav a span {
    display: block;
    margin-bottom: 0.35rem;
    font-family: var(--f-body);
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--muted);
}
.post-nav-next { text-align: right; }

.html-sitemap ul { columns: 2 260px; column-gap: 2.5rem; }

/* ---------- Сайдбар ---------- */

.sidebar {
    min-width: 0;
    padding: 1.8rem 1.6rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    color: var(--text);
}
.sidebar .widget { margin-bottom: 2.2rem; color: var(--text); }
.sidebar .widget:last-child { margin-bottom: 0; }
.sidebar .widget-title {
    display: flex;
    align-items: center;
    gap: 0.65em;
    margin: 0 0 1rem;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: var(--text);
}
.sidebar .widget-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 0.72em;
    background: var(--accent);
}
.sidebar ul { list-style: none; margin: 0; padding: 0; }
.sidebar li { padding: 0.7rem 0; border-bottom: 1px solid var(--line); line-height: 1.4; color: var(--text); }
.sidebar li:last-child { border-bottom: 0; }
.sidebar a { color: var(--text); text-decoration: none; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; text-decoration-color: var(--teal); }
.sidebar .post-date { display: block; margin-top: 0.25rem; font-size: 0.78rem; color: var(--muted); }
.sidebar p { color: var(--text-soft); font-size: 0.94rem; }

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

.site-footer {
    padding: 4.2rem 0 0;
    background: var(--dark);
    color: #C9D6E3;
}
.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 2.6rem;
}
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; } }
.footer-col { min-width: 0; }
.site-footer .widget { margin-bottom: 1.8rem; color: #C9D6E3; font-size: 0.93rem; }
.site-footer .widget:last-child { margin-bottom: 0; }
.site-footer .widget-title {
    display: flex;
    align-items: center;
    gap: 0.65em;
    margin: 0 0 1.1rem;
    font-size: 0.86rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    color: #FFFFFF;
}
.site-footer .widget-title::before {
    content: "";
    flex: 0 0 3px;
    width: 3px;
    height: 0.72em;
    background: var(--teal);
}
.site-footer p,
.site-footer li,
.site-footer .textwidget { color: #C9D6E3; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { padding: 0.32rem 0; }
.site-footer a { color: #FFFFFF; text-decoration-color: rgba(255, 255, 255, 0.35); }
.site-footer a:hover { color: #FFFFFF; text-decoration-color: var(--teal); }
.site-footer .post-date { display: block; font-size: 0.78rem; color: #8FA3B8; }
.footer-bottom {
    margin-top: 3.4rem;
    padding: 1.4rem 0 1.7rem;
    border-top: 1px solid rgba(176, 196, 216, 0.18);
}
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #8FA3B8; }

/* ---------- Поиск, 404, комментарии ---------- */

.search-form { display: flex; gap: 0.5rem; max-width: 540px; margin: 1.4rem 0; }
.search-field {
    flex: 1;
    min-width: 0;
    padding: 0.78em 0.95em;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    font: inherit;
    font-size: 0.95rem;
    color: var(--text);
}
.search-field:focus { border-color: var(--accent); outline: none; }
.sidebar .search-form { margin: 0; }

.notfound { padding: 1rem 0 2rem; }
.notfound-code {
    margin: 0 0 0.5rem;
    font-family: var(--f-head);
    font-size: 7rem;
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.05em;
    color: transparent;
    -webkit-text-stroke: 2px var(--accent);
}
.notfound-home { margin-top: 1.6rem; }

.comments { margin-top: 3.5rem; padding-top: 2.5rem; border-top: 1px solid var(--line); }
.comment-list { list-style: none; margin: 0 0 2.5rem; padding: 0; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 1px solid var(--line); }
.comment-body {
    margin-bottom: 1rem;
    padding: 1.2rem 1.4rem;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
}
.comment-meta { font-size: 0.84rem; color: var(--muted); margin-bottom: 0.6rem; }
.comment-author { display: flex; align-items: center; gap: 0.6rem; }
.comment-author .avatar { border-radius: 2px; display: block; }
.comment-author .fn { font-family: var(--f-head); font-style: normal; font-weight: 600; color: var(--text); }
.comment-metadata a { color: var(--muted); }
.comment-content p:last-child { margin-bottom: 0; }
.reply { font-size: 0.84rem; margin-top: 0.6rem; }
.comment-respond .comment-reply-title { font-size: 1.3rem; margin-top: 0; }
.comment-form label { display: block; margin-bottom: 0.35rem; font-size: 0.88rem; font-weight: 500; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.75em 0.9em;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 2px;
    font: inherit;
    color: var(--text);
}
.comment-form .comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form .comment-form-cookies-consent label { display: inline; font-weight: 400; }

/* ---------- Cookie-баннер ---------- */

.cookie-banner[hidden] { display: none !important; }
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem 1.6rem;
    max-width: 980px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--dark);
    border: 1px solid rgba(176, 196, 216, 0.25);
    border-left: 3px solid var(--accent);
    border-radius: 2px;
    color: #DCE6F0;
    font-size: 0.9rem;
    line-height: 1.5;
}
.cookie-banner p { flex: 1 1 320px; min-width: 0; margin: 0; color: #DCE6F0; }
.cookie-banner a { color: #FFFFFF; }

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

@media (max-width: 959px) {
    .nav-toggle { display: inline-flex; }
    .primary-nav { display: none; }
    .primary-nav.is-open { display: block; }
    .primary-nav ul { flex-direction: column; padding: 0.4rem 0 0.8rem; }
    .primary-nav a,
    .primary-nav li:first-child a {
        padding: 0.8rem 0;
        border-bottom: 1px solid rgba(176, 196, 216, 0.14);
    }
    .primary-nav a:hover,
    .primary-nav .current-menu-item > a,
    .primary-nav .current_page_item > a { border-bottom-color: var(--accent); }
    .layout-single .content-area { width: 100%; }
    .brand-desc { -webkit-line-clamp: 3; }
}

@media (max-width: 600px) {
    body { font-size: 16px; background-size: 320px auto; background-attachment: scroll; }
    .shell--front { width: 92%; }
    .fs { padding: 3.6rem 0; }
    .fs-hero { padding: 3.2rem 0 3.6rem; }
    .hero-title { font-size: 2rem; }
    .brand-mark { flex-basis: 42px; width: 42px; height: 42px; }
    .brand-name { font-size: 0.9rem; }
    .brand-desc { display: none; }
    .masthead-brand { padding: 1rem 0; }
    .archive-title, .entry-title { font-size: 1.75rem; }
    .section-title { font-size: 1.05rem; letter-spacing: 0.1em; }
    .feature { padding: 1.6rem 1.4rem; }
    .stat { padding: 1.6rem 1rem 1.6rem 1rem; }
    .stat-num { font-size: 2.5rem; }
    .cta-title { font-size: 1.5rem; }
    .sidebar { padding: 1.5rem 1.3rem; }
    .search-form { flex-direction: column; }
    .cookie-banner { padding: 1rem 1.1rem; left: 0.6rem; right: 0.6rem; bottom: 0.6rem; }
    .notfound-code { font-size: 5rem; }
    .entry-content blockquote { padding: 1.1rem 1.2rem; }
}
