/*
Theme Name: dds_cultivatedforgod.com
Theme URI: https://cultivatedforgod.com/
Author: Станислав Ермаков
Description: Тема информационного сайта о ремонте, покраске и декоративной отделке. Концепция «Лаборатория отделки»: индустриальная точность и природная фактура.
Version: 1.1
Requires at least: 6.0
Tested up to: 6.6
Requires PHP: 8.0
Text Domain: kraskolab
*/

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

:root {
    --bg: #F4F7F2;
    --bg-alt: #E8EDE4;
    --head-bg: #1E2321;
    --foot-bg: #131716;
    --ink: #1E2321;
    --pine: #3A6B4B;
    --copper: #D48B4F;
    --mute: #7A857A;
    --line: #C4CBC2;
    --paper: #FFFFFF;
    --ink-soft: #3B443E;
    --font-head: "Roboto Condensed", "Oswald", "PT Sans Narrow", "Arial Narrow", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

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

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: hidden;
    background-color: var(--bg);
    background-image:
        repeating-linear-gradient(0deg, rgba(30, 35, 33, 0.030) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(30, 35, 33, 0.030) 0 1px, transparent 1px 3px);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}

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

a {
    color: var(--pine);
}

p {
    margin: 0 0 1.05rem;
}

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

h1 { font-size: clamp(2.1rem, 6.2vw, 4.2rem); }
h2 { font-size: clamp(1.65rem, 3.4vw, 2.45rem); }
h3 { font-size: clamp(1.25rem, 2.3vw, 1.6rem); }
h4 { font-size: 1.18rem; }

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

.front-band {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.site-main {
    padding: 2.2rem 0 3.6rem;
}

.home .site-main {
    padding-top: 0;
}

/* ============================================================
   2. Раскладки
   ============================================================ */

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

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

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

/* ============================================================
   3. Кнопки и ссылки
   ============================================================ */

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 0.72rem 1.5rem;
    background: var(--pine);
    color: #FFFFFF;
    border: 2px solid var(--pine);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover,
.btn:focus {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--ink);
}

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

.btn--ghost:hover,
.btn--ghost:focus {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--ink);
}

.btn--copper {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--ink);
}

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

.btn--sm {
    font-size: 0.84rem;
    padding: 0.55rem 1.1rem;
}

/* ============================================================
   4. Шапка
   ============================================================ */

.site-top {
    background-color: var(--head-bg);
    background-image: repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 10px);
    color: #E9EEE5;
    border-bottom: 3px solid var(--pine);
}

.site-top__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.1rem;
    padding: 1.05rem 0;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    text-decoration: none;
    color: inherit;
    min-width: 0;
    max-width: 640px;
}

.brand-logo {
    display: block;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
}

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1rem;
    line-height: 1.25;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #F2F6EF;
}

.brand-desc {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #9AA697;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.35rem;
    background: transparent;
    border: 2px solid #4C544A;
    border-radius: 4px;
    color: #E9EEE5;
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 0.5rem 0.8rem;
    cursor: pointer;
}

.nav-toggle__bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--copper);
    margin-bottom: 3px;
}

.nav-toggle__label {
    margin-left: 0.4rem;
    font-size: 0.85rem;
}

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

.site-nav a {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.94rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-decoration: none;
    color: #E9EEE5;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

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

/* ============================================================
   5. Хлебные крошки, заголовки секций
   ============================================================ */

.breadcrumbs {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.82rem;
    color: var(--mute);
    margin-bottom: 1.5rem;
}

.breadcrumbs a {
    color: var(--pine);
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: var(--copper);
}

.breadcrumbs .sep {
    color: var(--copper);
}

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

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

.page-lead {
    color: var(--ink-soft);
    font-size: 1.02rem;
    max-width: 62ch;
}

.section-title {
    position: relative;
    padding-top: 1.05rem;
    padding-left: 1.1rem;
    margin-bottom: 1.7rem;
}

.section-title::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 1px;
    background: var(--copper);
}

.section-title::after {
    content: "";
    position: absolute;
    left: -0.9rem;
    bottom: -0.6rem;
    width: 5.5rem;
    height: 6px;
    background: var(--pine);
}

.section-lead {
    color: var(--ink-soft);
    max-width: 66ch;
    margin-bottom: 1.6rem;
}

.section-more {
    margin: 1.6rem 0 0;
}

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

/* ============================================================
   6. Секции главной и разделители
   ============================================================ */

.front-section {
    padding: 2.6rem 0;
}

.front-section--alt {
    background: var(--bg-alt);
    padding: 2.6rem 2.2rem;
}

.divider {
    position: relative;
    height: 2px;
    border: 0;
    margin: 0;
    background-image: repeating-linear-gradient(90deg, var(--mute) 0 14px, transparent 14px 30px);
    opacity: 0.55;
}

.divider::after {
    content: "";
    position: absolute;
    left: 50%;
    top: -7px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--copper);
    transform: translateX(-50%);
}

/* ============================================================
   7. Hero
   ============================================================ */

.hero {
    position: relative;
    overflow: hidden;
    background-color: var(--head-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300' viewBox='0 0 300 300'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.03'%3E%3Ccircle cx='105' cy='105' r='80'/%3E%3Ccircle cx='185' cy='140' r='80'/%3E%3Ccircle cx='140' cy='200' r='80'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 11px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px bottom -60px, 0 0;
    color: #EDF1EA;
    padding: 3.4rem 0 3.8rem;
    border-bottom: 4px solid var(--pine);
}

.hero__inner {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 2.6rem;
    align-items: center;
}

.hero__kicker {
    font-family: var(--font-head);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 0.82rem;
    color: var(--copper);
    margin-bottom: 0.7rem;
}

.hero h1 {
    color: #F6F9F4;
    margin-bottom: 1rem;
}

.hero__lead {
    color: #BDC8B9;
    font-size: 1.06rem;
    max-width: 48ch;
    margin-bottom: 1.6rem;
}

.hero__art img {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================================
   8. Таймлайн
   ============================================================ */

.timeline {
    position: relative;
    padding-left: 3.6rem;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 1.35rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 6px;
    background: var(--pine);
}

.tl-item {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr) 190px;
    gap: 1.5rem;
    align-items: center;
    padding: 0.4rem 0;
    margin-bottom: 1.9rem;
}

.tl-item:last-child {
    margin-bottom: 0;
}

.tl-num {
    position: absolute;
    left: -3.6rem;
    top: 0.4rem;
    width: 3rem;
    height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--copper);
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    border: 4px solid var(--bg);
}

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

.tl-title {
    margin-bottom: 0.4rem;
}

.tl-text {
    color: var(--ink-soft);
    margin: 0;
}

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

.tl-img img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-bottom: 4px solid var(--pine);
}

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

.cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr));
    gap: 1.7rem;
}

.cards--feed {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: var(--paper);
    border-radius: 0;
    border-top: 4px solid var(--pine);
    box-shadow: 10px 12px 22px -14px var(--line);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.card:hover {
    transform: translateY(-6px);
    border-top-color: var(--copper);
    box-shadow: 16px 20px 28px -16px var(--line);
}

.card-thumb-wrap {
    display: block;
    width: calc(100% + 1.2rem);
    margin-left: -0.6rem;
    overflow: hidden;
}

.card-thumb-wrap a {
    display: block;
}

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

.card-body {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
    padding: 1.25rem 1.35rem 1.45rem;
}

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

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

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

.card-meta {
    font-size: 0.76rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin: 0 0 0.75rem;
}

.meta-dot {
    display: inline-block;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--copper);
    vertical-align: middle;
}

.card-excerpt {
    color: var(--ink-soft);
    font-size: 0.95rem;
    margin-bottom: 1.1rem;
}

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

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

/* ============================================================
   10. Цитата и рубрикатор
   ============================================================ */

.quote-block {
    position: relative;
    background: var(--bg-alt);
    border: 1px dashed var(--mute);
    padding: 2.6rem 2.4rem;
}

.quote-block blockquote {
    margin: 0 0 1rem;
    padding-left: 1.6rem;
    border-left: 9px solid var(--copper);
    font-family: var(--font-head);
    font-size: clamp(1.5rem, 3.6vw, 3rem);
    line-height: 1.14;
    color: var(--ink);
}

.quote-note {
    margin: 0 0 0 calc(1.6rem + 9px);
    color: var(--ink-soft);
    max-width: 62ch;
}

.plates {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.6rem;
    align-items: start;
}

.plate {
    display: block;
    min-width: 0;
    background: var(--paper);
    border: 2px solid var(--pine);
    padding: 1.8rem 1.6rem;
    text-decoration: none;
    color: var(--ink);
    transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.plate:nth-child(2) {
    border-color: var(--copper);
    margin-top: 2.2rem;
}

.plate:nth-child(3) {
    border-color: #4C544A;
    margin-top: 4.4rem;
}

.plate:hover {
    transform: translateY(-6px);
    box-shadow: 12px 14px 24px -16px var(--line);
}

.plate__title {
    display: block;
    font-family: var(--font-head);
    font-size: 1.38rem;
    line-height: 1.15;
    margin-bottom: 0.6rem;
}

.plate__count {
    display: block;
    font-size: 0.82rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    color: var(--mute);
}

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

.entry {
    background: var(--paper);
    padding: 2rem 2.1rem 2.2rem;
    border-top: 4px solid var(--pine);
    box-shadow: 10px 12px 22px -14px var(--line);
}

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

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

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

.entry-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.entry-content h2,
.entry-content h3 {
    position: relative;
    padding-left: 1.15rem;
    margin-top: 2rem;
}

.entry-content h2::before,
.entry-content h3::before {
    content: "";
    position: absolute;
    left: -0.5rem;
    top: 0.32em;
    width: 0.55rem;
    height: 1.05rem;
    background: var(--copper);
}

.entry-content a {
    color: var(--pine);
    text-decoration: none;
    padding-bottom: 2px;
    background-image: linear-gradient(var(--copper), var(--copper));
    background-repeat: no-repeat;
    background-position: 50% 100%;
    background-size: 0% 3px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.entry-content a:hover {
    color: var(--copper);
    background-size: 100% 3px;
}

.entry-content ul,
.entry-content ol {
    padding-left: 1.35rem;
    margin: 0 0 1.2rem;
}

.entry-content li {
    margin-bottom: 0.45rem;
}

.entry-content img {
    display: block;
    height: auto;
}

.entry-content blockquote {
    margin: 0 0 1.3rem;
    padding: 1.2rem 1.4rem;
    background: var(--bg-alt);
    border-left: 8px solid var(--copper);
}

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

.entry-content .term,
.entry-content mark {
    background: var(--bg-alt);
    border-bottom: 2px solid var(--pine);
    padding: 0 0.18em;
    color: var(--ink);
}

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

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

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

.entry-content figure {
    margin: 0 0 1.4rem;
}

.entry-content pre {
    overflow-x: auto;
    background: var(--bg-alt);
    padding: 1rem;
}

.entry-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 1.6rem;
    padding-top: 1.2rem;
    border-top: 1px dashed var(--line);
}

.entry-tags a {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    text-decoration: none;
    color: var(--pine);
    border: 1px solid var(--line);
    border-radius: 4px;
    padding: 0.25rem 0.65rem;
}

.entry-tags a:hover {
    color: var(--copper);
    border-color: var(--copper);
}

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

.post-nav a {
    display: inline-block;
    color: var(--pine);
    text-decoration: none;
    font-family: var(--font-head);
    letter-spacing: 0.03em;
}

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

.post-nav__next {
    text-align: right;
}

.page-links {
    margin-top: 1.2rem;
    font-family: var(--font-head);
}

/* ============================================================
   12. Сайдбар и виджеты
   ============================================================ */

.sidebar {
    background: var(--paper);
    box-shadow: 8px 10px 20px -16px var(--line);
    padding: 1.5rem 1.35rem;
    border-top: 4px solid var(--copper);
}

.widget {
    margin-bottom: 1.8rem;
}

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

.widget-title {
    font-size: 1.05rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding-bottom: 0.45rem;
    margin-bottom: 0.9rem;
    border-bottom: 2px solid var(--pine);
}

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

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

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

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

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

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

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

.sidebar .post-date,
.sidebar .widget .post-date {
    display: block;
    font-size: 0.76rem;
    color: var(--mute);
}

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

.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.2rem;
}

.pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.7rem;
    height: 2.7rem;
    padding: 0 0.75rem;
    background: var(--paper);
    border: 2px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--font-head);
    letter-spacing: 0.04em;
    text-decoration: none;
    transition: border-color 0.2s ease, color 0.2s ease;
}

.pagination a.page-numbers:hover {
    border-color: var(--copper);
    color: var(--copper);
}

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

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

/* ============================================================
   14. Формы поиска и комментариев
   ============================================================ */

.search-form__label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.4rem;
}

.search-form__row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.search-form__input {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.search-form__input:focus {
    outline: none;
    border-color: var(--pine);
}

.comments {
    margin-top: 2.2rem;
    background: var(--paper);
    padding: 1.8rem 2rem 2rem;
    border-top: 4px solid var(--copper);
    box-shadow: 10px 12px 22px -14px var(--line);
}

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

.comments-count {
    display: inline-block;
    margin-left: 0.6rem;
    padding: 0 0.55rem;
    background: var(--pine);
    color: #FFFFFF;
    font-size: 0.9rem;
    border-radius: 4px;
}

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

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

.comment-item {
    padding: 1.1rem 0;
    border-bottom: 1px dashed var(--line);
}

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

.comment-author {
    font-family: var(--font-head);
    font-size: 1.05rem;
    letter-spacing: 0.03em;
}

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

.comment-reply a {
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--pine);
    text-decoration: none;
}

.comment-reply a:hover {
    color: var(--copper);
}

.comment-form label {
    display: block;
    font-family: var(--font-head);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--mute);
    margin-bottom: 0.35rem;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.7rem 0.85rem;
    border: 2px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}

.comment-form textarea {
    resize: vertical;
}

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

.comment-form .submit {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 0.72rem 1.5rem;
    background: var(--pine);
    color: #FFFFFF;
    border: 2px solid var(--pine);
    border-radius: 4px;
    cursor: pointer;
}

.comment-form .submit:hover {
    background: var(--copper);
    border-color: var(--copper);
    color: var(--ink);
}

/* ============================================================
   15. Страница 404
   ============================================================ */

.error-page {
    background: var(--paper);
    padding: 2.2rem 2.1rem;
    border-top: 4px solid var(--copper);
    box-shadow: 10px 12px 22px -14px var(--line);
}

.error-code {
    font-family: var(--font-head);
    font-size: 4rem;
    line-height: 1;
    color: var(--copper);
    margin-bottom: 0.4rem;
}

.error-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-top: 1.6rem;
}

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

.site-bottom {
    background-color: var(--foot-bg);
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='320' height='320' viewBox='0 0 320 320'%3E%3Cg fill='none' stroke='%23ffffff' stroke-width='2' opacity='0.03'%3E%3Ccircle cx='110' cy='110' r='88'/%3E%3Ccircle cx='200' cy='150' r='88'/%3E%3Ccircle cx='150' cy='215' r='88'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right -30px bottom -40px;
    color: #C4CEC1;
    padding: 2.8rem 0 1.6rem;
    border-top: 4px solid var(--pine);
}

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

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

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

.site-bottom .widget-title {
    color: #F2F6EF;
    border-bottom-color: var(--copper);
}

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

.site-bottom .widget a:hover {
    color: var(--copper);
}

.site-bottom .widget li {
    border-bottom: 1px dashed rgba(255, 255, 255, 0.14);
}

.site-bottom .post-date,
.site-bottom .widget .post-date {
    display: block;
    font-size: 0.76rem;
    color: #8D9A8B;
}

.copyright {
    margin: 2.2rem 0 0;
    padding-top: 1.1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
    font-size: 0.85rem;
    color: #93A091;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    background: var(--head-bg);
    color: #E7ECE4;
    border-top: 3px solid var(--copper);
    padding: 1rem 1.5rem;
}

.cookie-banner__text {
    margin: 0;
    min-width: 0;
    font-size: 0.9rem;
    max-width: 78ch;
}

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

@media (max-width: 960px) {
    .layout-single,
    .front-band {
        width: 100%;
    }

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

    .sidebar {
        margin-top: 2rem;
    }

    .nav-toggle {
        display: inline-flex;
        flex-direction: row;
        align-items: center;
    }

    .nav-toggle__bar {
        margin-bottom: 0;
        margin-right: 3px;
        width: 2px;
        height: 16px;
    }

    .site-nav {
        display: none;
        width: 100%;
    }

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

    .site-nav .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        padding: 0.8rem 0 0.3rem;
    }

    .site-nav .nav-list li {
        border-bottom: 1px dashed rgba(255, 255, 255, 0.16);
        padding: 0.55rem 0;
    }

    .hero__inner {
        grid-template-columns: 1fr;
    }

    .plates {
        grid-template-columns: 1fr;
    }

    .plate:nth-child(2),
    .plate:nth-child(3) {
        margin-top: 0;
    }

    .foot-cols {
        grid-template-columns: 1fr;
    }
}

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

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

    .brand-desc {
        display: none;
    }

    .front-section {
        padding: 2rem 0;
    }

    .front-section--alt {
        padding: 2rem 1.3rem;
    }

    .hero {
        padding: 2.4rem 0 2.6rem;
    }

    .timeline {
        padding-left: 2.9rem;
    }

    .timeline::before {
        left: 1.05rem;
        width: 4px;
    }

    .tl-item {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .tl-num {
        left: -2.9rem;
        width: 2.4rem;
        height: 2.4rem;
        font-size: 0.9rem;
        border-width: 3px;
    }

    .tl-img img {
        aspect-ratio: 16 / 9;
    }

    .quote-block {
        padding: 1.8rem 1.4rem;
    }

    .quote-note {
        margin-left: 0;
    }

    .entry,
    .comments,
    .error-page {
        padding: 1.5rem 1.3rem 1.7rem;
    }

    .post-nav {
        grid-template-columns: 1fr;
    }

    .post-nav__next {
        text-align: left;
    }

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

    .card-thumb-wrap {
        width: 100%;
        margin-left: 0;
    }
}
