/*
Theme Name: dds_sushimoris.ru
Author: Марина Лебедева
Description: Тема информационного портала о здоровом питании и диетологии. Японский минимализм, зелёная палитра, научная редакционная вёрстка.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: mtblab
*/

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

:root {
    --bg:        #F7FAF8;
    --bg-alt:    #EDF4EF;
    --bg-side:   #F0F6F2;
    --ink:       #1E2B23;
    --ink-mute:  #6B7F73;
    --accent:    #2E8B6B;
    --accent-2:  #7FB89A;
    --line:      #C8D9CE;
    --line-soft: #D9E8DF;
    --dark:      #1B2E24;
    --font-head: "Manrope", "Noto Sans JP", "Segoe UI", "Helvetica Neue", 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;
    padding: 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:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='420' height='420' viewBox='0 0 420 420'%3E%3Cg fill='none' stroke='%237FB89A' stroke-width='3' opacity='0.08'%3E%3Cpath d='M300 40c60 30 80 110 40 170-40 60-120 60-160 10'/%3E%3Cpath d='M300 40c-50 40-70 120-40 180'/%3E%3Ccircle cx='150' cy='250' r='26'/%3E%3Ccircle cx='230' cy='300' r='16'/%3E%3Cpath d='M170 262l46 28'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(circle, rgba(217, 232, 223, 0.3) 1px, transparent 1px);
    background-repeat: no-repeat, repeat;
    background-position: right -40px top 60px, 0 0;
    background-size: 420px 420px, 24px 24px;
    background-attachment: fixed, scroll;
}

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

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

p { margin: 0 0 1.15em; }

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

h1 { font-size: 3.2rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.15rem; }

ul, ol { margin: 0 0 1.2em; padding-left: 1.3em; }
li { margin-bottom: 0.4em; }

blockquote {
    margin: 1.8em 0;
    padding: 1.2rem 1.5rem;
    border-left: 3px solid var(--accent);
    background: var(--bg-side);
    font-size: 1.05rem;
}
blockquote p:last-child { margin-bottom: 0; }

code, pre {
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 0.92em;
    background: var(--bg-alt);
}
pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    border: 1px solid var(--line-soft);
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    border: 1px solid var(--line);
}
th, td {
    border: 1px solid var(--line);
    padding: 0.6rem 0.8rem;
    text-align: left;
}
th { background: var(--bg-alt); font-family: var(--font-head); }

hr {
    border: 0;
    border-top: 1px solid var(--line);
    margin: 2.2rem 0;
}

/* =========================================================
   2. Служебные состояния
   ========================================================= */

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

.skip-link {
    position: absolute;
    left: -9999px;
    top: 0;
    background: var(--accent);
    color: #fff;
    padding: 0.6rem 1rem;
    z-index: 100;
}
.skip-link:focus { left: 0; }

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

/* =========================================================
   3. Контейнер, ссылки, кнопки
   ========================================================= */

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

.entry-content a,
.widget a,
.trail a,
.site-desc a {
    position: relative;
}

.entry-content a::after,
.widget-area a::after {
    content: "";
    position: absolute;
    left: 0; bottom: -2px;
    width: 100%;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform 0.25s ease;
}
.entry-content a:hover::after,
.widget-area a:hover::after { transform: scaleX(1); }

.btn {
    display: inline-block;
    font-family: var(--font-head);
    font-size: 0.95rem;
    font-weight: 600;
    line-height: 1.2;
    padding: 0.85rem 1.6rem;
    border-radius: 4px;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.btn-fill {
    background: var(--accent);
    color: #fff;
}
.btn-fill:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(127, 184, 154, 0.55);
    color: #fff;
}
.btn-ghost {
    background: transparent;
    color: var(--accent);
    border-color: var(--accent);
}
.btn-ghost:hover {
    transform: translateX(2px);
    background: rgba(46, 139, 107, 0.1);
    box-shadow: 0 4px 14px rgba(127, 184, 154, 0.4);
}

/* =========================================================
   4. Верхняя полоса, шапка
   ========================================================= */

.top-rule {
    height: 4px;
    background-image: linear-gradient(
        to right,
        var(--accent) 0, var(--accent) 20%,
        transparent 20%, transparent 26%,
        var(--accent) 26%, var(--accent) 100%
    );
}

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

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

.brand {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    min-width: 0;
    flex: 1 1 340px;
}
.brand-mark { flex: 0 0 auto; line-height: 0; }
.brand-logo { display: block; max-height: 56px; width: auto; }
.brand-text { min-width: 0; }
.brand-title {
    font-family: var(--font-head);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--ink);
    margin: 0 0 0.25rem;
    display: block;
    max-width: 46ch;
}
a.brand-title:hover { color: var(--accent); }
.brand-sub {
    font-size: 0.83rem;
    line-height: 1.5;
    color: var(--ink-mute);
    margin: 0;
    max-width: 52ch;
}

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

.site-nav { flex: 0 1 auto; }
.nav-list {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    list-style: none;
    margin: 0;
    padding: 0;
}
.nav-list li { margin: 0; }
.nav-list a {
    font-family: var(--font-head);
    font-size: 0.97rem;
    font-weight: 600;
    color: var(--ink);
    position: relative;
    padding-bottom: 3px;
}
.nav-list a::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 100%;
    height: 1px;
    background: var(--accent);
    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 { color: var(--accent); }

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

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

.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 { min-width: 0; }

.front-wrap {
    display: block;
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

/* Хлебные крошки */
.trail {
    font-size: 0.85rem;
    color: var(--ink-mute);
    margin-bottom: 1.8rem;
    line-height: 1.6;
}
.trail a { color: var(--ink-mute); }
.trail a:hover { color: var(--accent); }
.trail-sep { color: var(--accent-2); margin: 0 0.35rem; }

/* Заголовки разделов */
.sec-title {
    position: relative;
    padding-left: 1.1rem;
    margin-bottom: 1.6rem;
}
.sec-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 4px;
    height: 16px;
    background: var(--accent-2);
}

.page-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 2.3rem;
    margin-bottom: 1.4rem;
}
.page-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    bottom: 0.25em;
    width: 2px;
    background: var(--accent);
}

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(46, 139, 107, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(46, 139, 107, 0.14);
    border-color: var(--accent-2);
}

.card-top {
    display: flex;
    align-items: stretch;
    border-bottom: 1px solid var(--line-soft);
}

.card-thumb {
    flex: 0 0 60%;
    min-width: 0;
    overflow: hidden;
}
.card-thumb a { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}
.card-thumb-empty {
    display: block;
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(200, 217, 206, 0.45) 0, rgba(200, 217, 206, 0.45) 1px, transparent 1px, transparent 12px);
    aspect-ratio: 3 / 2;
}

.card-side {
    flex: 1 1 auto;
    min-width: 0;
    background: var(--bg-alt);
    padding: 0.9rem 0.9rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 0.6rem;
}
.card-date {
    font-family: var(--font-head);
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--ink-mute);
}
.card-tag {
    display: inline-block;
    align-self: flex-start;
    background: #fff;
    color: var(--accent);
    font-family: var(--font-head);
    font-size: 0.74rem;
    font-weight: 600;
    padding: 0.25rem 0.5rem;
    border: 1px solid var(--line-soft);
    border-radius: 0;
}
.card-tag:hover { background: var(--accent); color: #fff; }

.card-body {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 1.2rem 1.3rem 1.4rem;
}
.card-title {
    font-size: 1.16rem;
    margin-bottom: 0.6rem;
}
.card-title a { color: var(--ink); }
.card-title a:hover { color: var(--accent); }
.card-excerpt {
    font-size: 0.94rem;
    color: var(--ink-mute);
    margin-bottom: 1.1rem;
}
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-excerpt p:last-child { margin-bottom: 0; }
.card-more {
    margin-top: auto;
    align-self: flex-start;
    font-family: var(--font-head);
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--accent);
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s ease, transform 0.2s ease;
}
.card-more:hover { border-color: var(--accent); transform: translateX(2px); }

/* =========================================================
   7. Главная страница
   ========================================================= */

.fs {
    position: relative;
    margin-bottom: 5rem;
}
.fs::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: -2.6rem;
    width: 85%;
    height: 1px;
    background: var(--line);
}
.fs-last { margin-bottom: 1rem; }
.fs-last::after { display: none; }

.fs-dots {
    position: absolute;
    right: 0;
    bottom: -2.2rem;
    width: 120px;
    height: 34px;
    background-image: radial-gradient(circle, var(--accent-2) 1.4px, transparent 1.4px);
    background-size: 14px 14px;
    transform: rotate(-12deg);
    transform-origin: right bottom;
    opacity: 0.55;
    pointer-events: none;
}

/* Блок 1 — Hero */
.fs-hero {
    position: relative;
    min-height: 460px;
    display: flex;
    align-items: flex-end;
    border-radius: 6px;
    overflow: hidden;
    background: var(--bg-alt);
}
.fs-hero-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fs-hero-plate {
    position: relative;
    margin: 2.4rem;
    max-width: 640px;
    background: rgba(255, 255, 255, 0.82);
    backdrop-filter: blur(6px);
    padding: 2.2rem 2.2rem 2.4rem;
    border-left: 3px solid var(--accent);
    border-radius: 4px;
}
.fs-hero-plate h1 {
    margin-bottom: 0.5rem;
    max-width: 14ch;
}
.fs-hero-plate p {
    color: var(--ink-mute);
    font-size: 1.02rem;
    margin-bottom: 1.6rem;
    max-width: 48ch;
}

/* Блок 2 — Статистика */
.fs-stats {
    background-color: var(--bg-alt);
    background-image: repeating-linear-gradient(45deg, rgba(200, 217, 206, 0.2) 0, rgba(200, 217, 206, 0.2) 1px, transparent 1px, transparent 12px);
    padding: 3rem 2.4rem;
    border-radius: 6px;
}
.fs-stats-head {
    display: block;
    margin-bottom: 2.2rem;
}
.fs-stats-mark {
    display: block;
    width: 8px;
    height: 8px;
    background: var(--accent-2);
    margin-bottom: 0.9rem;
}
.fs-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
}
.fs-stat {
    min-width: 0;
    padding: 0 1.4rem;
    border-left: 1px solid var(--line);
}
.fs-stat:first-child { border-left: 0; padding-left: 0; }
.fs-stat-num {
    display: block;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    margin-bottom: 0.7rem;
    letter-spacing: -0.02em;
}
.fs-stat-cap {
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--ink-mute);
    margin: 0;
}

/* Блок 3 — Шаги */
.fs-steps { padding: 0; }
.fs-step {
    display: flex;
    align-items: flex-start;
    gap: 2.2rem;
    padding: 2.2rem 0;
    border-bottom: 1px dashed var(--line);
}
.fs-step:last-child { border-bottom: 0; }
.fs-step-num {
    flex: 0 0 auto;
    font-family: var(--font-head);
    font-size: 3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--accent);
    width: 4.4rem;
    letter-spacing: -0.03em;
}
.fs-step-body {
    min-width: 0;
    padding-left: 1.6rem;
}
.fs-step-body h3 { margin-bottom: 0.45rem; }
.fs-step-body p {
    color: var(--ink-mute);
    margin: 0;
    max-width: 62ch;
}

/* Блок 4 — Цитата */
.fs-quote {
    background: var(--dark);
    color: #fff;
    padding: 3.4rem 2.8rem;
    border-radius: 6px;
}
.fs-quote-text {
    font-family: var(--font-head);
    font-size: 1.85rem;
    line-height: 1.42;
    font-weight: 600;
    color: #fff;
    margin: 0 0 1.6rem;
    padding-left: 1.5rem;
    border-left: 2px solid var(--accent);
    max-width: 30ch;
}
.fs-quote-sign {
    font-size: 0.92rem;
    color: var(--accent-2);
    margin: 0;
    padding-left: 1.5rem;
}

/* Лента последних записей на главной */
.fs-latest-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1.8rem;
}
.fs-latest-head .sec-title { margin-bottom: 0; }

/* =========================================================
   8. Записи и страницы
   ========================================================= */

.entry-head { margin-bottom: 1.8rem; }
.entry-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 2.4rem;
    margin-bottom: 1rem;
}
.entry-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    bottom: 0.25em;
    width: 2px;
    background: var(--accent);
}

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem;
    font-size: 0.85rem;
    color: var(--ink-mute);
    font-family: var(--font-head);
}
.entry-cat {
    background: var(--bg-alt);
    color: var(--accent);
    padding: 0.25rem 0.6rem;
    border-radius: 0;
    font-weight: 600;
}
.entry-cat:hover { background: var(--accent); color: #fff; }

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

.entry-content { font-size: 1.02rem; }
.entry-content h2 {
    position: relative;
    padding-left: 1.1rem;
    margin-top: 2rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 4px;
    height: 16px;
    background: var(--accent-2);
}
.entry-content h3 { margin-top: 1.7rem; }
.entry-content img { border-radius: 4px; }

.entry-tags {
    margin-top: 2.2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}
.entry-tags a {
    background: var(--bg-alt);
    color: var(--accent);
    font-size: 0.82rem;
    font-family: var(--font-head);
    padding: 0.28rem 0.6rem;
    border-radius: 0;
}
.entry-tags a:hover { background: var(--accent); color: #fff; }

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1.4rem;
    margin-top: 2.6rem;
    padding-top: 1.6rem;
    border-top: 1px solid var(--line);
}
.post-nav-item {
    flex: 1 1 240px;
    min-width: 0;
}
.post-nav-label {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
    font-family: var(--font-head);
    margin-bottom: 0.3rem;
}
.post-nav-item a { font-weight: 600; }

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

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: 0.55rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-head);
    font-size: 0.92rem;
    font-weight: 600;
    transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.pager a.page-numbers:hover {
    transform: translateX(2px);
    border-color: var(--accent);
    color: var(--accent);
    background: rgba(46, 139, 107, 0.08);
}
.pager .page-numbers.current {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pager .page-numbers.dots {
    border-color: transparent;
    background: transparent;
    color: var(--ink-mute);
}

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

.widget-area {
    min-width: 0;
    background: var(--bg-side);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 1.6rem 1.5rem;
}
.widget-area .widget { margin-bottom: 1.9rem; }
.widget-area .widget:last-child { margin-bottom: 0; }
.widget-area .widget-title {
    position: relative;
    padding-left: 0.9rem;
    font-size: 1.05rem;
    color: var(--ink);
    margin-bottom: 0.9rem;
}
.widget-area .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 4px;
    height: 14px;
    background: var(--accent-2);
}
.widget-area,
.widget-area p,
.widget-area li { color: var(--ink); }
.widget-area ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.widget-area li {
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--line);
    font-size: 0.94rem;
}
.widget-area li:last-child { border-bottom: 0; }
.widget-area a { color: var(--ink); }
.widget-area a:hover { color: var(--accent); }
.widget-area .post-date {
    display: block;
    font-size: 0.78rem;
    color: var(--ink-mute);
}

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

.search-box {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.search-box input[type="search"] {
    flex: 1 1 200px;
    min-width: 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.95rem;
}
.search-box input[type="search"]:focus {
    outline: none;
    border-color: var(--accent);
}

.comments-area {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--line);
}
.comments-title {
    position: relative;
    padding-left: 1.1rem;
    font-size: 1.5rem;
}
.comments-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.32em;
    width: 4px;
    height: 16px;
    background: var(--accent-2);
}
.comment-list {
    list-style: none;
    margin: 0 0 2rem;
    padding: 0;
}
.comment-list .children {
    list-style: none;
    margin: 1rem 0 0;
    padding-left: 1.4rem;
    border-left: 1px solid var(--line-soft);
}
.comment-item { margin-bottom: 1.2rem; }
.comment-inner {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 1.2rem 1.4rem;
}
.comment-head {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: baseline;
    margin-bottom: 0.5rem;
}
.comment-author {
    font-family: var(--font-head);
    font-weight: 700;
}
.comment-date { font-size: 0.8rem; color: var(--ink-mute); }
.comment-hold { color: var(--ink-mute); font-style: italic; }
.comment-actions { font-size: 0.88rem; }
.comment-actions a { font-family: var(--font-head); font-weight: 600; }

.comment-respond {
    background: var(--bg-side);
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 1.6rem 1.6rem 1.2rem;
}
.comment-reply-title {
    font-size: 1.2rem;
    margin-bottom: 0.9rem;
}
.comment-form label {
    display: block;
    font-size: 0.86rem;
    font-family: var(--font-head);
    margin-bottom: 0.3rem;
    color: var(--ink-mute);
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 0.7rem 0.9rem;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: var(--ink);
}
.comment-form textarea { min-height: 140px; }
.comment-form p { margin-bottom: 0.9rem; }
.comment-form .submit {
    background: var(--accent);
    color: #fff;
    border: 1.5px solid var(--accent);
    border-radius: 4px;
    font-family: var(--font-head);
    font-weight: 600;
    padding: 0.8rem 1.6rem;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.comment-form .submit:hover {
    transform: translateX(2px);
    box-shadow: 0 4px 14px rgba(127, 184, 154, 0.55);
}

/* =========================================================
   12. 404, поиск, заглушки
   ========================================================= */

.empty-box {
    background: #fff;
    border: 1px solid var(--line-soft);
    border-radius: 6px;
    padding: 2rem 2rem;
}
.err-code {
    font-family: var(--font-head);
    font-size: 5rem;
    line-height: 1;
    color: var(--accent-2);
    margin: 0 0 0.8rem;
    font-weight: 700;
}
.err-actions {
    margin-top: 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    align-items: center;
}

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

.site-foot {
    background: var(--dark);
    color: #D6E4DB;
    margin-top: 3rem;
}
.foot-cols {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2.4rem;
    padding: 3.2rem 0 2.4rem;
}
.foot-col { min-width: 0; }
.site-foot .widget-title {
    position: relative;
    padding-left: 0.9rem;
    color: #fff;
    font-size: 1.02rem;
    margin-bottom: 0.9rem;
}
.site-foot .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.3em;
    width: 4px;
    height: 14px;
    background: var(--accent-2);
}
.site-foot .widget,
.site-foot p,
.site-foot li { color: #D6E4DB; font-size: 0.93rem; }
.site-foot ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.site-foot li {
    padding: 0.38rem 0;
    border-bottom: 1px dashed rgba(214, 228, 219, 0.18);
}
.site-foot li:last-child { border-bottom: 0; }
.site-foot a { color: #D6E4DB; }
.site-foot a:hover { color: var(--accent-2); }
.site-foot .post-date { color: #9DB5A7; font-size: 0.8rem; display: block; }

.foot-bottom {
    border-top: 1px solid rgba(214, 228, 219, 0.18);
    padding: 1.3rem 0;
    font-size: 0.85rem;
    color: #9DB5A7;
}

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

.cookie-note {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    background: var(--dark);
    color: #E3EEE7;
    border-top: 2px solid var(--accent);
    padding: 1rem 0;
}
.cookie-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 1rem;
}
.cookie-note p {
    margin: 0;
    font-size: 0.88rem;
    min-width: 0;
    flex: 1 1 320px;
    color: #E3EEE7;
}
.cookie-note a { color: var(--accent-2); }
.cookie-note .btn-fill { padding: 0.65rem 1.4rem; }

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

@media (max-width: 960px) {
    body { font-size: 16px; }
    h1 { font-size: 2.4rem; }
    h2 { font-size: 1.7rem; }

    .layout-with-sidebar {
        grid-template-columns: minmax(0, 1fr);
        gap: 2.4rem;
    }
    .layout-single,
    .front-wrap { width: 100%; }

    .fs-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.8rem; }
    .fs-stat:nth-child(3) { border-left: 0; padding-left: 0; }

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

@media (max-width: 760px) {
    .nav-toggle { display: inline-flex; }
    .site-nav { flex: 1 1 100%; }
    .nav-list {
        flex-direction: column;
        gap: 0.2rem;
        border-top: 1px solid var(--line);
        padding-top: 0.8rem;
        margin-top: 0.4rem;
    }
    .nav-list li { padding: 0.35rem 0; }
}

@media (max-width: 600px) {
    h1 { font-size: 2rem; }
    h2 { font-size: 1.45rem; }

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

    .card-top { flex-direction: column; }
    .card-thumb { flex: none; width: 100%; }
    .card-thumb img { aspect-ratio: 16 / 9; }
    .card-side {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        padding: 0.7rem 1rem;
    }

    .fs { margin-bottom: 3.4rem; }
    .fs::after { bottom: -1.8rem; }
    .fs-dots { display: none; }

    .fs-hero { min-height: 380px; }
    .fs-hero-plate {
        margin: 1rem;
        padding: 1.5rem 1.4rem 1.6rem;
    }
    .fs-hero-plate h1 { max-width: none; }

    .fs-stats { padding: 2rem 1.4rem; }
    .fs-stats-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .fs-stat { padding: 0 0.8rem; }
    .fs-stat:nth-child(odd) { border-left: 0; padding-left: 0; }
    .fs-stat-num { font-size: 2.3rem; }

    .fs-step {
        flex-direction: column;
        gap: 0.6rem;
        padding: 1.6rem 0;
    }
    .fs-step-num { width: auto; font-size: 2.4rem; }
    .fs-step-body { padding-left: 0; }

    .fs-quote { padding: 2.2rem 1.5rem; }
    .fs-quote-text { font-size: 1.35rem; padding-left: 1rem; }
    .fs-quote-sign { padding-left: 1rem; }

    .foot-cols {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.8rem;
        padding: 2.4rem 0 1.8rem;
    }

    .empty-box { padding: 1.5rem 1.3rem; }
    .comment-inner { padding: 1rem 1.1rem; }
    .comment-respond { padding: 1.2rem 1.2rem 0.9rem; }
    .cookie-note { padding: 0.9rem 0; }
}
