/*
Theme Name: dds_stayhouse.ru
Theme URI: https://stayhouse.ru/
Author: Елена Смирнова
Description: «Тихий Дом» — тема информационно-сервисного портала о пансионатах и реабилитационных центрах для пожилых. Японский минимализм, зелёная палитра, асимметрия и много воздуха.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: qhome
*/

/* ==========================================================================
   Переменные
   ========================================================================== */

:root {
    --bg:        #F5F7F2;
    --bg-alt:    #E8EDE4;
    --bg-head:   #FFFFFF;
    --bg-foot:   #2D3B2D;
    --bg-aside:  #EDF1E8;
    --ink:       #1F2A1F;
    --accent:    #4A7C59;
    --accent-2:  #A3C9A8;
    --muted:     #6B7B6B;
    --line:      #C5D5C5;
    --font-head: "Noto Sans JP", "Hiragino Kaku Gothic ProN", "Segoe UI", system-ui, sans-serif;
    --font-body: "Inter", "Source Sans Pro", "Segoe UI", system-ui, -apple-system, sans-serif;
}

/* ==========================================================================
   Скрытые элементы (см. управление через атрибут hidden)
   ========================================================================== */

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

/* ==========================================================================
   База
   ========================================================================== */

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

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

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.75;
    color: var(--ink);
    background-color: var(--bg);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(232, 237, 228, 0.3) 0,
        rgba(232, 237, 228, 0.3) 1px,
        transparent 1px,
        transparent 8px
    );
}

body::after {
    content: "";
    position: fixed;
    right: -60px;
    bottom: -50px;
    width: 420px;
    height: 420px;
    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='%23A3C9A8' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='M30 180 L150 40'/%3E%3Cpath d='M60 148 L44 118 M60 148 L92 140'/%3E%3Cpath d='M78 128 L60 100 M78 128 L112 122'/%3E%3Cpath d='M96 108 L78 82 M96 108 L130 104'/%3E%3Cpath d='M114 88 L98 64 M114 88 L146 86'/%3E%3Cpath d='M132 68 L118 46 M132 68 L160 68'/%3E%3Cpath d='M146 52 L136 34 M146 52 L168 54'/%3E%3C/g%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    opacity: 0.05;
    pointer-events: none;
    z-index: 0;
}

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

figure {
    margin: 2rem 0;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-head);
    font-weight: 500;
    line-height: 1.25;
    color: var(--ink);
    margin: 2.2rem 0 1rem;
}

h1 {
    font-size: 3.2rem;
    letter-spacing: -0.01em;
}

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

p {
    margin: 0 0 1.2rem;
}

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

.topline {
    display: flex;
    height: 3px;
    width: 100%;
}

.topline span {
    display: block;
    height: 3px;
    flex: 1 1 33.333%;
}

.topline span:nth-child(1) { background: #4A7C59; }
.topline span:nth-child(2) { background: #A3C9A8; }
.topline span:nth-child(3) { background: #2D3B2D; }

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

.wide-col {
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* ==========================================================================
   Шапка
   ========================================================================== */

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

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

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

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

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

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

.brand-name {
    display: block;
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.4;
    color: var(--ink);
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

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

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    padding: 0.55rem 1rem;
    font: inherit;
    font-size: 0.9rem;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
}

.nav-toggle:hover {
    background: var(--accent);
    color: #fff;
}

.nav-list {
    display: flex;
    align-items: center;
    gap: 1.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-list li {
    position: relative;
}

.nav-list a {
    display: inline-block;
    padding: 0.3rem 0;
    font-size: 0.97rem;
    color: var(--ink);
    background-image: linear-gradient(var(--accent), var(--accent));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease, color 0.2s ease;
}

.nav-list a:hover,
.nav-list .current-menu-item > a {
    color: var(--accent);
    background-size: 100% 1px;
}

.nav-list .sub-menu {
    position: absolute;
    left: 0;
    top: 100%;
    z-index: 20;
    min-width: 210px;
    margin: 0;
    padding: 0.6rem 0;
    list-style: none;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    display: none;
}

.nav-list li:hover > .sub-menu {
    display: block;
}

.nav-list .sub-menu a {
    display: block;
    padding: 0.4rem 1.1rem;
}

/* ==========================================================================
   Кнопки и ссылки контента
   ========================================================================== */

.btn {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 500;
    color: var(--accent);
    background: transparent;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s ease, color 0.25s ease, transform 0.2s ease;
}

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

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

.btn--fill:hover,
.btn--fill:focus {
    background: #3E6A4A;
    border-color: #3E6A4A;
    color: #fff;
}

.btn--light {
    color: #fff;
    border-color: #fff;
}

.btn--light:hover,
.btn--light:focus {
    background: #fff;
    color: #1F2A1F;
}

.entry-content a,
.crumbs a,
.card-excerpt a,
.widget a {
    background-image: linear-gradient(currentColor, currentColor);
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 1px;
    transition: background-size 0.25s ease;
}

.entry-content a:hover,
.crumbs a:hover,
.card-excerpt a:hover,
.widget a:hover {
    background-size: 100% 1px;
}

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

.site-main {
    display: block;
    padding: 2.4rem 0 4.5rem;
}

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

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

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

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

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

.crumbs {
    margin: 0 0 1.8rem;
    font-size: 0.85rem;
    color: var(--muted);
}

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

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

.crumbs .sep {
    margin: 0 0.45rem;
    color: var(--accent-2);
}

/* Заголовки секций и точки у заголовков */

.section-title {
    display: flex;
    align-items: center;
    gap: 1.1rem;
    margin: 0 0 2rem;
    font-size: 2rem;
}

.section-title::before {
    content: "";
    flex: 0 0 2.6rem;
    height: 1px;
    background: var(--accent);
}

.entry-content h2,
.entry-content h3,
.step-title {
    position: relative;
    padding-left: 1.1rem;
}

.entry-content h2::before,
.entry-content h3::before,
.step-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--accent-2);
}

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

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

.entry-title {
    margin: 0 0 0.8rem;
    font-size: 2.6rem;
}

.entry-meta {
    font-size: 0.85rem;
    color: var(--muted);
    display: flex;
    flex-wrap: wrap;
    gap: 1.2rem;
}

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

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

.entry-content > *:first-child {
    margin-top: 0;
}

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

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

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

.entry-content blockquote,
blockquote {
    margin: 2rem 0;
    padding: 1.5rem;
    border-left: 3px solid var(--accent-2);
    background: var(--bg-alt);
    border-radius: 2px;
    font-size: 1.1rem;
    font-style: normal;
}

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

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

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

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

.entry-foot {
    margin-top: 2.5rem;
    padding-top: 1.4rem;
    border-top: 1px solid var(--line);
    font-size: 0.88rem;
    color: var(--muted);
}

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

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

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

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
    overflow: hidden;
    transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.card:hover {
    border-color: var(--accent);
    box-shadow: 0 10px 30px rgba(74, 124, 89, 0.08);
}

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

.card-thumb--empty {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 2px;
    background: var(--bg-alt);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(163, 201, 168, 0.35) 0,
        rgba(163, 201, 168, 0.35) 1px,
        transparent 1px,
        transparent 12px
    );
}

.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 1.2rem 0.6rem 0.5rem;
}

.card-meta {
    font-size: 0.8rem;
    color: var(--muted);
    margin-bottom: 0.6rem;
}

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

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

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

.card-excerpt {
    color: var(--muted);
    font-size: 0.95rem;
    margin-bottom: 1.2rem;
}

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

.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-size: 0.9rem;
    font-family: var(--font-head);
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease;
}

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

/* ==========================================================================
   Главная
   ========================================================================== */

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

.front-section--alt {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(
        to bottom,
        rgba(197, 213, 197, 0.2) 0,
        rgba(197, 213, 197, 0.2) 1px,
        transparent 1px,
        transparent 12px
    );
}

.front-section--accent .wide-col {
    position: relative;
}

.front-section--accent .wide-col::before {
    content: "";
    position: absolute;
    left: -2rem;
    top: 0.4rem;
    bottom: 0.4rem;
    width: 1px;
    background: var(--accent-2);
}

.front-lead {
    max-width: 62ch;
    color: var(--muted);
    margin-bottom: 2.6rem;
}

/* Блок 1 — hero */

.hero {
    position: relative;
    overflow: hidden;
    padding: 7rem 0;
    background: #2D3B2D;
}

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

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

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(100deg, rgba(31, 42, 31, 0.82) 0%, rgba(31, 42, 31, 0.55) 55%, rgba(31, 42, 31, 0.25) 100%);
}

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

.hero-copy {
    width: 60%;
    min-width: 0;
}

.hero-kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    margin-bottom: 1.4rem;
    font-family: var(--font-head);
    font-size: 0.82rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--accent-2);
}

.hero-kicker::before {
    content: "";
    width: 2.6rem;
    height: 1px;
    background: var(--accent-2);
}

.hero-title {
    margin: 0 0 1.4rem;
    color: #fff;
    font-size: 3.2rem;
}

.hero-text {
    margin: 0 0 2.2rem;
    color: #E3EBE1;
    font-size: 1.1rem;
    max-width: 52ch;
}

.hero-branch {
    position: absolute;
    right: 2%;
    bottom: -10%;
    width: 320px;
    max-width: 42%;
    opacity: 0.16;
    z-index: 1;
    pointer-events: none;
}

/* Блок 2 — шаги */

.steps {
    display: block;
    margin-top: 1rem;
}

.step {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    padding: 2.2rem 0;
    min-width: 0;
}

.step:nth-child(even) {
    margin-left: 2rem;
    border-top: 1px solid var(--bg-alt);
    border-bottom: 1px solid var(--bg-alt);
}

.step-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 2.6rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent-2);
}

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

.step-title {
    margin: 0 0 0.6rem;
    font-size: 1.32rem;
}

.step-body p {
    margin: 0;
    color: var(--muted);
}

/* Блок 3 — статистика */

.stats {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.stat {
    flex: 1 1 180px;
    min-width: 0;
    position: relative;
    padding: 0 1rem;
    text-align: left;
}

.stat + .stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 3rem;
    background: var(--line);
}

.stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 2.7rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--accent);
}

.stat-label {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.92rem;
    color: var(--muted);
}

/* Блок 4 — CTA */

.cta {
    position: relative;
    padding: 4rem 3rem;
    background: var(--bg-foot);
    border-radius: 4px;
    overflow: hidden;
}

.cta-dot {
    position: absolute;
    top: 1.6rem;
    right: 1.6rem;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-2);
}

.cta-title {
    position: relative;
    margin: 0 0 1.8rem;
    padding-left: 1.4rem;
    max-width: 24ch;
    font-size: 2.1rem;
    color: #fff;
}

.cta-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.62em;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

.cta-text {
    max-width: 58ch;
    margin: 0 0 2rem;
    color: #C9D6C6;
}

/* Последние записи на главной */

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

.latest-link {
    font-family: var(--font-head);
    font-size: 0.93rem;
}

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

.sidebar {
    min-width: 0;
    padding: 1.8rem 1.6rem;
    background: var(--bg-aside);
    border: 1px solid var(--line);
    border-radius: 2px;
}

.sidebar .widget {
    margin-bottom: 2rem;
    color: var(--ink);
}

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

.widget-title {
    margin: 0 0 1rem;
    font-size: 1.1rem;
    font-family: var(--font-head);
}

.sidebar .widget-title {
    color: var(--ink);
    padding-bottom: 0.7rem;
    border-bottom: 1px solid var(--line);
}

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

.widget li {
    margin-bottom: 0.7rem;
    line-height: 1.5;
}

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

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

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

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

.site-foot {
    background: var(--bg-foot);
    color: #C9D6C6;
    padding: 4rem 0 2rem;
}

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

.foot-col .widget {
    color: #C9D6C6;
}

.foot-col .widget-title {
    color: #fff;
    margin-bottom: 1rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px solid rgba(163, 201, 168, 0.35);
}

.foot-col .widget a {
    color: #C9D6C6;
}

.foot-col .widget a:hover {
    color: #fff;
}

.foot-col .widget p {
    color: #C9D6C6;
    font-size: 0.93rem;
}

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

.foot-bottom {
    margin-top: 3rem;
    padding-top: 1.4rem;
    border-top: 1px solid rgba(163, 201, 168, 0.25);
    font-size: 0.85rem;
    color: #9FB39C;
}

.foot-bottom p {
    margin: 0;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 3rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    font-size: 0.93rem;
    font-family: var(--font-head);
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    transition: border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.pager .page-numbers:hover {
    border-color: var(--accent);
    color: var(--accent);
}

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

.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
}

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

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

.search-form label {
    flex: 1 1 auto;
    min-width: 0;
}

.search-field {
    width: 100%;
    padding: 0.75rem 1rem;
    font: inherit;
    font-size: 0.95rem;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
}

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

.search-submit {
    flex: 0 0 auto;
}

.comments-area {
    margin-top: 3.5rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}

.comments-title,
.comment-reply-title {
    font-size: 1.5rem;
    margin-top: 0;
}

.comment-list {
    margin: 0 0 2.5rem;
    padding: 0;
    list-style: none;
}

.comment-list .children {
    margin: 1.2rem 0 0 1.5rem;
    padding: 0;
    list-style: none;
}

.note-body {
    padding: 1.3rem 1.5rem;
    margin-bottom: 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 2px;
}

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

.note-author {
    font-family: var(--font-head);
    font-weight: 500;
}

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

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

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

.comment-form {
    display: block;
}

.comment-form p {
    margin-bottom: 1rem;
}

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

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

.comment-form textarea {
    min-height: 160px;
    resize: vertical;
}

.comment-form input[type="submit"] {
    display: inline-block;
    padding: 0.85rem 1.7rem;
    font-family: var(--font-head);
    font-size: 0.97rem;
    color: #fff;
    background: var(--accent);
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.25s ease, transform 0.2s ease;
}

.comment-form input[type="submit"]:hover {
    background: #3E6A4A;
    transform: translateY(-1px);
}

.err-page {
    padding: 2rem 0 1rem;
}

.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    margin: 0 0 1rem;
}

.err-actions {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem;
    padding: 1.1rem 1.6rem;
    background: var(--bg-foot);
    border-top: 3px solid var(--accent);
}

.cookie-banner p {
    margin: 0;
    color: #D6E0D4;
    font-size: 0.9rem;
    max-width: 78ch;
}

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

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

@media (max-width: 960px) {
    h1 { font-size: 2.4rem; }
    .hero-title { font-size: 2.4rem; }
    .entry-title { font-size: 2.1rem; }

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

    .layout-single,
    .wide-col {
        width: 100%;
    }

    .hero-copy {
        width: 100%;
    }

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

    .front-section--accent .wide-col::before {
        display: none;
    }
}

@media (max-width: 760px) {
    .nav-toggle {
        display: inline-flex;
    }

    .main-nav {
        flex: 1 1 100%;
        order: 3;
    }

    .nav-list {
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin-top: 1rem;
        border-top: 1px solid var(--line);
    }

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

    .nav-list a {
        display: block;
        padding: 0.8rem 0;
    }

    .nav-list .sub-menu {
        position: static;
        display: block;
        border: 0;
        padding: 0 0 0.5rem 1rem;
    }

    .head-inner {
        align-items: flex-start;
    }
}

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

    h1 { font-size: 2rem; }
    h2 { font-size: 1.6rem; }

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

    .hero {
        padding: 4.2rem 0;
    }

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

    .hero-branch {
        width: 190px;
        bottom: -6%;
        opacity: 0.12;
    }

    .section-title {
        font-size: 1.6rem;
        gap: 0.8rem;
    }

    .section-title::before {
        flex-basis: 1.6rem;
    }

    .step {
        gap: 1.1rem;
        padding: 1.6rem 0;
    }

    .step:nth-child(even) {
        margin-left: 0;
    }

    .step-num {
        font-size: 2rem;
    }

    .stats {
        gap: 1.6rem;
    }

    .stat {
        flex: 1 1 100%;
        padding: 0;
    }

    .stat + .stat::before {
        display: none;
    }

    .stat + .stat {
        padding-top: 1.4rem;
        border-top: 1px solid var(--line);
    }

    .cta {
        padding: 2.4rem 1.5rem;
    }

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

    .sidebar {
        padding: 1.4rem 1.2rem;
    }

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

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

    .note-body {
        padding: 1.1rem 1.1rem;
    }

    .card-body {
        padding: 1rem 0.4rem 0.4rem;
    }
}
