/*
Theme Name: dds_pharmarosa.ru
Theme URI: https://pharmarosa.ru/
Author: Анна Мельникова
Description: Тема для справочника лекарственных препаратов с архивным разделом о лекарственных растениях. Лесная зелёная палитра, ботаническая типографика, собственные шаблоны справочного раздела.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: pharmroza
*/

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

:root {
    --bg:        #F4F9F4;
    --bg-alt:    #E4F0E4;
    --head-bg:   #1B3B2B;
    --foot-bg:   #142A1E;
    --side-bg:   #EAF4EA;
    --ink:       #1C2E22;
    --accent:    #2E7D4F;
    --accent-2:  #A3C9A8;
    --muted:     #5F7A66;
    --dot:       #D3E8D3;
    --serif: Georgia, "Times New Roman", "PT Serif", serif;
    --sans: "Segoe UI", Roboto, "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(--sans);
    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' viewBox='0 0 200 200'%3E%3Cg fill='%23A3C9A8' fill-opacity='0.10'%3E%3Cpath d='M182 22c-44 4-79 26-98 56-14 22-18 47-12 70 2 8 6 15 11 21 3 4 9 2 9-3 0-24 6-46 19-66 15-24 38-42 67-54 5-2 9-8 4-12-2-2-4-2-6-2z'/%3E%3Cpath d='M92 148c18-2 36-12 48-28 11-15 17-33 19-52 1-6-6-9-10-5-14 15-30 26-47 34-16 7-27 20-30 37-1 8 4 15 12 15 3 0 5 0 8-1z'/%3E%3C/g%3E%3C/svg%3E"),
        radial-gradient(var(--dot) 1.1px, transparent 1.2px),
        radial-gradient(var(--dot) 1.1px, transparent 1.2px);
    background-size: 340px 340px, 28px 28px, 28px 28px;
    background-position: right -60px bottom -50px, 0 0, 14px 14px;
    background-repeat: no-repeat, repeat, repeat;
    background-attachment: fixed, fixed, fixed;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--head-bg);
    line-height: 1.24;
    margin: 0 0 0.7em;
    font-weight: 600;
}

h1 { font-size: 3rem; }
h2 { font-size: 1.95rem; }
h3 { font-size: 1.45rem; }
h4 { font-size: 1.2rem; }

p { margin: 0 0 1.15em; }

a {
    color: var(--accent);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color .2s ease, text-decoration-color .2s ease, text-decoration-thickness .2s ease;
}

a:hover, a:focus {
    color: var(--head-bg);
    text-decoration-thickness: 3px;
}

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

blockquote {
    margin: 1.6em 0;
    padding: 1.4rem 1.6rem;
    background: var(--bg-alt);
    border-left: 5px solid var(--accent);
    border-radius: 10px;
    font-family: var(--serif);
    font-size: 1.1rem;
}

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

code, pre {
    font-family: "SFMono-Regular", Consolas, Menlo, monospace;
    background: var(--bg-alt);
    border-radius: 6px;
}

code { padding: .1em .35em; font-size: .92em; }

pre {
    padding: 1rem 1.2rem;
    overflow-x: auto;
    max-width: 100%;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin: 0 0 1.6em;
    border: 1px solid var(--accent-2);
    background: #fff;
}

th, td {
    border: 1px solid var(--accent-2);
    padding: .65rem .8rem;
    text-align: left;
}

th { background: var(--bg-alt); font-family: var(--serif); }

figure { margin: 1.5em 0; }
figcaption { color: var(--muted); font-size: .9rem; margin-top: .5rem; }

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

/* =========================================================
   2. Контейнеры и кнопки
   ========================================================= */

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

.btn {
    display: inline-block;
    padding: .78rem 1.6rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #F4F9F4;
    font-family: var(--sans);
    font-size: 1rem;
    text-decoration: none;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.btn:hover, .btn:focus {
    background: var(--accent-2);
    color: var(--ink);
    text-decoration: none;
}

.ribbon {
    height: 3px;
    background-image: repeating-linear-gradient(90deg,
        var(--accent) 0, var(--accent) 60px,
        var(--accent-2) 60px, var(--accent-2) 120px);
}

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

.site-head {
    background: var(--head-bg);
    color: #E6F1E8;
    padding: 1.4rem 0;
}

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

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

.brand:hover { text-decoration: none; color: inherit; }

.brand-mark { flex: 0 0 auto; width: 52px; height: 52px; }
.brand-logo { max-height: 62px; width: auto; }

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

.brand-name {
    display: block;
    font-family: var(--serif);
    font-size: 1.22rem;
    line-height: 1.3;
    color: #F4F9F4;
}

.brand-tagline {
    display: block;
    margin-top: .25rem;
    font-size: .8rem;
    line-height: 1.45;
    color: var(--accent-2);
    max-width: 46ch;
}

.nav-toggle {
    display: none;
    background: transparent;
    border: 1px solid var(--accent-2);
    border-radius: 6px;
    color: #F4F9F4;
    padding: .5rem .9rem;
    font-size: .95rem;
    cursor: pointer;
}

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

.main-nav li { margin: 0; }

.main-nav a {
    color: #E6F1E8;
    text-decoration: none;
    font-size: .98rem;
    padding-bottom: 4px;
    border-bottom: 2px solid transparent;
}

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

/* =========================================================
   4. Основная область и сайдбар
   ========================================================= */

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

.trail {
    font-size: .88rem;
    color: var(--muted);
    margin-bottom: 1.6rem;
}

.trail a { color: var(--accent); text-decoration: none; }
.trail a:hover { text-decoration: underline; }
.trail-sep { color: var(--accent-2); margin: 0 .25rem; }

.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; }

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border-radius: 10px;
    padding: 1.4rem 1.3rem;
    box-shadow: 0 4px 18px rgba(46, 125, 79, .10);
}

.sidebar .widget-box { margin-bottom: 1.8rem; color: var(--ink); }
.sidebar .widget-box:last-child { margin-bottom: 0; }

.sidebar .widget-title {
    position: relative;
    font-size: 1.15rem;
    color: var(--head-bg);
    margin-bottom: .9rem;
    padding-bottom: .5rem;
}

.sidebar .widget-title::after {
    content: "";
    display: block;
    position: absolute;
    left: 0; bottom: 0;
    width: 34%;
    height: 2px;
    background: var(--accent);
}

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

.sidebar li {
    padding: .5rem 0 .5rem 1.1rem;
    position: relative;
    border-bottom: 1px dashed var(--accent-2);
    color: var(--ink);
}

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

.sidebar li::before {
    content: "";
    position: absolute;
    left: 0; top: 1.05rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent);
}

.sidebar a { color: var(--head-bg); text-decoration: none; }
.sidebar a:hover { color: var(--accent); text-decoration: underline; }
.sidebar .post-date { display: block; font-size: .8rem; color: var(--muted); }
.sidebar p { color: var(--ink); font-size: .95rem; }

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

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

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(46, 125, 79, .13);
    transition: transform .25s ease, box-shadow .25s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(46, 125, 79, .20);
}

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

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

.card-thumb-fallback {
    aspect-ratio: 16 / 10;
    background: linear-gradient(135deg, #2E7D4F 0%, #1B3B2B 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-thumb-fallback svg { width: 62px; height: 62px; }

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

.card-title {
    font-size: 1.22rem;
    margin: 0 0 .6rem;
}

.card-title a { color: var(--head-bg); text-decoration: none; }
.card-title a:hover { color: var(--accent); }

.card-meta {
    font-size: .82rem;
    color: var(--muted);
    margin-bottom: .7rem;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.card-excerpt { color: var(--ink); font-size: .96rem; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }

.card-more {
    margin-top: auto;
    padding-top: .9rem;
    align-self: flex-start;
    font-size: .92rem;
    color: var(--accent);
    text-decoration: none;
    border-bottom: 1px solid var(--accent-2);
}

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

.leaf-tags { display: inline-flex; flex-wrap: wrap; gap: .4rem; }

.leaf-tag {
    display: inline-block;
    padding: .15rem .6rem;
    border-radius: 20px;
    font-size: .75rem;
    text-decoration: none;
    color: #10251A;
}

.leaf-tag:hover { color: #10251A; text-decoration: none; opacity: .85; }

.leaf-tag.tone-1 { background: #CFE6D2; }
.leaf-tag.tone-2 { background: #A3C9A8; }
.leaf-tag.tone-3 { background: #8CBF9B; }
.leaf-tag.tone-4 { background: #6FAE86; color: #0F2419; }
.leaf-tag.tone-5 { background: #4F9468; color: #F4F9F4; }

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin-top: 2.6rem;
    align-items: center;
}

.pager .page-numbers {
    display: inline-block;
    min-width: 42px;
    text-align: center;
    padding: .5rem .8rem;
    border: 1px solid var(--accent-2);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--head-bg);
    text-decoration: none;
    font-size: .95rem;
}

.pager a.page-numbers:hover {
    background: var(--accent-2);
    color: var(--ink);
}

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

.pager .page-numbers.dots {
    border: 0;
    background: transparent;
    min-width: auto;
}

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

.fs { padding: 4.4rem 0; position: relative; }
.fs-wrap { width: min(85%, 1180px); margin-inline: auto; }
.fs-alt { background: var(--bg-alt); }

.sec-title {
    position: relative;
    padding-left: 1.4rem;
    font-size: 2.05rem;
    margin-bottom: 1.8rem;
}

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

.sec-title::after {
    content: "";
    display: block;
    width: 33%;
    height: 2px;
    background: var(--accent);
    margin-top: .65rem;
}

.sec-lead {
    color: var(--muted);
    max-width: 68ch;
    margin-bottom: 2.2rem;
}

.stem {
    position: relative;
    height: 42px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 34' preserveAspectRatio='none'%3E%3Cpath d='M0 17c100-20 200 20 300 0s200-20 300 0 200 20 300 0 200-20 300 0' fill='none' stroke='%23A3C9A8' stroke-opacity='0.55' stroke-width='2'/%3E%3Ccircle cx='300' cy='11' r='3' fill='%23A3C9A8' fill-opacity='0.55'/%3E%3Ccircle cx='900' cy='23' r='3' fill='%23A3C9A8' fill-opacity='0.55'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: 100% 34px;
    background-position: center bottom;
}

.stem::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(85%, 1180px);
    border-top: 2px dashed var(--accent-2);
}

/* --- Блок 1: hero --- */

.hero {
    position: relative;
    overflow: hidden;
    min-height: 460px;
    display: flex;
    align-items: center;
    padding: 4.2rem 0;
}

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

.hero-veil {
    position: absolute;
    inset: 0;
    background: linear-gradient(105deg, rgba(20, 42, 30, .92) 0%, rgba(27, 59, 43, .80) 48%, rgba(46, 125, 79, .55) 100%);
    z-index: 1;
}

.hero-wrap { position: relative; z-index: 2; width: min(85%, 1180px); margin-inline: auto; }

.hero-inner { max-width: 44rem; min-width: 0; }

.hero h1 {
    color: #F4F9F4;
    font-size: 3rem;
    margin-bottom: 1rem;
}

.hero-sub {
    color: #DCEDDF;
    font-size: 1.08rem;
    margin-bottom: 1.9rem;
}

.hero-kicker {
    display: inline-block;
    margin-bottom: 1.1rem;
    padding: .3rem .85rem;
    border: 1px solid var(--accent-2);
    border-radius: 20px;
    color: var(--accent-2);
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

/* --- Блок 2: шаги --- */

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

.step-card {
    min-width: 0;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1.7rem 1.5rem 1.6rem;
    box-shadow: 0 6px 20px rgba(46, 125, 79, .13);
    transition: transform .25s ease, box-shadow .25s ease;
}

.step-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 30px rgba(46, 125, 79, .2);
}

.step-num {
    width: 54px; height: 54px;
    border-radius: 50%;
    background: var(--accent);
    color: #F4F9F4;
    font-family: var(--serif);
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
}

.step-card h3 { font-size: 1.22rem; margin-bottom: .5rem; }
.step-card p { margin: 0; color: var(--muted); font-size: .96rem; }

/* --- Блок последних записей --- */

.fresh-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 2rem;
}

.fresh-head .sec-title { margin-bottom: 0; }

/* --- Блок 3: статистика --- */

.facts {
    position: relative;
    padding: 3.6rem 2.2rem;
    border-radius: 10px;
    color: #EAF4EA;
    background-color: var(--accent);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, .05) 0 2px, transparent 2px 14px),
        linear-gradient(135deg, #2E7D4F 0%, #1B3B2B 100%);
    overflow: hidden;
}

.facts .sec-title { color: #F4F9F4; }
.facts .sec-title::before { background: var(--accent-2); }
.facts .sec-title::after { background: var(--accent-2); }

.facts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
    gap: 2rem;
    margin-top: 1.6rem;
}

.fact { min-width: 0; }

.fact-num {
    display: block;
    font-family: var(--serif);
    font-size: 2.9rem;
    line-height: 1.1;
    color: #F4F9F4;
    margin-bottom: .35rem;
}

.fact-label {
    display: block;
    color: var(--accent-2);
    font-size: .95rem;
}

/* --- Блок 4: рубрикатор --- */

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

.topic-tile {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.3rem 1.4rem;
    background: var(--side-bg);
    border: 1px solid var(--accent-2);
    border-radius: 10px;
    text-decoration: none;
    color: var(--head-bg);
    transition: background .25s ease, color .25s ease, transform .25s ease;
}

.topic-tile:hover {
    background: var(--accent);
    color: #F4F9F4;
    text-decoration: none;
    transform: translateY(-3px);
}

.topic-tile svg { flex: 0 0 auto; width: 34px; height: 34px; }
.topic-tile svg * { stroke: currentColor; }

.topic-name { font-family: var(--serif); font-size: 1.1rem; min-width: 0; }
.topic-note { display: block; font-family: var(--sans); font-size: .82rem; color: inherit; opacity: .78; }

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

.entry {
    background: #FFFFFF;
    border-radius: 10px;
    padding: 2rem 2.1rem 2.2rem;
    box-shadow: 0 6px 20px rgba(46, 125, 79, .10);
}

.entry-title { font-size: 2.3rem; margin-bottom: .8rem; }

.entry-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    font-size: .86rem;
    color: var(--muted);
    padding-bottom: 1.2rem;
    margin-bottom: 1.6rem;
    border-bottom: 2px dashed var(--accent-2);
}

.entry-thumb { margin-bottom: 1.6rem; border-radius: 10px; overflow: hidden; }
.entry-thumb img { width: 100%; height: auto; display: block; }

.entry-content h2 { margin-top: 1.7em; }
.entry-content h3 { margin-top: 1.5em; }
.entry-content img { border-radius: 10px; }

.entry-foot {
    margin-top: 2rem;
    padding-top: 1.2rem;
    border-top: 2px dashed var(--accent-2);
    font-size: .9rem;
    color: var(--muted);
}

.post-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.8rem;
}

.post-nav a {
    max-width: 48%;
    min-width: 0;
    font-size: .93rem;
    text-decoration: none;
    color: var(--head-bg);
    border-bottom: 1px solid var(--accent-2);
}

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

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

/* =========================================================
   9. Комментарии и формы
   ========================================================= */

.talk {
    margin-top: 2.4rem;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 1.8rem 2rem 2rem;
    box-shadow: 0 6px 20px rgba(46, 125, 79, .10);
}

.talk-title { font-size: 1.6rem; margin-bottom: 1.4rem; }

.talk-list { list-style: none; padding: 0; margin: 0 0 1.8rem; }
.talk-list .children { list-style: none; padding-left: 1.6rem; margin-top: 1rem; }

.talk-item {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 1.1rem 1.3rem;
    margin-bottom: 1rem;
}

.talk-head {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: baseline;
    margin-bottom: .5rem;
}

.talk-author { font-family: var(--serif); color: var(--head-bg); font-size: 1.05rem; }
.talk-date { font-size: .8rem; color: var(--muted); }
.talk-text p:last-child { margin-bottom: 0; }
.talk-reply { margin-top: .6rem; font-size: .88rem; }
.talk-hold { font-size: .85rem; color: var(--muted); }

.comment-form label { display: block; margin-bottom: .3rem; font-size: .92rem; }

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea,
.search-line input[type="search"] {
    width: 100%;
    padding: .7rem .9rem;
    border: 1px solid var(--accent-2);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--sans);
    font-size: 1rem;
    color: var(--ink);
}

.comment-form textarea { min-height: 150px; resize: vertical; }
.comment-form p { margin-bottom: 1rem; }

.comment-form input[type="submit"],
.search-line button {
    display: inline-block;
    padding: .78rem 1.6rem;
    border: 0;
    border-radius: 6px;
    background: var(--accent);
    color: #F4F9F4;
    font-size: 1rem;
    cursor: pointer;
    transition: background .25s ease, color .25s ease;
}

.comment-form input[type="submit"]:hover,
.search-line button:hover {
    background: var(--accent-2);
    color: var(--ink);
}

.search-line { display: flex; gap: .6rem; align-items: stretch; }
.search-line input[type="search"] { min-width: 0; flex: 1; }

/* =========================================================
   10. 404 и поиск
   ========================================================= */

.void {
    text-align: center;
    background: #FFFFFF;
    border-radius: 10px;
    padding: 3rem 2.2rem;
    box-shadow: 0 6px 20px rgba(46, 125, 79, .10);
    width: 85%;
    margin-left: auto;
    margin-right: auto;
}

.void-code {
    font-family: var(--serif);
    font-size: 4.6rem;
    color: var(--accent);
    line-height: 1;
    margin-bottom: .6rem;
}

.void .search-line { max-width: 460px; margin: 1.6rem auto; }

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

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

.site-foot {
    background: var(--foot-bg);
    color: #CFE2D3;
    padding: 3.2rem 0 1.6rem;
    margin-top: 2rem;
}

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

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

.site-foot .widget-box { color: #CFE2D3; }

.site-foot .widget-title {
    position: relative;
    color: #F4F9F4;
    font-size: 1.15rem;
    margin-bottom: 1rem;
    padding-bottom: .5rem;
}

.site-foot .widget-title::after {
    content: "";
    position: absolute;
    left: 0; bottom: 0;
    width: 34%;
    height: 2px;
    background: var(--accent-2);
}

.site-foot p { color: #CFE2D3; font-size: .94rem; }
.site-foot a { color: var(--accent-2); text-decoration: none; }
.site-foot a:hover { color: #F4F9F4; text-decoration: underline; }
.site-foot ul { list-style: none; padding: 0; margin: 0; }

.site-foot li {
    padding: .42rem 0 .42rem 1.1rem;
    position: relative;
    color: #CFE2D3;
}

.site-foot li::before {
    content: "";
    position: absolute;
    left: 0; top: 1rem;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: var(--accent-2);
}

.site-foot .post-date { display: block; font-size: .8rem; color: #9FBCA6; }

.foot-mail { margin-top: 1rem; font-size: .94rem; }

.copyright {
    margin-top: 2.6rem;
    padding-top: 1.2rem;
    border-top: 1px solid rgba(163, 201, 168, .3);
    font-size: .87rem;
    color: #9FBCA6;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0; right: 0; bottom: 0;
    z-index: 60;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1.2rem;
    padding: 1rem 1.6rem;
    background: var(--head-bg);
    color: #E6F1E8;
    border-top: 3px solid var(--accent);
    font-size: .92rem;
}

.cookie-banner p { margin: 0; max-width: 70ch; color: #E6F1E8; }
.cookie-banner a { color: var(--accent-2); }

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

@media (max-width: 960px) {
    body { font-size: 16px; }
    h1, .hero h1 { font-size: 2.3rem; }
    .entry-title { font-size: 1.9rem; }
    .sec-title { font-size: 1.75rem; }

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

    .layout-single, .void { width: 100%; }
    .fs-wrap, .hero-wrap { width: min(92%, 1180px); }
    .entry { padding: 1.6rem 1.5rem 1.8rem; }
}

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

    .main-nav {
        flex-basis: 100%;
        display: none;
    }

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

    .main-nav ul {
        flex-direction: column;
        gap: .2rem;
        margin-top: .9rem;
        padding-top: .9rem;
        border-top: 1px solid rgba(163, 201, 168, .35);
    }

    .main-nav a { display: block; padding: .55rem 0; border-bottom: 0; }
}

@media (max-width: 600px) {
    h1, .hero h1 { font-size: 2rem; }
    .fs { padding: 2.8rem 0; }
    .hero { min-height: 400px; padding: 3rem 0; }
    .facts { padding: 2.2rem 1.4rem; }
    .fact-num { font-size: 2.3rem; }
    .entry { padding: 1.3rem 1.2rem 1.6rem; }
    .talk { padding: 1.3rem 1.2rem 1.5rem; }
    .void { padding: 2.2rem 1.3rem; }
    .step-card { padding: 1.4rem 1.2rem; }
    .topic-tile { padding: 1.1rem 1.1rem; }
    .cookie-banner { padding: .9rem 1.1rem; gap: .8rem; }
    blockquote { padding: 1.1rem 1.2rem; }
    .brand-tagline { display: none; }
    .post-nav a { max-width: 100%; }
}
