/*
Theme Name: dds_nutrition-authority.com
Description: Тема информационно-аналитического портала о выборе жилья для здоровой и долгой жизни
Author: Анна Ковальчук
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
Text Domain: zhilvek
*/

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

:root {
    --bg: #FFFDF7;
    --bg-alt: #F5EFE0;
    --head-bg: #2C2416;
    --foot-bg: #1F1A10;
    --side-bg: #F0E8D5;
    --text: #2E2A1F;
    --acc: #D97706;
    --acc-2: #B45309;
    --muted: #8B7D6B;
    --line: #E8DCC8;
    --serif: 'Playfair Display', 'Times New Roman', Georgia, serif;
    --sans: 'Inter', 'Segoe UI', 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.7;
    color: var(--text);
    background-color: var(--bg);
    background-image:
        url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 400'><defs><filter id='s' x='-50%25' y='-50%25' width='200%25' height='200%25'><feGaussianBlur stdDeviation='38'/></filter></defs><path d='M215 45c62 12 112 62 120 124 8 62-28 126-88 152-60 26-132 8-160-44-28-52-12-118 28-160 40-42 38-84 100-72z' fill='%23D97706' opacity='0.20' filter='url(%23s)'/></svg>"),
        radial-gradient(circle, var(--line) 1px, transparent 1px);
    background-repeat: no-repeat, repeat;
    background-position: right -110px top -70px, 0 0;
    background-size: 520px 520px, 24px 24px;
    background-attachment: fixed, scroll;
}

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

a {
    color: var(--acc-2);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    text-decoration-color: currentColor;
}

a:hover {
    color: var(--acc);
    text-decoration-color: var(--acc);
    text-decoration-thickness: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--serif);
    color: var(--text);
    line-height: 1.25;
    margin: 0 0 0.8rem;
}

p {
    margin: 0 0 1.1rem;
}

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

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

.topline {
    height: 4px;
    background: linear-gradient(90deg, var(--acc) 0%, var(--acc-2) 100%);
}

.site-head {
    background: var(--head-bg);
    color: #F7F1E4;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(217, 119, 6, 0.35);
}

.head-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 1.2rem;
}

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

.brand:hover {
    color: inherit;
}

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

.brand-logo {
    display: block;
    width: 52px;
    height: 52px;
    object-fit: contain;
}

.brand-text {
    min-width: 0;
    display: block;
    max-width: 640px;
}

.brand-name {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    font-family: var(--serif);
    font-size: 1rem;
    line-height: 1.35;
    color: #FFFDF7;
}

.brand-tagline {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.45;
    color: #C4B49A;
}

.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid var(--acc);
    color: #FFFDF7;
    border-radius: 6px;
    padding: 0.5rem 0.9rem;
    font-family: var(--sans);
    font-size: 0.9rem;
    cursor: pointer;
}

.nav-toggle-bar {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--acc);
    box-shadow: 0 5px 0 var(--acc), 0 -5px 0 var(--acc);
}

.head-nav {
    flex: 0 1 auto;
    min-width: 0;
}

.head-menu {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.4rem 1.4rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.head-menu a {
    display: inline-block;
    color: #F7F1E4;
    font-size: 0.97rem;
    text-decoration: none;
    padding: 0.25rem 0;
    border-bottom: 1px solid transparent;
}

.head-menu a:hover,
.head-menu .current-menu-item > a {
    color: var(--acc);
    border-bottom-color: var(--acc);
}

.head-menu .sub-menu {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0 0 0 0.8rem;
}

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

.btn {
    display: inline-block;
    border-radius: 6px;
    padding: 0.72rem 1.35rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.btn-solid {
    background: var(--acc);
    border: 1px solid var(--acc);
    color: #FFFFFF;
}

.btn-solid:hover {
    background: var(--acc-2);
    border-color: var(--acc-2);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.28);
}

.btn-ghost {
    background: transparent;
    border: 1px solid var(--acc-2);
    color: var(--acc-2);
}

.btn-ghost:hover {
    background: var(--acc-2);
    border-color: var(--acc-2);
    color: #FFFFFF;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(180, 83, 9, 0.22);
}

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

.site-body {
    display: block;
    padding: 2.2rem 0 3.4rem;
}

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

.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);
    column-gap: 6%;
    align-items: start;
}

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

.sidebar {
    min-width: 0;
    background: var(--side-bg);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.5rem 1.4rem;
    color: var(--text);
}

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

.breadcrumbs {
    font-size: 0.85rem;
    color: var(--muted);
    margin-bottom: 1.4rem;
}

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

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

.breadcrumbs .sep {
    color: var(--acc);
    margin: 0 0.25rem;
}

.page-title {
    font-size: 2.8rem;
    margin-bottom: 1rem;
}

.sec-title {
    position: relative;
    font-size: 2rem;
    padding-left: 1.7rem;
    padding-bottom: 0.75rem;
    margin-bottom: 1.8rem;
}

.sec-title::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.6em;
    color: var(--acc);
    transition: transform 0.2s ease;
}

.sec-title:hover::before {
    transform: rotate(45deg);
}

.sec-title::after {
    content: '';
    position: absolute;
    left: 1.7rem;
    bottom: 0;
    width: 65%;
    max-width: 320px;
    height: 2px;
    background: var(--acc);
}

.sect-divider {
    display: flex;
    align-items: center;
    gap: 0.9rem;
    margin: 2.6rem 0;
    color: var(--acc);
    font-size: 0.8rem;
}

.sect-divider::before,
.sect-divider::after {
    content: '';
    flex: 1 1 auto;
    border-top: 1px dashed var(--acc);
    opacity: 0.6;
}

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

/* ==========================================================================
   6. Главная — секции
   ========================================================================== */

.front-section {
    margin-bottom: 4rem;
}

.fs-hero {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    min-height: 430px;
    display: flex;
    align-items: center;
}

.hero-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-veil {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(44, 36, 22, 0.92) 0%, rgba(44, 36, 22, 0.72) 55%, rgba(44, 36, 22, 0.42) 100%);
}

.hero-inner {
    position: relative;
    z-index: 1;
    max-width: 640px;
    min-width: 0;
    padding: 3.4rem 3rem;
    text-align: left;
}

.hero-title {
    font-size: 2.8rem;
    color: #FFFDF7;
    margin-bottom: 1rem;
}

.hero-sub {
    font-family: var(--sans);
    font-size: 1.02rem;
    color: #E4D8C2;
    margin-bottom: 1.7rem;
}

.fs-stats {
    background: var(--bg-alt);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
}

.stats-row {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.stat-cell {
    min-width: 0;
    padding: 0 1.2rem;
    border-left: 1px solid var(--line);
    text-align: left;
}

.stat-cell:first-child {
    border-left: none;
    padding-left: 0;
}

.stat-num {
    display: block;
    font-family: var(--serif);
    font-size: 3rem;
    line-height: 1.1;
    color: var(--acc);
}

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

.fs-steps {
    padding: 0.5rem 0 0;
}

.steps-line {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.8rem;
}

.step-item {
    position: relative;
    min-width: 0;
}

.step-item::after {
    content: '';
    position: absolute;
    top: 26px;
    left: 66px;
    right: -1.8rem;
    border-top: 2px dashed var(--acc);
    opacity: 0.55;
}

.step-item:last-child::after {
    display: none;
}

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

.step-title {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.step-text {
    font-size: 0.93rem;
    color: var(--text);
    margin: 0;
}

.fs-quote {
    background-color: var(--head-bg);
    background-image: radial-gradient(circle, rgba(217, 119, 6, 0.1) 1px, transparent 1px);
    background-size: 24px 24px;
    border-radius: 10px;
    padding: 3rem 2.6rem;
    text-align: center;
}

.quote-body {
    margin: 0 auto;
    max-width: 780px;
    padding: 0.4rem 2rem;
    border-left: 1px solid var(--acc);
    border-right: 1px solid var(--acc);
}

.quote-body p {
    font-family: var(--serif);
    font-size: 1.55rem;
    line-height: 1.5;
    color: #FFFDF7;
    margin: 0;
}

.quote-author {
    margin: 1.4rem 0 0;
    font-size: 0.92rem;
    color: #BCA98C;
}

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

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
    gap: 1.8rem;
    margin-bottom: 2.4rem;
}

.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(217, 119, 6, 0.08);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.card:hover {
    transform: translateY(-2px);
    border-color: var(--acc);
    box-shadow: 0 10px 26px rgba(217, 119, 6, 0.16);
}

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

.card-thumb a {
    display: block;
}

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

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

.card-title {
    font-size: 1.28rem;
    margin-bottom: 0.5rem;
}

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

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

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

.post-meta a {
    color: var(--muted);
    text-decoration: none;
}

.post-meta a:hover {
    color: var(--acc);
}

.post-meta .meta-sep {
    color: var(--acc);
    font-size: 0.6rem;
    margin: 0 0.35rem;
}

.card-excerpt {
    font-size: 0.94rem;
    color: var(--text);
    margin-bottom: 1.1rem;
}

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

.card-more {
    align-self: flex-start;
    margin-top: auto;
    padding: 0.55rem 1.1rem;
    font-size: 0.88rem;
}

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

.single-thumb {
    margin: 1.4rem 0 1.8rem;
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--line);
}

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

.entry-content {
    font-size: 1.02rem;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    margin-top: 2rem;
}

.entry-content h2 {
    font-size: 1.8rem;
}

.entry-content h2::before {
    content: '◆';
    display: inline-block;
    margin-right: 0.5rem;
    font-size: 0.55em;
    color: var(--acc);
    vertical-align: middle;
    transition: transform 0.2s ease;
}

.entry-content h2:hover::before {
    transform: rotate(45deg);
}

.entry-content h3 {
    font-size: 1.4rem;
}

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

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

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

.entry-content blockquote {
    margin: 1.6rem 0;
    padding: 1.3rem 1.6rem;
    background: var(--bg-alt);
    border-left: 3px solid var(--acc);
    border-radius: 8px;
    font-family: var(--serif);
    font-size: 1.12rem;
}

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

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

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

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

.entry-tags {
    margin-top: 1.8rem;
    font-size: 0.88rem;
    color: var(--muted);
}

.entry-tags a {
    display: inline-block;
    margin: 0 0.35rem 0.4rem 0;
    padding: 0.25rem 0.7rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    color: var(--acc-2);
    text-decoration: none;
}

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

.page-links {
    margin: 1.4rem 0;
    font-size: 0.9rem;
}

.archive-note {
    color: var(--muted);
    margin-bottom: 1.6rem;
}

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

.pager {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    margin: 2rem 0 0.5rem;
}

.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    padding: 0.5rem 0.85rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    color: var(--text);
    font-size: 0.92rem;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.pager a.page-numbers:hover {
    border-color: var(--acc);
    color: var(--acc-2);
}

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

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

/* ==========================================================================
   10. Виджеты
   ========================================================================== */

.widget {
    margin-bottom: 1.8rem;
}

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

.widget-title {
    position: relative;
    font-size: 1.15rem;
    padding-left: 1.3rem;
    margin-bottom: 0.9rem;
}

.widget-title::before {
    content: '◆';
    position: absolute;
    left: 0;
    top: 0.15em;
    font-size: 0.55em;
    color: var(--acc);
}

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

.widget li {
    margin-bottom: 0.7rem;
    padding-bottom: 0.7rem;
    border-bottom: 1px dashed var(--line);
    font-size: 0.93rem;
}

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

.sidebar .widget-title,
.sidebar .widget,
.sidebar .widget p {
    color: var(--text);
}

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

.sidebar .widget a:hover {
    color: var(--acc-2);
    text-decoration: underline;
}

.sidebar .widget li {
    border-bottom-color: #DCCDB0;
}

.sidebar .post-date,
.sidebar .rss-date {
    display: block;
    font-size: 0.78rem;
    color: #7A6B56;
}

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

.site-foot {
    background: var(--foot-bg);
    color: #D8CBB2;
    padding: 3rem 0 1.8rem;
    border-top: 3px solid var(--acc-2);
}

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

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

.site-foot .widget-title {
    color: #FFFDF7;
}

.site-foot .widget,
.site-foot .widget p,
.site-foot .widget li {
    color: #D8CBB2;
}

.site-foot .widget a {
    color: #E7DCC5;
    text-decoration: none;
}

.site-foot .widget a:hover {
    color: var(--acc);
    text-decoration: underline;
}

.site-foot .widget li {
    border-bottom-color: rgba(217, 119, 6, 0.25);
}

.site-foot .post-date,
.site-foot .rss-date {
    display: block;
    font-size: 0.78rem;
    color: #A89575;
}

.foot-copy {
    margin-top: 2.4rem;
    padding-top: 1.3rem;
    border-top: 1px solid rgba(217, 119, 6, 0.25);
    font-size: 0.83rem;
    line-height: 1.6;
    color: #A89575;
}

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

.search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0.6rem;
    margin: 1.2rem 0;
}

.search-label {
    flex: 1 1 200px;
    min-width: 0;
    display: block;
}

.search-label-text {
    display: block;
    font-size: 0.82rem;
    color: var(--muted);
    margin-bottom: 0.3rem;
}

.search-input {
    width: 100%;
    padding: 0.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text);
}

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

.site-foot .search-input,
.sidebar .search-input {
    background: #FFFFFF;
}

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

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

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

.comment-list .children {
    margin-left: 1.6rem;
    padding-left: 1rem;
    border-left: 1px dashed var(--line);
}

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

.comment-body {
    background: #FFFFFF;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.2rem 1.3rem;
}

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

.comment-author {
    font-family: var(--serif);
    font-size: 1.05rem;
}

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

.comment-actions {
    font-size: 0.85rem;
}

.comment-respond {
    margin-top: 2rem;
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 1.6rem 1.6rem;
}

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

.comment-notes,
.comment-form-cookies-consent label {
    font-size: 0.85rem;
    color: var(--muted);
}

.comment-form label {
    display: block;
    font-size: 0.85rem;
    margin-bottom: 0.3rem;
    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.65rem 0.8rem;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #FFFFFF;
    font-family: var(--sans);
    font-size: 0.95rem;
    color: var(--text);
}

.comment-form textarea {
    resize: vertical;
}

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

.comment-form .form-submit {
    margin-bottom: 0;
}

.comment-form input[type="submit"] {
    border-radius: 6px;
    padding: 0.72rem 1.35rem;
    font-family: var(--sans);
    font-size: 0.95rem;
    background: var(--acc);
    border: 1px solid var(--acc);
    color: #FFFFFF;
    cursor: pointer;
}

.comment-form input[type="submit"]:hover {
    background: var(--acc-2);
    border-color: var(--acc-2);
}

.comments-closed {
    color: var(--muted);
    font-size: 0.9rem;
}

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

.error-box {
    background: var(--bg-alt);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 2.6rem 2.2rem;
}

.error-code {
    display: block;
    font-family: var(--serif);
    font-size: 4rem;
    line-height: 1;
    color: var(--acc);
    margin-bottom: 0.6rem;
}

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

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

.cookie-banner {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 1rem 1.6rem;
    padding: 1rem 1.6rem;
    background: var(--head-bg);
    border-top: 2px solid var(--acc);
    color: #E7DCC5;
}

.cookie-text {
    margin: 0;
    font-size: 0.9rem;
    max-width: 780px;
}

.cookie-accept {
    flex: 0 0 auto;
    padding: 0.55rem 1.3rem;
    font-size: 0.9rem;
}

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

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

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

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

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

    .head-menu {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.2rem;
        padding-top: 0.8rem;
    }

    .head-menu a {
        padding: 0.45rem 0;
    }

    .front-wrap,
    .layout-single {
        width: 100%;
    }

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

    .sidebar {
        margin-top: 2.4rem;
    }

    .page-title,
    .hero-title {
        font-size: 2.2rem;
    }

    .sec-title {
        font-size: 1.7rem;
    }

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

    .stat-cell:nth-child(odd) {
        border-left: none;
        padding-left: 0;
    }

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

    .step-item::after {
        display: none;
    }

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

@media (max-width: 600px) {
    .fs-hero {
        min-height: 0;
    }

    .hero-inner {
        padding: 2.4rem 1.5rem;
    }

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

    .page-title {
        font-size: 1.9rem;
    }

    .sec-title {
        font-size: 1.5rem;
        padding-left: 1.4rem;
    }

    .sec-title::after {
        left: 1.4rem;
        width: 70%;
    }

    .fs-stats {
        padding: 1.9rem 1.4rem;
    }

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

    .stat-cell {
        border-left: none;
        padding-left: 0;
        padding-right: 0;
    }

    .stat-num {
        font-size: 2.4rem;
    }

    .steps-line {
        grid-template-columns: minmax(0, 1fr);
        gap: 1.4rem;
    }

    .fs-quote {
        padding: 2rem 1.4rem;
    }

    .quote-body {
        padding: 0.3rem 1rem;
    }

    .quote-body p {
        font-size: 1.22rem;
    }

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

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

    .error-box {
        padding: 1.9rem 1.4rem;
    }

    .comment-respond {
        padding: 1.3rem 1.2rem;
    }

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

    .entry-content h2 {
        font-size: 1.5rem;
    }
}
