/*
Theme Name: dds_linkof.ru
Author: Алексей Линьков
Description: Тема «Ссылочный контур» для обучающего портала по интернет-рекламе и SEO: швейцарская сетка, изумрудная палитра, диагональный паттерн-граф.
Version: 1.1
Requires at least: 6.0
Requires PHP: 8.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: linkof
*/

/* ---------- Правила для [hidden] ---------- */
.cookie-banner[hidden] { display: none !important; }

/* ---------- Токены ---------- */
:root {
    --bg: #f4f7f5;
    --bg-alt: #e8efea;
    --head: #0f2e24;
    --foot: #0b231c;
    --side: #ffffff;
    --ink: #1a2e28;
    --em: #0f9d6e;
    --em-dark: #0b7a54;
    --mint: #7ed9b8;
    --mute: #6b8a7e;
    --line: #d9e5df;
    --f-head: "Space Grotesk", "Segoe UI", Arial, sans-serif;
    --f-body: "Inter", "Segoe UI", Roboto, Arial, sans-serif;
    --shadow: 0 2px 8px rgba(15, 46, 36, 0.06);
    --shadow-up: 0 6px 16px rgba(15, 46, 36, 0.1);
}

/* ---------- База ---------- */
*, *::before, *::after { box-sizing: border-box; }

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

body {
    margin: 0;
    overflow-x: hidden;
    font-family: var(--f-body);
    font-size: 1rem;
    line-height: 1.65;
    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 400 400'%3E%3Cg opacity='0.04' fill='none' stroke='%230f9d6e' stroke-width='2'%3E%3Cpath d='M40 340 L140 260 L250 300 L340 180 L380 280 M140 260 L190 130 L300 90 L340 180 M190 130 L250 300 M300 90 L370 40 M40 340 L90 200 L190 130'/%3E%3C/g%3E%3Cg opacity='0.04' fill='%230f9d6e'%3E%3Ccircle cx='40' cy='340' r='8'/%3E%3Ccircle cx='140' cy='260' r='10'/%3E%3Ccircle cx='250' cy='300' r='7'/%3E%3Ccircle cx='340' cy='180' r='11'/%3E%3Ccircle cx='380' cy='280' r='6'/%3E%3Ccircle cx='190' cy='130' r='9'/%3E%3Ccircle cx='300' cy='90' r='8'/%3E%3Ccircle cx='370' cy='40' r='6'/%3E%3Ccircle cx='90' cy='200' r='7'/%3E%3C/g%3E%3C/svg%3E"),
        repeating-linear-gradient(45deg, #e0e8e3 0, #e0e8e3 1px, transparent 1px, transparent 12px);
    background-repeat: no-repeat, repeat;
    background-position: right -30px bottom -30px, 0 0;
    background-size: 460px 460px, auto;
    background-attachment: fixed, scroll;
}

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

h1, h2, h3, h4, h5, h6 {
    font-family: var(--f-head);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.2;
    margin: 1.6em 0 0.6em;
}
h1 { font-size: 2.3rem; line-height: 1.1; letter-spacing: -0.02em; }
h2 { font-size: 1.75rem; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1em; }

a {
    color: var(--em);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}
a:hover {
    color: var(--em);
    text-decoration-thickness: 2px;
    text-decoration-color: var(--mint);
}
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
    outline: 2px solid var(--em);
    outline-offset: 2px;
}

blockquote {
    margin: 1.8em 0;
    padding: 0.4em 0 0.4em 1.5rem;
    border-left: 3px solid var(--em);
    font-style: italic;
}
blockquote p:last-child { margin-bottom: 0; }

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

ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
code, pre { font-family: Consolas, "Courier New", monospace; font-size: 0.92em; }
pre { overflow-x: auto; background: #fff; border: 1px solid var(--line); padding: 1em 1.2em; border-radius: 4px; }

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

/* ---------- Контейнер ---------- */
.shell { width: min(92%, 1180px); margin-inline: auto; }
.shell--front { width: min(85%, 1180px); }

/* ---------- Кнопки ---------- */
.btn {
    display: inline-block;
    font-family: var(--f-head);
    font-weight: 600;
    font-size: 0.95rem;
    line-height: 1.2;
    padding: 0.8em 1.5em;
    border-radius: 4px;
    border: 2px solid var(--em);
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.btn:hover { transform: translateX(3px); text-decoration: none; }
.btn--fill { background: var(--em); color: #fff; }
.btn--fill:hover { background: var(--em-dark); border-color: var(--em-dark); color: #fff; }
.btn--line { background: transparent; color: var(--em); }
.btn--line:hover { background: var(--mint); border-color: var(--em); color: var(--ink); }
.btn--on-dark { color: var(--mint); border-color: var(--mint); }
.btn--on-dark:hover { background: var(--mint); color: var(--ink); }

/* ---------- Шапка ---------- */
.masthead {
    background: var(--head);
    border-top: 3px solid var(--em);
    color: #fff;
}
.masthead__top { padding: 1.4rem 0 1.1rem; }
.brand {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    text-decoration: none;
    color: #fff;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand__mark { flex: 0 0 auto; display: block; }
.brand-logo { display: block; width: 48px; height: 48px; object-fit: contain; }
.brand__text { display: flex; flex-direction: column; gap: 0.3rem; min-width: 0; }
.brand__name {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.01em;
    color: #fff;
}
.brand__desc {
    font-size: 0.82rem;
    line-height: 1.5;
    color: #a9cdbf;
    max-width: 78ch;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.masthead__nav { border-top: 1px solid rgba(126, 217, 184, 0.18); }
.navbar { display: flex; align-items: center; min-height: 3.2rem; }
.topnav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0 2rem; }
.topnav__list a {
    display: block;
    padding: 0.85rem 0;
    font-family: var(--f-head);
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    border-bottom: 2px solid transparent;
}
.topnav__list a:hover { color: var(--mint); border-bottom-color: var(--mint); }
.topnav__list .current-menu-item > a { border-bottom-color: var(--em); }
.nav-toggle {
    display: none;
    align-items: center;
    gap: 0.6rem;
    background: none;
    border: 1px solid rgba(126, 217, 184, 0.5);
    color: #fff;
    font-family: var(--f-head);
    font-size: 0.95rem;
    padding: 0.5rem 0.9rem;
    border-radius: 4px;
    cursor: pointer;
}
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--mint);
    position: relative;
}
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }

/* ---------- Крошки ---------- */
.crumbs { padding: 1.4rem 0 0.4rem; font-size: 0.88rem; color: var(--mute); }
.crumbs a { color: var(--em); }
.crumbs__sep { margin: 0 0.35rem; color: var(--mute); }

/* ---------- Раскладки ---------- */
.site-main { padding-bottom: 5rem; }
.site-main--front { padding-bottom: 0; }
.layout { padding-top: 1.2rem; }
.layout--solo { display: block; width: 85%; margin-left: auto; margin-right: auto; }
.layout--aside {
    display: grid;
    grid-template-columns: minmax(0, 67fr) minmax(0, 27fr);
    column-gap: 6%;
    align-items: start;
}
.content-area { min-width: 0; }

/* ---------- Заголовки страниц и записей ---------- */
.page-head { margin-bottom: 2rem; }
.page-head__title, .entry-title {
    font-size: 2.6rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0.4rem 0 0.8rem;
}
.page-head__lead { color: var(--mute); max-width: 70ch; }
.entry {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.4rem 2.6rem;
    box-shadow: var(--shadow);
}
.entry-meta { color: var(--mute); font-size: 0.9rem; }
.entry-cats, .entry-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.entry-tags { margin-top: 2rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.entry-thumb { margin: 1.6rem 0; }
.entry-thumb img { display: block; width: 100%; height: auto; border-radius: 4px; }
.entry-content { max-width: 72ch; }
.entry-content > *:first-child { margin-top: 0; }
.entry-content h2 {
    position: relative;
    padding-left: 1.2rem;
}
.entry-content h2::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--em);
}
.entry-content img { display: block; height: auto; }
.entry-content figure { margin: 1.6em 0; }
.entry-content figcaption { font-size: 0.85rem; color: var(--mute); margin-top: 0.4em; }

/* ---------- Теги ---------- */
.tag-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    align-self: flex-start;
    background: var(--mint);
    color: var(--ink);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    padding: 0.28rem 0.6rem;
    border-radius: 2px;
    text-decoration: none;
}
.tag-chip::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
}
.tag-chip:hover { background: var(--em); color: #fff; text-decoration: none; }

/* ---------- Карточки записей ---------- */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr));
    gap: 1.8rem;
}
.card-grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--mint); }
.card-thumb { display: block; }
.card-thumb img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
    object-fit: cover;
}
.card-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    padding: 1.4rem 1.5rem 1.6rem;
    min-width: 0;
}
.card-title {
    margin: 0.2rem 0 0;
    font-size: 1.2rem;
    line-height: 1.3;
    overflow-wrap: anywhere;
}
.card-title a { color: var(--ink); text-decoration: none; }
.card-title a:hover { color: var(--em); text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--mint); }
.card-meta { font-size: 0.85rem; color: var(--mute); }
.card-excerpt { color: var(--ink); font-size: 0.95rem; flex: 1; }
.card-excerpt p { margin: 0 0 0.5em; background: none; }
.card-more { align-self: flex-start; margin-top: 0.4rem; padding: 0.55em 1.1em; font-size: 0.88rem; }

/* ---------- Пагинация ---------- */
.pager {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    margin-top: 2.8rem;
}
.pager .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.6rem;
    height: 2.6rem;
    padding: 0 0.8rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 4px;
    color: var(--ink);
    font-family: var(--f-head);
    font-weight: 600;
    text-decoration: none;
}
.pager a.page-numbers:hover { border-color: var(--em); color: var(--em); }
.pager .page-numbers.current { background: var(--em); border-color: var(--em); color: #fff; }
.pager .page-numbers.dots { background: none; border: 0; min-width: auto; padding: 0 0.2rem; }

/* ---------- Сайдбар ---------- */
.sidebar { min-width: 0; display: flex; flex-direction: column; gap: 1.6rem; }
.sidebar .widget {
    background: var(--side);
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.5rem 1.6rem;
    color: var(--ink);
    box-shadow: var(--shadow);
}
.sidebar .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 1.1rem;
    color: var(--ink);
}
.sidebar .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--em);
}
.sidebar .widget ul { list-style: none; margin: 0; padding: 0; }
.sidebar .widget li { padding: 0.6rem 0; border-top: 1px solid var(--line); }
.sidebar .widget li:first-child { border-top: 0; padding-top: 0; }
.sidebar .widget a { color: var(--ink); text-decoration: none; }
.sidebar .widget a:hover { color: var(--em); text-decoration: underline; text-decoration-color: var(--mint); text-decoration-thickness: 2px; }
.sidebar .widget .post-date { display: block; font-size: 0.8rem; color: var(--mute); margin-top: 0.2rem; }

/* ---------- Главная: секции ---------- */
.fs { padding: 5rem 0; }
.fs--main { background: transparent; }
.fs--alt { background: var(--bg-alt); }
.fs--accent {
    background-color: #e8efea;
    background-image:
        repeating-linear-gradient(45deg, rgba(224, 232, 227, 0.5) 0, rgba(224, 232, 227, 0.5) 1px, transparent 1px, transparent 12px),
        linear-gradient(135deg, #e8efea 0%, #d4e4db 100%);
}
.fs-title {
    position: relative;
    margin: 0 0 1rem -1.5rem;
    padding-left: 1.5rem;
    font-size: 2.3rem;
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.fs-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.5em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--em);
}
.fs-intro { max-width: 62ch; color: var(--mute); font-size: 1.05rem; margin-bottom: 3rem; }
.fs-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem 2rem;
    margin-bottom: 2.4rem;
}
.fs-head .fs-title { margin-bottom: 0; }
.fs-empty { color: var(--mute); }
.dot-rule {
    display: block;
    width: 38%;
    height: 3px;
    margin: 0 0 3rem -1.5rem;
    background-image: radial-gradient(circle, var(--em) 1.2px, transparent 1.6px);
    background-size: 9px 3px;
    background-repeat: repeat-x;
}

/* Hero */
.fs-hero {
    position: relative;
    overflow: hidden;
    padding: 6.5rem 0 6rem;
    color: #fff;
    background-color: var(--head);
    background-image:
        repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.035) 0, rgba(255, 255, 255, 0.035) 1px, transparent 1px, transparent 12px),
        linear-gradient(120deg, #0f2e24 0%, #0f2e24 30%, #0f9d6e 100%);
}
.fs-hero__graph {
    position: absolute;
    right: -2%;
    bottom: -8%;
    width: min(46%, 560px);
    height: auto;
    pointer-events: none;
}
.fs-hero__inner { position: relative; }
.fs-hero__title {
    margin: 0 0 1.4rem;
    max-width: 16ch;
    font-size: 3.5rem;
    line-height: 1.1;
    letter-spacing: -0.02em;
    color: #fff;
}
.fs-hero__lead { max-width: 54ch; color: var(--mint); font-size: 1.15rem; line-height: 1.6; margin-bottom: 2.2rem; }
.fs-hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }

/* Опоры: сетка карточек */
.pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8rem; }
.pillar {
    min-width: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    box-shadow: var(--shadow);
    padding: 2rem 1.8rem 1.9rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.pillar:hover { transform: translateY(-2px); box-shadow: var(--shadow-up); border-color: var(--mint); }
.pillar__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 3.4rem;
    height: 3.4rem;
    margin-bottom: 1.4rem;
    border-radius: 50%;
    background: var(--bg-alt);
}
.pillar__icon svg { display: block; }
.pillar__title { margin: 0 0 0.7rem; color: var(--em); font-size: 1.3rem; }
.pillar p { margin: 0; color: var(--ink); }

/* Таймлайн */
.timeline { position: relative; list-style: none; margin: 0; padding: 0; }
.timeline::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    margin-left: -1px;
    background: var(--em);
}
.timeline__item { position: relative; width: 50%; padding: 0 3rem 2.6rem 0; }
.timeline__item:nth-child(odd) { margin-left: 50%; padding: 0 0 2.6rem 3rem; }
.timeline__item:last-child { padding-bottom: 0; }
.timeline__num {
    position: absolute;
    top: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.6rem;
    height: 2.6rem;
    border-radius: 50%;
    background: var(--em);
    color: #fff;
    font-family: var(--f-head);
    font-weight: 700;
    box-shadow: 0 0 0 5px var(--bg);
    z-index: 1;
}
.timeline__item:nth-child(odd) .timeline__num { left: -1.3rem; }
.timeline__item:nth-child(even) .timeline__num { right: -1.3rem; }
.timeline__card {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 1.4rem 1.6rem;
    box-shadow: var(--shadow);
    min-width: 0;
}
.timeline__title { margin: 0 0 0.5rem; font-size: 1.2rem; }
.timeline__card p { margin: 0; color: var(--mute); }

/* Статистика */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 2.4rem; }
.stat { display: flex; flex-direction: column; gap: 0.6rem; padding: 0.4rem 2rem; min-width: 0; }
.stat:first-child { padding-left: 0; }
.stat + .stat { border-left: 1px solid var(--mint); }
.stat__num {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 4rem;
    line-height: 1;
    letter-spacing: -0.03em;
    color: var(--em);
}
.stat__label { color: var(--mute); font-size: 0.98rem; line-height: 1.45; }

/* ---------- Поиск, 404, служебное ---------- */
.search-form { display: flex; gap: 0.6rem; margin: 1.4rem 0; max-width: 560px; }
.search-form__field {
    flex: 1;
    min-width: 0;
    font: inherit;
    color: var(--ink);
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: #fff;
}
.search-form__btn { flex: 0 0 auto; }
.notice-box, .notfound {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2.2rem 2.4rem;
}
.notfound__code {
    font-family: var(--f-head);
    font-weight: 700;
    font-size: 5rem;
    line-height: 1;
    color: var(--em);
    margin: 0 0 0.6rem;
}

/* ---------- Комментарии ---------- */
.comments {
    margin-top: 2.4rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 6px;
    padding: 2rem 2.4rem;
}
.comments__title, .comment-reply-title { margin-top: 0; font-size: 1.4rem; }
.comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.comment-list .children { list-style: none; padding-left: 1.6rem; border-left: 2px solid var(--line); }
.comment-body { padding: 1rem 0; border-bottom: 1px solid var(--line); }
.comment-author { display: flex; align-items: center; gap: 0.7rem; font-weight: 600; }
.comment-author img { display: block; border-radius: 50%; }
.comment-metadata { font-size: 0.82rem; }
.comment-metadata a { color: var(--mute); }
.comment-form label { display: block; font-size: 0.9rem; margin-bottom: 0.3rem; }
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form textarea {
    width: 100%;
    font: inherit;
    padding: 0.7em 0.9em;
    border: 1px solid var(--line);
    border-radius: 4px;
    background: var(--bg);
    color: var(--ink);
}
.comment-form-cookies-consent { display: flex; gap: 0.5rem; align-items: flex-start; }
.comment-form-cookies-consent label { display: inline; }
.comment-notes, .logged-in-as { font-size: 0.88rem; color: var(--mute); }

/* ---------- Подвал ---------- */
.colophon { background: var(--foot); color: #c3d8cf; padding: 4.5rem 0 2rem; }
.colophon__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3rem; }
.colophon__col { min-width: 0; }
.colophon .widget { color: #c3d8cf; margin-bottom: 1.6rem; }
.colophon .widget-title {
    position: relative;
    margin: 0 0 1rem;
    padding-left: 1.1rem;
    font-size: 1.1rem;
    color: #fff;
}
.colophon .widget-title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45em;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--em);
}
.colophon .widget p, .colophon .textwidget { color: #c3d8cf; font-size: 0.95rem; }
.colophon .widget ul { list-style: none; margin: 0; padding: 0; }
.colophon .widget li { padding: 0.35rem 0; }
.colophon .widget a { color: var(--mint); text-decoration: none; }
.colophon .widget a:hover { color: #fff; text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--mint); }
.colophon .widget .post-date { color: #8fb3a5; font-size: 0.8rem; display: block; }
.colophon__copy {
    margin: 2.6rem 0 0;
    padding-top: 1.6rem;
    border-top: 1px solid rgba(126, 217, 184, 0.15);
    font-size: 0.85rem;
    color: #8fb3a5;
}

/* ---------- Cookie ---------- */
.cookie-banner {
    position: fixed;
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.2rem 2rem;
    max-width: 960px;
    margin: 0 auto;
    padding: 1.1rem 1.4rem;
    background: var(--head);
    color: #d8e9e1;
    border-top: 3px solid var(--em);
    border-radius: 6px;
    box-shadow: 0 10px 30px rgba(11, 35, 28, 0.3);
}
.cookie-banner__text { margin: 0; font-size: 0.9rem; min-width: 0; }
.cookie-banner__text a { color: var(--mint); }
.cookie-banner__accept { flex: 0 0 auto; }

/* ---------- WordPress ---------- */
.alignleft { float: left; margin: 0.3em 1.5em 1em 0; }
.alignright { float: right; margin: 0.3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption-text { font-size: 0.85rem; color: var(--mute); }
.sticky .card-title a::after { content: " •"; color: var(--em); }

/* ---------- Адаптив ---------- */
@media (max-width: 960px) {
    h1 { font-size: 2rem; }
    .layout--aside { display: block; }
    .layout--aside .sidebar { margin-top: 3rem; }
    .layout--solo { width: 100%; }
    .shell--front { width: min(92%, 1180px); }
    .nav-toggle { display: inline-flex; margin: 0.6rem 0; }
    .navbar { flex-wrap: wrap; }
    .topnav { display: none; width: 100%; }
    .topnav.is-open { display: block; }
    .topnav__list { flex-direction: column; gap: 0; padding-bottom: 0.8rem; }
    .topnav__list a { padding: 0.65rem 0; border-bottom: 1px solid rgba(126, 217, 184, 0.12); }
    .fs-hero { padding: 5rem 0 4.5rem; }
    .fs-hero__title { font-size: 2.7rem; }
    .fs-hero__graph { width: 60%; opacity: 0.5; }
    .fs-title, .dot-rule { margin-left: 0; }
    .fs-title { font-size: 2rem; }
    .pillars, .card-grid--three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 2.4rem; }
    .stat:nth-child(3) { padding-left: 0; border-left: 0; }
    .colophon__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .page-head__title, .entry-title { font-size: 2.1rem; }
}

@media (max-width: 600px) {
    body { background-attachment: scroll, scroll; background-size: 280px 280px, auto; }
    .brand__desc { -webkit-line-clamp: 3; }
    .fs { padding: 3.5rem 0; }
    .fs-hero { padding: 3.8rem 0 3.5rem; }
    .fs-hero__title { font-size: 2.1rem; }
    .fs-hero__lead { font-size: 1rem; }
    .fs-title { font-size: 1.65rem; }
    .pillars, .card-grid--three, .colophon__grid { grid-template-columns: minmax(0, 1fr); }
    .pillar { padding: 1.6rem 1.4rem; }
    .stats { grid-template-columns: minmax(0, 1fr); row-gap: 1.8rem; }
    .stat, .stat:nth-child(3) { padding: 0 0 0 1.2rem; border-left: 1px solid var(--mint); }
    .stat__num { font-size: 3rem; }
    .timeline::before { left: 1.3rem; }
    .timeline__item,
    .timeline__item:nth-child(odd) { width: auto; margin-left: 0; padding: 0 0 2rem 4rem; }
    .timeline__item:nth-child(odd) .timeline__num,
    .timeline__item:nth-child(even) .timeline__num { left: 0; right: auto; top: 0.6rem; }
    .timeline__card { padding: 1.2rem 1.3rem; }
    .entry, .comments { padding: 1.5rem 1.3rem; }
    .notice-box, .notfound { padding: 1.6rem 1.3rem; }
    .sidebar .widget { padding: 1.3rem 1.3rem; }
    .page-head__title, .entry-title { font-size: 1.75rem; }
    .search-form { flex-direction: column; }
    .cookie-banner { flex-direction: column; align-items: flex-start; padding: 1rem 1.2rem; }
    .alignleft, .alignright { float: none; margin: 1em 0; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .btn, .card, .pillar { transition: none; }
}
