/*
Theme Name: dds_feelgoodranchweather.com
Theme URI: https://feelgoodranchweather.com/
Author: Алексей Ветров
Description: Тёмная лесная тема для информационного портала о загородной жизни, микроклимате и энергоэффективном строительстве.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: fgranch
*/

/* -------------------------------------------------
   Переменные
------------------------------------------------- */
:root {
    --bg:        #0d1f1a;
    --bg-alt:    #132a23;
    --bg-head:   #0a1a15;
    --bg-foot:   #081410;
    --bg-side:   #11251f;
    --ink:       #e8f0ec;
    --accent:    #4ade80;
    --accent-2:  #a3e635;
    --muted:     #6b8f7e;
    --line:      #1e3d33;
    --line-soft: #2a4a3d;
    --font-head: "Inter Tight", "Segoe UI Semibold", "SF Pro Display", "Helvetica Neue", Arial, sans-serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --shell:     min(92%, 1180px);
}

/* -------------------------------------------------
   Скрытые через [hidden] элементы
------------------------------------------------- */
.cookie-banner[hidden] { display: none !important; }
[hidden] { display: none !important; }

/* -------------------------------------------------
   База
------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.72;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(45deg, rgba(17, 37, 31, 0) 0 23px, #11251f 23px 24px);
    background-attachment: fixed;
}

body::after {
    content: "";
    position: fixed;
    right: -160px;
    bottom: -180px;
    width: 780px;
    height: 780px;
    opacity: 0.03;
    pointer-events: none;
    z-index: 0;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'%3E%3Cg stroke='%234ade80' stroke-width='7' fill='none' stroke-linecap='round'%3E%3Cpath d='M30 380 L370 40'/%3E%3Cpath d='M92 318 L36 262 M92 318 L150 296'/%3E%3Cpath d='M140 270 L84 212 M140 270 L200 248'/%3E%3Cpath d='M188 222 L132 164 M188 222 L248 200'/%3E%3Cpath d='M236 174 L180 118 M236 174 L296 152'/%3E%3Cpath d='M284 126 L230 72 M284 126 L344 104'/%3E%3Cpath d='M330 80 L280 30 M330 80 L386 60'/%3E%3C/g%3E%3C/svg%3E");
}

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

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

p { margin: 0 0 1.1em; }

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

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

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

.shell {
    width: var(--shell);
    margin-inline: auto;
    position: relative;
    z-index: 1;
}

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

.home .site-main .shell { width: min(85%, 1180px); }

/* -------------------------------------------------
   Полоса-горизонт сверху
------------------------------------------------- */
.horizon-line {
    height: 3px;
    background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
}

/* -------------------------------------------------
   Шапка
------------------------------------------------- */
.site-top {
    background: var(--bg-head);
    border-bottom: 1px solid var(--line);
    padding: 1.4rem 0;
    position: relative;
    z-index: 5;
}

.top-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.4rem;
}

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

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

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

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

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

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

.brand-desc {
    margin: 0.25rem 0 0;
    font-size: 0.79rem;
    line-height: 1.5;
    color: var(--muted);
    max-width: 62ch;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1.5px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font: 600 0.92rem/1 var(--font-head);
    cursor: pointer;
}

.nav-toggle-bar {
    width: 18px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor, 0 -5px 0 currentColor;
}

.nav-toggle.is-active .nav-toggle-bar { box-shadow: 0 5px 0 currentColor; }

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

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

.nav-list a {
    position: relative;
    display: inline-block;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 0.97rem;
    color: var(--ink);
    padding-bottom: 3px;
}

.nav-list a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}

.nav-list a:hover { color: var(--accent); }
.nav-list a:hover::after { transform: scaleX(1); }

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

.nav-list .sub-menu {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* -------------------------------------------------
   Кнопки и ссылки
------------------------------------------------- */
.btn {
    display: inline-block;
    border-radius: 6px;
    font: 600 0.95rem/1.2 var(--font-head);
    padding: 0.72rem 1.35rem;
    cursor: pointer;
    text-align: center;
    border: 1.5px solid transparent;
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.btn-solid {
    background: var(--accent);
    color: #08221a;
    border-color: var(--accent);
}

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

.btn:hover,
.btn:focus-visible {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 222, 128, 0.32);
}

.entry a,
.card-excerpt a,
.widget a,
.cta-contact a,
.comment-text a {
    position: relative;
    color: var(--accent);
}

.entry a::after,
.card-excerpt a::after,
.widget a::after,
.cta-contact a::after,
.comment-text a::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 100%;
    height: 1px;
    background: var(--accent-2);
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.28s ease;
}

.entry a:hover::after,
.card-excerpt a:hover::after,
.widget a:hover::after,
.cta-contact a:hover::after,
.comment-text a:hover::after { transform: scaleX(1); }

/* -------------------------------------------------
   Секции главной
------------------------------------------------- */
.fs {
    padding: 88px 0;
    position: relative;
    z-index: 1;
}

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

.fs-alt::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background-image: repeating-linear-gradient(45deg, rgba(232, 240, 236, 0) 0 23px, rgba(232, 240, 236, 0.05) 23px 24px);
}

.sec-title {
    display: flex;
    align-items: center;
    gap: 18px;
    font-size: 2rem;
    margin-bottom: 2.2rem;
}

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

.trail-dots {
    height: 2px;
    width: 58%;
    margin: 0 auto;
    background-image: radial-gradient(circle, var(--line-soft) 1px, transparent 1.1px);
    background-size: 8px 2px;
    background-repeat: repeat-x;
}

/* --- Блок 1: hero --- */
.hero {
    position: relative;
    min-height: 560px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
    border-bottom: 1px solid var(--line);
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(10, 26, 21, 0.55) 0%, rgba(10, 26, 21, 0.2) 40%, rgba(13, 31, 26, 0.92) 100%);
}

.hero-inner {
    z-index: 2;
    padding: 5.5rem 0 4.6rem;
}

.hero-title {
    font-size: 3.2rem;
    color: #ffffff;
    text-shadow: 0 2px 18px rgba(4, 14, 11, 0.7);
    margin-bottom: 1rem;
    max-width: 18ch;
}

.hero-sub {
    font-size: 1.16rem;
    line-height: 1.66;
    color: #b9d4c6;
    max-width: 62ch;
    margin-bottom: 0;
}

.hero-stem {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 2px;
    height: 3.6rem;
    background: linear-gradient(180deg, var(--accent) 0%, rgba(74, 222, 128, 0) 100%);
}

/* --- Блок 2: статистика --- */
.stat-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.6rem;
}

.stat-cell {
    position: relative;
    min-width: 0;
    padding: 0.4rem 1.2rem;
    text-align: center;
}

.stat-cell + .stat-cell::before {
    content: "";
    position: absolute;
    left: 0;
    top: 8%;
    height: 84%;
    width: 2px;
    background-image: radial-gradient(circle, var(--line-soft) 1px, transparent 1.1px);
    background-size: 2px 8px;
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 3.1rem;
    line-height: 1.1;
    color: var(--accent);
    text-shadow: 0 0 22px rgba(74, 222, 128, 0.35);
}

.stat-cap {
    display: block;
    margin-top: 0.55rem;
    font-size: 0.92rem;
    line-height: 1.5;
    color: var(--muted);
}

/* --- Блок последних записей --- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr));
    gap: 1.8rem;
}

.latest-more { margin: 2.4rem 0 0; }

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

/* --- Блок 3: чек-лист --- */
.sprout-list {
    list-style: none;
    margin: 0;
    padding: 0;
    max-width: 860px;
}

.sprout-list li {
    display: flex;
    align-items: flex-start;
    gap: 1.1rem;
    margin-bottom: 1.7rem;
}

.sprout-list li:last-child { margin-bottom: 0; }

.sprout {
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    margin-top: 3px;
}

.sprout svg { display: block; width: 28px; height: 28px; }

.sprout-text {
    min-width: 0;
    font-size: 1.1rem;
    line-height: 1.66;
}

.sprout-text strong {
    font-family: var(--font-head);
    color: var(--accent-2);
    font-weight: 600;
}

/* --- Блок 4: CTA --- */
.fs-cta {
    background: var(--bg-head);
    overflow: hidden;
    padding: 92px 0;
}

.cta-inner {
    padding: 0 1.6rem;
    text-align: center;
    max-width: 860px;
}

.cta-phrase {
    font-family: var(--font-head);
    font-weight: 700;
    font-size: 2.6rem;
    line-height: 1.24;
    letter-spacing: -0.02em;
    margin-bottom: 1.4rem;
    background: linear-gradient(95deg, var(--accent) 0%, var(--accent-2) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.cta-contact {
    margin: 0;
    color: var(--muted);
    font-size: 1.05rem;
}

.cta-branch {
    position: absolute;
    width: 260px;
    height: auto;
    opacity: 0.05;
    pointer-events: none;
}

.cta-branch-l { left: -40px; bottom: -30px; }
.cta-branch-r { right: -40px; top: -40px; }

/* -------------------------------------------------
   Карточки записей
------------------------------------------------- */
.card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    min-width: 0;
}

.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.45);
    border-color: rgba(74, 222, 128, 0.4);
}

.card-flag {
    position: absolute;
    top: 7px;
    right: 7px;
    width: 8px;
    height: 8px;
    z-index: 3;
    background: var(--accent-2);
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    opacity: 0.6;
    transition: width 0.25s ease, height 0.25s ease, opacity 0.25s ease;
}

.card:hover .card-flag {
    opacity: 1;
    width: 12px;
    height: 12px;
}

.card-thumb { overflow: hidden; }

.card-thumb a { display: block; }

.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-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.5rem 1.5rem 1.6rem;
}

.card-title {
    font-size: 1.28rem;
    margin: 0 0 0.6rem;
}

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

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

.post-meta .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.tagchip {
    display: inline-block;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    padding: 0.14rem 0.5rem;
    font-size: 0.74rem;
    line-height: 1.5;
    color: var(--accent-2);
    transition: background 0.2s ease, color 0.2s ease;
}

.tagchip:hover {
    background: var(--accent-2);
    color: #0d1f1a;
}

.card-excerpt {
    color: #c3d6cc;
    font-size: 0.97rem;
    margin-bottom: 1.2rem;
}

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

.card-more { margin: auto 0 0; }

/* -------------------------------------------------
   Внутренние страницы: раскладка
------------------------------------------------- */
.page-wrap { padding: 3rem 0 4.5rem; }

.layout-single { display: block; }

.layout-single .content-area {
    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: 2.8rem;
    align-items: start;
}

.layout-with-sidebar .content-area { min-width: 0; }

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

.trail a { color: var(--muted); }
.trail a:hover { color: var(--accent); }
.trail .sep { color: var(--line-soft); margin: 0 0.15rem; }

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

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

.page-lead { color: var(--muted); }

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

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

/* -------------------------------------------------
   Контент записи и страницы
------------------------------------------------- */
.entry { font-size: 1.04rem; }

.entry h2 { font-size: 1.85rem; margin-top: 2.2rem; }
.entry h3 { font-size: 1.4rem; margin-top: 1.8rem; }
.entry h4 { font-size: 1.16rem; margin-top: 1.5rem; }

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

.entry li { margin-bottom: 0.5em; }

.entry img { border-radius: 8px; }

.entry blockquote {
    margin: 1.8rem 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 10px 10px 0;
    color: #cfe3d8;
    font-size: 1.06rem;
}

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

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

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

.entry th {
    background: var(--bg-alt);
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent-2);
}

.entry pre,
.entry code {
    background: #0a1a15;
    border-radius: 6px;
}

.entry pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line);
}

.entry code { padding: 0.12rem 0.4rem; font-size: 0.92em; }

.entry figure { margin: 1.6rem 0; }

.entry figcaption {
    font-size: 0.84rem;
    color: var(--muted);
    margin-top: 0.5rem;
}

.page-links { margin-top: 1.4rem; color: var(--muted); }

.entry-tags {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.entry-tags a {
    display: inline-block;
    border: 1px solid var(--accent-2);
    border-radius: 4px;
    padding: 0.16rem 0.55rem;
    font-size: 0.78rem;
    color: var(--accent-2);
}

.entry-tags a:hover { background: var(--accent-2); color: #0d1f1a; }

/* -------------------------------------------------
   Навигация по записям
------------------------------------------------- */
.post-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 1.2rem;
    margin-top: 2.8rem;
}

.post-nav-link {
    display: block;
    min-width: 0;
    padding: 1.1rem 1.3rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1rem;
    line-height: 1.4;
    transition: transform 0.22s ease, border-color 0.22s ease;
}

.post-nav-link span {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 0.35rem;
}

.post-nav-link:hover {
    transform: translateY(-2px);
    border-color: rgba(74, 222, 128, 0.4);
}

.post-nav-link.next { text-align: right; }

/* -------------------------------------------------
   Пагинация
------------------------------------------------- */
.pager,
.comment-pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.6rem;
}

.pager .page-numbers,
.comment-pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: var(--bg-alt);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.93rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.pager a.page-numbers:hover,
.comment-pager a.page-numbers:hover {
    transform: translateY(-2px);
    border-color: var(--accent);
    box-shadow: 0 6px 12px rgba(74, 222, 128, 0.22);
}

.pager .page-numbers.current,
.comment-pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #08221a;
    font-weight: 700;
}

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

/* -------------------------------------------------
   Сайдбар и виджеты
------------------------------------------------- */
.sidebar { min-width: 0; }

.sidebar .widget {
    background: var(--bg-side);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1.6rem;
    color: var(--ink);
}

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

.widget-title {
    font-size: 1.1rem;
    margin: 0 0 1rem;
    display: flex;
    align-items: center;
    gap: 12px;
}

.widget-title::before {
    content: "";
    flex: 0 0 24px;
    height: 2px;
    background: var(--accent);
}

.sidebar .widget,
.sidebar .widget p,
.sidebar .widget li { color: var(--ink); }

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

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

.widget li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.95rem;
    line-height: 1.55;
}

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

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

.sidebar .widget_recent_entries a { color: var(--ink); }

.sidebar .search-form { flex-direction: column; }

/* -------------------------------------------------
   Форма поиска
------------------------------------------------- */
.search-form {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin: 1.4rem 0;
}

.search-input {
    flex: 1 1 200px;
    min-width: 0;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    padding: 0.7rem 0.95rem;
    font: 400 0.97rem/1.4 var(--font-body);
}

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

/* -------------------------------------------------
   Комментарии
------------------------------------------------- */
.comments-area {
    margin-top: 3.2rem;
    padding-top: 2.4rem;
    border-top: 1px solid var(--line);
}

.comments-title { font-size: 1.6rem; }

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

.comment-list .children { margin-left: 1.6rem; margin-top: 1rem; }

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

.comment-inner {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 1.2rem 1.4rem;
}

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

.comment-author {
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--accent-2);
}

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

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

.comment-wait { color: var(--muted); font-size: 0.88rem; }

.comment-actions { margin-top: 0.7rem; font-size: 0.88rem; }

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

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

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

.form-note { color: var(--muted); font-size: 0.87rem; }

.form-row { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }

.form-row label {
    font-family: var(--font-head);
    font-size: 0.88rem;
    color: var(--muted);
}

.form-row input,
.form-row textarea {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--ink);
    padding: 0.7rem 0.95rem;
    font: 400 0.97rem/1.6 var(--font-body);
    width: 100%;
    min-width: 0;
}

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

.comment-form-cookies-consent {
    display: flex;
    align-items: flex-start;
    gap: 0.6rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.form-submit input[type="submit"],
.form-submit .submit {
    display: inline-block;
    border-radius: 6px;
    font: 600 0.95rem/1.2 var(--font-head);
    padding: 0.72rem 1.35rem;
    cursor: pointer;
    background: var(--accent);
    color: #08221a;
    border: 1.5px solid var(--accent);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.form-submit input[type="submit"]:hover,
.form-submit .submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(74, 222, 128, 0.32);
}

/* -------------------------------------------------
   404
------------------------------------------------- */
.notfound { max-width: 620px; }

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

.notfound-back { margin-top: 1.6rem; }

/* -------------------------------------------------
   Подвал
------------------------------------------------- */
.site-bottom {
    position: relative;
    overflow: hidden;
    background: var(--bg-foot);
    border-top: 1px solid var(--line);
    padding: 3.4rem 0 2rem;
    z-index: 1;
}

.foot-branch {
    position: absolute;
    right: -30px;
    bottom: -20px;
    width: 340px;
    height: auto;
    opacity: 0.04;
    pointer-events: none;
}

.foot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
    gap: 2rem;
}

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

.site-bottom .widget { color: #cfe0d7; }

.site-bottom .widget p,
.site-bottom .widget li { color: #cfe0d7; }

.site-bottom .widget-title { color: var(--ink); }

.site-bottom .widget a { color: #cfe0d7; }
.site-bottom .widget a:hover { color: var(--accent); }

.site-bottom .widget li { border-bottom-color: #14291f; }

.copyline {
    margin: 2.8rem 0 0;
    padding-top: 1.4rem;
    border-top: 1px solid #14291f;
    font-size: 0.85rem;
    color: var(--muted);
}

/* -------------------------------------------------
   Cookie-баннер
------------------------------------------------- */
.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 50;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.1rem;
    padding: 1rem 1.6rem;
    background: var(--bg-head);
    border-top: 1px solid var(--line);
    box-shadow: 0 -6px 22px rgba(0, 0, 0, 0.45);
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: #cfe0d7;
    max-width: 70ch;
}

/* -------------------------------------------------
   Адаптив
------------------------------------------------- */
@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .page-title { font-size: 2.1rem; }
    .cta-phrase { font-size: 2.1rem; }

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

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

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

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

    .nav-list li { padding: 0.45rem 0; }

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

    .layout-single .content-area { width: 100%; }

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

    .stat-cell:nth-child(3)::before { display: none; }

    .fs { padding: 64px 0; }

    .fs-cta { padding: 64px 0; }

    .hero { min-height: 460px; }

    .hero-inner { padding: 4rem 0 3.4rem; }
}

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

    h1 { font-size: 1.95rem; }
    .hero-title { font-size: 1.95rem; }
    .hero-sub { font-size: 1.02rem; }
    .page-title { font-size: 1.8rem; }
    .sec-title { font-size: 1.55rem; gap: 12px; }
    .sec-title::before { flex-basis: 32px; }

    .cta-phrase { font-size: 1.7rem; }
    .cta-inner { padding: 0 1.1rem; }

    .stat-row { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; }
    .stat-cell { padding: 0 0.4rem; }
    .stat-cell + .stat-cell::before { display: none; }
    .stat-num { font-size: 2.5rem; }

    .fs { padding: 52px 0; }
    .fs-cta { padding: 56px 0; }

    .sprout-text { font-size: 1rem; }

    .card-body { padding: 1.2rem 1.2rem 1.3rem; }

    .entry blockquote { padding: 1.1rem 1.2rem; }

    .comment-inner { padding: 1rem 1.1rem; }

    .comment-list .children { margin-left: 0.8rem; }

    .page-wrap { padding: 2rem 0 3rem; }

    .home .site-main .shell { width: 92%; }

    .cookie-banner { padding: 1rem 1.2rem; justify-content: flex-start; }

    .post-nav-link.next { text-align: left; }

    body::after { width: 420px; height: 420px; right: -90px; bottom: -110px; }
}
