/* БОДИНАМИКА.РФ — тема «Бодинамика», версия 2.0.
   Все цвета собираются из переменных: выбранная в /admin/themes палитра (--accent)
   меняет оформление целиком, тёмная тема полная, акценты не заданы жёстко. */

/* ───────── Переменные ───────── */
:root,
html.theme-bodinamika {
  --accent: #19695f;
}
html.theme-bodinamika {
  --bd-green: var(--accent);
  --bd-green-d: color-mix(in srgb, var(--accent) 78%, #000);
  --bd-green-l: color-mix(in srgb, var(--accent) 11%, var(--bd-surface));
  --bd-green-xl: color-mix(in srgb, var(--accent) 6%, var(--bd-surface));
  --bd-on-accent: #fff;
  --bd-sand: #c48a4f;
  --bd-sand-l: #f6ecdf;

  --bd-bg: #f6f6f0;
  --bd-surface: #ffffff;
  --bd-surface-2: #eff3ee;
  --bd-text: #1b2f2b;
  --bd-text-2: #3f5851;
  --bd-muted: #5d726c;
  --bd-line: #dbe5de;
  --bd-line-strong: #c3d3c9;
  --bd-ink: color-mix(in srgb, var(--accent) 52%, #06120f);
  --bd-ink-text: #d6e9e1;
  --bd-shadow: 0 1px 2px rgba(22, 52, 44, .05), 0 8px 24px -10px rgba(22, 52, 44, .16);
  --bd-shadow-lg: 0 2px 4px rgba(22, 52, 44, .05), 0 22px 44px -18px rgba(22, 52, 44, .3);
  --bd-radius: 18px;
  --bd-radius-s: 12px;
  --bd-gutter: max(clamp(20px, 5vw, 72px), calc((100vw - 1240px) / 2));
  --bd-serif: "Iowan Old Style", "Palatino Linotype", "Book Antiqua", Palatino, Georgia, "Times New Roman", serif;
  --bd-sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --bd-ease: cubic-bezier(.2, .7, .2, 1);

  /* переменные ядра CMS, которые использует общий app.css внутри страниц */
  --background: var(--bd-bg);
  --surface: var(--bd-surface);
  --surface-subtle: var(--bd-surface-2);
  --text: var(--bd-text);
  --line: var(--bd-line);
}

/* Тёмная тема: явная и системная */
html.theme-bodinamika[data-mode="dark"] {
  --bd-green: color-mix(in srgb, var(--accent) 52%, #fff);
  --bd-green-d: color-mix(in srgb, var(--accent) 70%, #fff);
  --bd-green-l: color-mix(in srgb, var(--accent) 24%, var(--bd-surface));
  --bd-green-xl: color-mix(in srgb, var(--accent) 14%, var(--bd-surface));
  --bd-on-accent: #07211b;
  --bd-sand: #e0ae78;
  --bd-sand-l: #34291d;
  --bd-bg: #0e1a17;
  --bd-surface: #152622;
  --bd-surface-2: #1a2f2a;
  --bd-text: #dfeee8;
  --bd-text-2: #bcd3ca;
  --bd-muted: #9bb7ac;
  --bd-line: #2a443d;
  --bd-line-strong: #3a5c53;
  --bd-ink: #0b1f1a;
  --bd-ink-text: #c6ded4;
  --bd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -12px rgba(0, 0, 0, .6);
  --bd-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .75);
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  html.theme-bodinamika:not([data-mode="light"]) {
    --bd-green: color-mix(in srgb, var(--accent) 52%, #fff);
    --bd-green-d: color-mix(in srgb, var(--accent) 70%, #fff);
    --bd-green-l: color-mix(in srgb, var(--accent) 24%, var(--bd-surface));
    --bd-green-xl: color-mix(in srgb, var(--accent) 14%, var(--bd-surface));
    --bd-on-accent: #07211b;
    --bd-sand: #e0ae78;
    --bd-sand-l: #34291d;
    --bd-bg: #0e1a17;
    --bd-surface: #152622;
    --bd-surface-2: #1a2f2a;
    --bd-text: #dfeee8;
    --bd-text-2: #bcd3ca;
    --bd-muted: #9bb7ac;
    --bd-line: #2a443d;
    --bd-line-strong: #3a5c53;
    --bd-ink: #0b1f1a;
    --bd-ink-text: #c6ded4;
    --bd-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 26px -12px rgba(0, 0, 0, .6);
    --bd-shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 24px 48px -18px rgba(0, 0, 0, .75);
    color-scheme: dark;
  }
}

/* ───────── Основа ───────── */
.bd-body, .bd-body * { box-sizing: border-box; }
.bd-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bd-bg);
  color: var(--bd-text);
  font: 16px/1.7 var(--bd-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
.bd-body a { text-underline-offset: 3px; }
.bd-body :focus-visible { outline: 3px solid var(--bd-sand); outline-offset: 3px; border-radius: 6px; }
.bd-body ::selection { background: color-mix(in srgb, var(--bd-green) 28%, transparent); }
.bd-visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.bd-shell { width: 100%; min-height: 100vh; display: flex; flex-direction: column; background: var(--bd-bg); }
.bd-main { flex: 1; min-height: 500px; min-width: 0; overflow-wrap: break-word; }
.skip-link:focus { z-index: 100; }

/* Общий сброс кнопок: общий app.css рисует «клавиши» с тенями, а теме нужны ровные элементы */
:where(.bd-body) button {
  all: unset;
  box-sizing: border-box;
  cursor: pointer;
  font-family: inherit;
}
:where(.bd-body) button:hover,
:where(.bd-body) button:active { transform: none; filter: none; box-shadow: none; }
:where(.bd-body) button:disabled { cursor: default; opacity: .55; }
:where(.bd-body) input[type="checkbox"], :where(.bd-body) input[type="radio"] { margin: 0; }

/* ───────── Шапка ───────── */
.bd-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bd-surface) 88%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.4); backdrop-filter: blur(16px) saturate(1.4);
  border-bottom: 1px solid var(--bd-line);
}
.bd-header-inner {
  min-height: 74px; padding: 0 var(--bd-gutter);
  display: flex; align-items: center; gap: clamp(14px, 2.2vw, 34px);
}
.bd-brand {
  display: inline-flex; align-items: center; gap: 11px; flex-shrink: 0;
  font: 800 21px/1 var(--bd-sans); letter-spacing: -.045em; white-space: nowrap;
  text-decoration: none !important; color: var(--bd-text) !important;
}
.bd-brand small { color: var(--bd-green); font-size: 17px; font-weight: 700; }
.bd-brand-mark {
  display: grid; place-items: center; flex-shrink: 0; width: 42px; height: 42px; border-radius: 14px;
  color: var(--bd-on-accent); background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 80%, #fff), var(--bd-green-d));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 6px 14px -6px color-mix(in srgb, var(--accent) 70%, transparent);
  transition: transform .4s var(--bd-ease);
}
.bd-brand:hover .bd-brand-mark { transform: rotate(-6deg) scale(1.05); }
.bd-nav { flex: 1; display: flex; align-items: center; justify-content: center; gap: clamp(2px, .6vw, 8px); }
.bd-nav a {
  position: relative; padding: 9px 13px; border-radius: 999px;
  font-size: 14px; font-weight: 640; text-decoration: none; color: var(--bd-text-2); white-space: nowrap;
  transition: background .2s, color .2s;
}
.bd-nav a:hover { background: var(--bd-green-l); color: var(--bd-green-d); }
.bd-nav a.current { background: var(--bd-green-l); color: var(--bd-green); }
.bd-nav a.is-tools { color: var(--bd-green); }
.bd-head-tools { display: flex; align-items: center; gap: 10px; }
.bd-search {
  position: relative; display: flex; align-items: center; width: clamp(170px, 16vw, 250px); height: 42px;
  border: 1px solid var(--bd-line); border-radius: 999px; background: var(--bd-surface-2);
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.bd-search:focus-within { border-color: var(--bd-green); background: var(--bd-surface); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bd-green) 16%, transparent); }
.bd-body .bd-search input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; box-shadow: none; outline: 0; background: transparent;
  padding: 0 4px 0 17px; margin: 0; font: 14px var(--bd-sans); color: var(--bd-text);
}
.bd-body .bd-search input:focus-visible { outline: 0; }
.bd-search input::placeholder { color: var(--bd-muted); }
.bd-search > button { display: grid; place-items: center; width: 40px; height: 40px; flex-shrink: 0; color: var(--bd-green); border-radius: 50%; }
.bd-search > button:hover { background: var(--bd-green-l); }
.bd-search-results {
  position: absolute; top: calc(100% + 10px); right: 0; width: min(500px, 92vw); max-height: 460px; overflow: auto; padding: 10px;
  background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: 16px; box-shadow: var(--bd-shadow-lg); z-index: 80;
}
.bd-search-results[hidden] { display: none; }
.bd-search-results > a { display: block; padding: 11px 12px; border-radius: 10px; text-decoration: none; }
.bd-search-results > a:hover { background: var(--bd-green-l); }
.bd-search-results strong { display: block; color: var(--bd-text); font-size: 14px; }
.bd-search-results small { display: block; color: var(--bd-muted); font-size: 12.5px; line-height: 1.5; max-height: 3em; overflow: hidden; }
.bd-search-count, .bd-search-message { font-size: 12px; color: var(--bd-muted); padding: 6px 10px; margin: 0; }
.bd-mode {
  display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; font-size: 19px; line-height: 1;
  color: var(--bd-green); border: 1px solid var(--bd-line); background: var(--bd-surface-2);
  transition: background .2s, transform .3s var(--bd-ease);
}
.bd-mode:hover { background: var(--bd-green-l); transform: rotate(25deg); }
.bd-body .bd-menu-toggle, .bd-body .bd-menu-button { display: none; }

.bd-subnav { background: var(--bd-surface-2); border-bottom: 1px solid var(--bd-line); }
.bd-subnav > div { max-width: 1240px; margin: auto; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px 6px; padding: 8px 16px; }
.bd-subnav a { padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--bd-muted); text-decoration: none; transition: background .2s, color .2s; }
.bd-subnav a:hover, .bd-subnav a[aria-current] { color: var(--bd-green-d); background: var(--bd-green-l); }

/* ───────── Страницы ───────── */
.bd-page { max-width: 1240px; margin: auto; padding: 44px clamp(20px, 5vw, 72px) 96px; }
.bd-page.bd-narrow { max-width: 980px; }
.bd-crumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-size: 13px; margin-bottom: 26px; color: var(--bd-muted); }
.bd-crumb a { color: var(--bd-green); text-decoration: none; font-weight: 600; }
.bd-crumb a:hover { text-decoration: underline; }
.bd-page-head { margin-bottom: 34px; }
.bd-kicker {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--bd-green); text-transform: uppercase; letter-spacing: .16em; font-size: 11.5px; font-weight: 800;
}
.bd-kicker::before { content: ""; width: 22px; height: 2px; background: var(--bd-sand); border-radius: 2px; }
.bd-page-head h1, .bd-hero h1 {
  font-family: var(--bd-serif); letter-spacing: -.035em; line-height: 1.08; font-weight: 500; color: var(--bd-text); margin-bottom: 0;
}
.bd-page-head h1 { font-size: clamp(36px, 4.4vw, 60px); margin: 14px 0 16px; text-wrap: balance; }
.bd-page-head > p { font-size: 18px; color: var(--bd-muted); line-height: 1.7; max-width: 780px; margin: 0; }

/* ───────── Главная ───────── */
.bd-hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); min-height: 560px; overflow: hidden;
  background:
    radial-gradient(900px 480px at 8% 0%, color-mix(in srgb, var(--bd-green) 13%, transparent), transparent 70%),
    linear-gradient(180deg, var(--bd-green-xl), var(--bd-bg));
  border-bottom: 1px solid var(--bd-line);
}
.bd-hero-copy {
  padding: clamp(48px, 7vw, 104px) clamp(24px, 4vw, 64px) clamp(48px, 7vw, 104px) var(--bd-gutter);
  display: flex; flex-direction: column; align-items: flex-start; justify-content: center;
}
.bd-hero h1 { font-size: clamp(46px, 6vw, 88px); margin: 20px 0 24px; text-wrap: balance; }
.bd-hero h1 em { font-weight: 400; color: var(--bd-green); }
.bd-hero-copy > p { max-width: 560px; margin: 0 0 30px; color: var(--bd-text-2); line-height: 1.75; font-size: 17.5px; }
.bd-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.bd-btn, .bd-body .bd-btn {
  display: inline-flex; justify-content: center; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px; border: 1.5px solid var(--bd-green); background: var(--bd-green);
  color: var(--bd-on-accent) !important; font: 700 14px/1.3 var(--bd-sans); text-decoration: none !important; cursor: pointer;
  transition: transform .2s var(--bd-ease), box-shadow .2s, background .2s;
}
.bd-btn:hover, .bd-body .bd-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 22px -10px color-mix(in srgb, var(--bd-green) 80%, #000); }
.bd-btn.ghost, .bd-body .bd-btn.ghost { color: var(--bd-green) !important; background: transparent; border-color: var(--bd-line-strong); }
.bd-btn.ghost:hover { background: var(--bd-green-l); box-shadow: none; }
.bd-btn.light, .bd-body .bd-btn.light { background: var(--bd-surface); border-color: var(--bd-surface); color: var(--bd-green-d) !important; }
.bd-btn.small, .bd-body .bd-btn.small { padding: 8px 15px; font-size: 13px; }
.bd-hero-copy .bd-hero-foot { margin: 24px 0 0; font-size: 13px; color: var(--bd-muted); }

.bd-hero-graphic {
  position: relative; isolation: isolate; overflow: hidden; min-height: 480px;
  background:
    radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--bd-green) 12%, #fff) 0, color-mix(in srgb, var(--bd-green) 34%, #fff) 32%, color-mix(in srgb, var(--bd-green) 74%, #fff) 72%, var(--bd-green-d) 100%);
}
html.theme-bodinamika[data-mode="dark"] .bd-hero-graphic {
  background: radial-gradient(circle at 50% 46%, color-mix(in srgb, var(--accent) 60%, #fff) 0, var(--accent) 38%, var(--bd-ink) 100%);
}
.bd-ring {
  position: absolute; top: 50%; left: 50%; width: 400px; height: 400px; transform: translate(-50%, -50%);
  border: 1px solid rgba(255, 255, 255, .85); border-radius: 50%; animation: bd-breathe 9s ease-in-out infinite;
}
.bd-ring.r2 { width: 288px; height: 288px; border-width: 2px; border-color: rgba(255, 255, 255, .95); animation-delay: -1.2s; }
.bd-ring.r3 { width: 160px; height: 160px; border-color: rgba(255, 255, 255, .8); animation-delay: -2.4s; }
.bd-sun {
  position: absolute; top: 50%; left: 50%; width: 72px; height: 72px; transform: translate(-50%, -50%); border-radius: 50%;
  background: #f1fbf1; box-shadow: 0 0 0 18px rgba(255, 255, 255, .16), 0 0 70px rgba(255, 255, 255, .9); animation: bd-glow 9s ease-in-out infinite;
}
.bd-caption {
  position: absolute; padding: 8px 15px; border-radius: 999px; color: #fff; font-weight: 650; font-size: 13px; letter-spacing: .02em;
  background: rgba(12, 54, 45, .5); border: 1px solid rgba(255, 255, 255, .45); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  animation: bd-float 7s ease-in-out infinite;
}
.bd-caption.c1 { left: 14%; top: 24%; }
.bd-caption.c2 { right: 11%; top: 27%; animation-delay: -1.8s; }
.bd-caption.c3 { left: 19%; bottom: 20%; animation-delay: -3.6s; }
.bd-caption.c4 { right: 14%; bottom: 22%; animation-delay: -5.2s; }
@keyframes bd-breathe { 0%, 100% { transform: translate(-50%, -50%) scale(.94); } 50% { transform: translate(-50%, -50%) scale(1.05); } }
@keyframes bd-glow { 0%, 100% { transform: translate(-50%, -50%) scale(.9); } 50% { transform: translate(-50%, -50%) scale(1.14); } }
@keyframes bd-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

.bd-statline {
  display: grid; grid-template-columns: repeat(5, 1fr); background: var(--bd-surface); border-bottom: 1px solid var(--bd-line);
  padding: 0 var(--bd-gutter);
}
.bd-statline > div { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 2px; padding: 28px 8px; border-left: 1px solid var(--bd-line); }
.bd-statline > div:first-child { border-left: 0; }
.bd-statline strong { font: 500 38px/1 var(--bd-serif); color: var(--bd-green); letter-spacing: -.03em; }
.bd-statline span { font-size: 13px; color: var(--bd-muted); }

.bd-section { padding: 84px var(--bd-gutter); }
.bd-section-title { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-bottom: 30px; }
.bd-section-title h2 { font: 500 clamp(30px, 3.6vw, 50px)/1.12 var(--bd-serif); letter-spacing: -.035em; margin: 10px 0 0; color: var(--bd-text); text-wrap: balance; }
.bd-section-title p { max-width: 360px; color: var(--bd-muted); margin: 0; }
.bd-section-title > a { font-weight: 700; color: var(--bd-green); text-decoration: none; white-space: nowrap; }
.bd-section-title > a:hover { text-decoration: underline; }
.bd-light-section { background: var(--bd-surface-2); border-block: 1px solid var(--bd-line); }

.bd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.bd-grid > [data-bd-card] { min-width: 0; }
.bd-grid > [data-bd-card] > .bd-card { height: 100%; }
.bd-card {
  position: relative; display: flex; flex-direction: column; gap: 14px; min-height: 190px; padding: 26px 26px 24px;
  background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: var(--bd-radius);
  text-decoration: none !important; color: var(--bd-text) !important; box-shadow: var(--bd-shadow);
  transition: transform .3s var(--bd-ease), box-shadow .3s, border-color .3s;
}
.bd-card::after {
  content: ""; position: absolute; left: 26px; right: 26px; top: -1px; height: 3px; border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--bd-green), var(--bd-sand)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--bd-ease);
}
.bd-card:hover { transform: translateY(-4px); box-shadow: var(--bd-shadow-lg); border-color: var(--bd-line-strong); }
.bd-card:hover::after { transform: scaleX(1); }
.bd-card-top { display: flex; justify-content: space-between; align-items: center; color: var(--bd-green); }
.bd-card-top small { font-size: 11.5px; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
.bd-card-top b {
  display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; font-size: 15px; font-weight: 500;
  background: var(--bd-green-l); transition: background .3s, color .3s, transform .3s var(--bd-ease);
}
.bd-card:hover .bd-card-top b { background: var(--bd-green); color: var(--bd-on-accent); transform: rotate(45deg); }
.bd-card > strong { font: 500 clamp(20px, 1.9vw, 25px)/1.22 var(--bd-serif); letter-spacing: -.02em; }
.bd-card > span:last-child { font-size: 14px; color: var(--bd-muted); line-height: 1.65; }

.bd-dark-band {
  display: flex; align-items: center; justify-content: space-between; gap: 40px;
  background: radial-gradient(700px 300px at 90% 0, color-mix(in srgb, var(--bd-green) 28%, transparent), transparent), var(--bd-ink);
  color: #fff; padding: 64px var(--bd-gutter);
}
.bd-dark-band .bd-kicker { color: color-mix(in srgb, var(--bd-green) 40%, #fff); }
.bd-dark-band h2 { font: 500 clamp(32px, 3.6vw, 50px)/1.12 var(--bd-serif); margin: 12px 0 14px; color: #fff; letter-spacing: -.03em; }
.bd-dark-band p { color: var(--bd-ink-text); max-width: 760px; margin: 0; }

.bd-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.bd-steps a {
  display: flex; gap: 16px; align-items: flex-start; padding: 22px; color: var(--bd-text); text-decoration: none;
  background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: 16px; transition: transform .25s var(--bd-ease), border-color .25s, box-shadow .25s;
}
.bd-steps a:hover { transform: translateY(-3px); border-color: var(--bd-line-strong); box-shadow: var(--bd-shadow); }
.bd-steps b { width: 40px; height: 40px; display: grid; place-items: center; flex-shrink: 0; border-radius: 50%; background: var(--bd-green); color: var(--bd-on-accent); font: 700 16px var(--bd-sans); }
.bd-steps strong, .bd-steps small { display: block; }
.bd-steps strong { font-size: 15px; }
.bd-steps small { font-size: 13px; color: var(--bd-muted); margin-top: 4px; }

/* ───────── Тексты ───────── */
.bd-rich, .bd-article {
  background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: 20px;
  padding: clamp(24px, 4.2vw, 52px); line-height: 1.85; font-size: 16.5px; margin-bottom: 26px; box-shadow: var(--bd-shadow);
}
.bd-rich h2, .bd-article h2 { font: 500 clamp(26px, 3vw, 36px)/1.22 var(--bd-serif); letter-spacing: -.03em; margin: 34px 0 14px; color: var(--bd-text); }
.bd-rich h2:first-child, .bd-article h2:first-child { margin-top: 0; }
.bd-rich p, .bd-article p { margin: 0 0 18px; color: var(--bd-text-2); max-width: none; }
.bd-rich li, .bd-article li { margin: 8px 0; color: var(--bd-text-2); }
.bd-rich ul, .bd-article ul, .bd-article ol { padding-left: 28px; }
.bd-rich a, .bd-article a { color: var(--bd-green); }
.bd-article { font-size: 17px; max-width: 100%; }
.bd-article > p:first-of-type { font-size: 19px; color: var(--bd-text); }
.bd-article blockquote { margin: 22px 0; background: var(--bd-green-xl); padding: 18px 22px; border-left: 4px solid var(--bd-green); border-radius: 0 12px 12px 0; }
.bd-note {
  display: block; background: var(--bd-green-xl); border: 1px solid color-mix(in srgb, var(--bd-green) 22%, var(--bd-line)); border-left: 4px solid var(--bd-green);
  border-radius: 14px; padding: 20px 24px; color: var(--bd-text-2); margin: 28px 0;
}
.bd-note strong { font-size: 15px; color: var(--bd-text); }
.bd-note p { font-size: 14.5px; line-height: 1.75; margin: 6px 0 0; max-width: none; }
.bd-count { font-size: 14px; color: var(--bd-muted); margin: 0 0 18px; }
.bd-count strong { color: var(--bd-green); }
.bd-filter { display: flex; gap: 18px; align-items: end; flex-wrap: wrap; background: var(--bd-surface); padding: 18px 20px; border: 1px solid var(--bd-line); border-radius: 16px; margin-bottom: 26px; box-shadow: var(--bd-shadow); }
.bd-filter label { min-width: 210px; flex: 1; font-size: 12px; font-weight: 760; color: var(--bd-muted); text-transform: uppercase; letter-spacing: .06em; }
.bd-body .bd-filter input, .bd-body .bd-filter select {
  font: 15px var(--bd-sans); display: block; width: 100%; margin: 7px 0 0; padding: 11px 13px; border-radius: 10px;
  border: 1px solid var(--bd-line); background: var(--bd-surface-2); color: var(--bd-text); text-transform: none; letter-spacing: 0; box-shadow: none;
}
.bd-alphabet { display: flex; flex-wrap: wrap; gap: 6px; margin: 20px 0 26px; }
.bd-alphabet > * { display: grid; place-items: center; min-width: 36px; min-height: 36px; border-radius: 10px; border: 1px solid var(--bd-line); background: var(--bd-surface); font-size: 14px; text-decoration: none; font-weight: 700; color: var(--bd-green); transition: background .2s, color .2s; }
.bd-alphabet a:hover { background: var(--bd-green); color: var(--bd-on-accent); }
.bd-alphabet .disabled { color: var(--bd-line-strong); background: transparent; border-style: dashed; }
.bd-glossary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.bd-glossary > a {
  border: 1px solid var(--bd-line); border-radius: 14px; background: var(--bd-surface); padding: 17px 20px; display: grid; grid-template-columns: 1fr auto; gap: 4px;
  text-decoration: none; color: var(--bd-text); scroll-margin-top: 140px; transition: border-color .2s, transform .25s var(--bd-ease), box-shadow .25s;
}
.bd-glossary > a:hover { border-color: var(--bd-green); transform: translateY(-2px); box-shadow: var(--bd-shadow); }
.bd-glossary strong { font-size: 16px; }
.bd-glossary span { font-size: 13px; color: var(--bd-muted); grid-column: 1/2; line-height: 1.6; }
.bd-glossary b { grid-row: 1/3; grid-column: 2/3; color: var(--bd-green); align-self: center; }
.bd-empty { color: var(--bd-muted); font-weight: 650; }
.bd-detail-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 13px; color: var(--bd-muted); margin-bottom: 18px; }
.bd-detail-meta a { color: var(--bd-green); font-weight: 700; text-decoration: none; }
.bd-detail-meta span { border-radius: 999px; background: var(--bd-green-l); color: var(--bd-green-d); padding: 5px 12px; font-weight: 600; }
.bd-detail-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.bd-source { font-size: 13.5px; color: var(--bd-muted); }
.bd-source a { color: var(--bd-green); }
.bd-faq details { border: 1px solid var(--bd-line); background: var(--bd-surface); border-radius: 14px; padding: 4px 22px; margin-bottom: 12px; transition: border-color .2s, box-shadow .2s; }
.bd-faq details[open] { border-color: var(--bd-line-strong); box-shadow: var(--bd-shadow); }
.bd-faq summary { cursor: pointer; font-weight: 700; font-size: 16.5px; color: var(--bd-text); padding: 16px 0; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.bd-faq summary::-webkit-details-marker { display: none; }
.bd-faq summary::after { content: "+"; color: var(--bd-green); font-size: 24px; font-weight: 400; line-height: 1; transition: transform .25s; }
.bd-faq details[open] summary::after { transform: rotate(45deg); }
.bd-faq p { color: var(--bd-muted); padding-bottom: 14px; margin: 0; }
.bd-timeline { position: relative; display: grid; gap: 14px; }
.bd-timeline-item { border: 1px solid var(--bd-line); background: var(--bd-surface); border-radius: 16px; padding: 22px 26px; display: grid; grid-template-columns: 110px 1fr; gap: 24px; }
.bd-timeline-item b { color: var(--bd-green); font: 500 25px var(--bd-serif); }
.bd-timeline-item p { margin: 0; color: var(--bd-muted); }

/* ───────── Локальные инструменты (дневник, карта ресурсов, самонаблюдение) ───────── */
.bd-soft-panel { background: var(--bd-surface); padding: clamp(22px, 4vw, 40px); border: 1px solid var(--bd-line); border-radius: 20px; box-shadow: var(--bd-shadow); }
.bd-resource-form { display: grid; gap: 16px; }
.bd-resource-form label { display: block; font-size: 14px; font-weight: 650; }
.bd-body .bd-resource-form input, .bd-body .bd-resource-form textarea {
  display: block; width: 100%; margin: 8px 0 0; padding: 12px 14px; border: 1px solid var(--bd-line); border-radius: 12px;
  background: var(--bd-surface-2); color: var(--bd-text); font: 15px var(--bd-sans); box-shadow: none;
}
.bd-body .bd-resource-form input:focus, .bd-body .bd-resource-form textarea:focus { border-color: var(--bd-green); outline: 0; box-shadow: 0 0 0 4px color-mix(in srgb, var(--bd-green) 16%, transparent); }
.bd-resource-form button { justify-self: start; }
.bd-resource-list, .bd-journal-list { display: grid; gap: 10px; margin-top: 22px; }
.bd-local-card { border: 1px solid var(--bd-line); background: var(--bd-surface-2); border-radius: 14px; padding: 16px 20px; display: flex; gap: 14px; justify-content: space-between; align-items: flex-start; }
.bd-local-card strong { display: block; color: var(--bd-text); }
.bd-local-card p { margin: 5px 0 0; font-size: 13px; color: var(--bd-muted); white-space: pre-wrap; overflow-wrap: break-word; }
.bd-local-card button, .bd-local-tools button, .bd-mini {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 8px 14px; border-radius: 999px;
  border: 1px solid var(--bd-line-strong); background: var(--bd-surface); color: var(--bd-green); font: 600 13px var(--bd-sans);
  transition: background .2s, border-color .2s;
}
.bd-local-card button:hover, .bd-local-tools button:hover, .bd-mini:hover { background: var(--bd-green-l); border-color: var(--bd-green); }
.bd-local-tools { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.bd-range-row { display: grid; gap: 13px; }
.bd-range-row input { width: 100%; accent-color: var(--bd-green); }
.bd-emotions { display: flex; flex-wrap: wrap; gap: 9px; margin: 12px 0 20px; }
.bd-emotions label { background: var(--bd-green-l); padding: 8px 14px; border-radius: 999px; font-size: 14px; cursor: pointer; }
.bd-feedback { color: var(--bd-muted); font-size: 14px; }
.bd-admin-kinds { display: flex; flex-wrap: wrap; gap: 12px; margin: 18px 0; }
.bd-admin-kinds a { padding: 8px 14px; border: 1px solid var(--bd-line); border-radius: 10px; background: var(--bd-green-l); text-decoration: none; }

/* Служебные страницы CMS внутри темы */
.bd-standard { padding: 52px var(--bd-gutter) 90px; max-width: none; margin: auto; }
.bd-standard > * { max-width: 1240px; margin-inline: auto; }
.bd-standard > .longtext { max-width: 880px; line-height: 1.85; font-size: 17px; }
.bd-standard .article-row { border: 1px solid var(--bd-line); background: var(--bd-surface); border-radius: 16px; padding: 24px; margin: 14px auto; overflow-wrap: break-word; box-shadow: var(--bd-shadow); }
.bd-standard a { color: var(--bd-green); }
.bd-standard h1 { font: 500 clamp(34px, 4vw, 54px)/1.1 var(--bd-serif); letter-spacing: -.03em; }
.bd-standard h2 { font-family: var(--bd-serif); font-weight: 500; letter-spacing: -.02em; }
.flash { max-width: 1240px; margin: 18px auto 0; padding: 14px 20px; border-radius: 12px; background: var(--bd-green-l); border: 1px solid var(--bd-line-strong); color: var(--bd-text); }
.error-page { text-align: center; padding: 90px 20px; }
.error-page .error-code { font: 500 clamp(80px, 14vw, 160px)/1 var(--bd-serif); color: var(--bd-green); letter-spacing: -.05em; }

/* ───────── Подвал ───────── */
.bd-footer { background: var(--bd-ink); padding: 64px var(--bd-gutter) 20px; color: var(--bd-ink-text); }
.bd-footer-grid { display: grid; grid-template-columns: 1.7fr repeat(3, 1fr); gap: 40px; }
.bd-footer .bd-brand { color: #fff !important; }
.bd-footer .bd-brand-mark { background: color-mix(in srgb, var(--accent) 60%, #fff); color: #06201a; }
.bd-footer .bd-brand small { color: color-mix(in srgb, var(--bd-green) 40%, #fff); }
.bd-footer-grid p { max-width: 330px; font-size: 14px; color: color-mix(in srgb, var(--bd-ink-text) 85%, transparent); line-height: 1.75; }
.bd-footer-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 11px; }
.bd-footer strong { color: #fff; font-size: 14px; margin-bottom: 4px; }
.bd-footer a:not(.bd-brand) { font-size: 13.5px; text-decoration: none; color: color-mix(in srgb, var(--bd-ink-text) 90%, transparent); }
.bd-footer a:not(.bd-brand):hover { color: #fff; text-decoration: underline; }
.bd-footer-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 46px; padding-top: 18px; display: flex; justify-content: space-between; gap: 15px; flex-wrap: wrap; font-size: 12.5px; color: color-mix(in srgb, var(--bd-ink-text) 75%, transparent); }

[data-bd-card][hidden], .bd-glossary > a[hidden], .bd-empty[hidden] { display: none !important; }

/* ───────── Адаптивность ───────── */
@media (max-width: 1180px) {
  .bd-header-inner { gap: 12px; }
  .bd-nav a { padding: 8px 10px; font-size: 13.5px; }
  .bd-brand { font-size: 19px; }
  .bd-search { width: 190px; }
  .bd-footer-grid { grid-template-columns: 1.4fr 1fr 1fr; }
  .bd-footer-grid > div:last-child { grid-column: 2/4; }
}
@media (max-width: 1020px) {
  .bd-body .bd-menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .bd-body .bd-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 10px; order: 3; width: 44px; height: 44px; border-radius: 50%; }
  .bd-menu-button:hover { background: var(--bd-green-l); }
  .bd-menu-button span { width: 22px; height: 2px; border-radius: 2px; background: var(--bd-green); transition: transform .25s, opacity .25s; }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(2) { opacity: 0; }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bd-nav {
    display: none; position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px;
    background: var(--bd-surface); border: 1px solid var(--bd-line); border-radius: 18px; box-shadow: var(--bd-shadow-lg);
  }
  .bd-nav a { font-size: 16px; padding: 12px 14px; border-radius: 12px; }
  .bd-menu-toggle:checked ~ .bd-nav { display: flex; }
  .bd-head-tools { margin-left: auto; }
  .bd-subnav > div { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; padding: 8px 16px; scrollbar-width: none; }
  .bd-subnav a { flex-shrink: 0; }
  .bd-hero { grid-template-columns: 1fr; }
  .bd-hero-copy { padding: 56px var(--bd-gutter) 40px; }
  .bd-hero-graphic { min-height: 360px; }
  .bd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-steps { grid-template-columns: 1fr; }
  .bd-statline { grid-template-columns: repeat(3, 1fr); }
  .bd-statline > div:nth-child(4) { border-left: 0; }
}
@media (max-width: 680px) {
  .bd-header-inner { min-height: 66px; padding: 0 14px; gap: 6px; }
  .bd-brand { font-size: 17px; gap: 8px; }
  .bd-brand small { font-size: 15px; }
  .bd-brand-mark { width: 38px; height: 38px; border-radius: 12px; }
  .bd-brand-mark svg { width: 26px; height: 26px; }
  .bd-search { width: 42px; transition: width .25s; }
  .bd-search:focus-within { width: min(230px, 52vw); position: absolute; right: 64px; z-index: 3; }
  .bd-search input { padding-left: 14px !important; opacity: .01; }
  .bd-search:focus-within input { opacity: 1; }
  .bd-hero-copy { padding: 44px 22px 34px; }
  .bd-hero h1 { font-size: clamp(44px, 12.5vw, 62px); }
  .bd-hero-graphic { min-height: 280px; }
  .bd-ring { width: 300px; height: 300px; }
  .bd-ring.r2 { width: 210px; height: 210px; }
  .bd-ring.r3 { width: 116px; height: 116px; }
  .bd-sun { width: 48px; height: 48px; }
  .bd-caption { font-size: 11.5px; padding: 6px 11px; }
  .bd-statline { padding: 0 8px; }
  .bd-statline > div { padding: 20px 4px; }
  .bd-statline strong { font-size: 28px; }
  .bd-statline span { font-size: 11px; }
  .bd-section { padding: 52px 20px; }
  .bd-section-title { flex-direction: column; align-items: flex-start; gap: 14px; }
  .bd-section-title h2 { font-size: 34px; }
  .bd-grid, .bd-glossary { grid-template-columns: 1fr; }
  .bd-card { min-height: 150px; padding: 22px; }
  .bd-dark-band { display: block; padding: 44px 22px; }
  .bd-dark-band .bd-btn { margin-top: 24px; }
  .bd-page { padding: 28px 18px 60px; }
  .bd-page-head h1 { font-size: 38px; }
  .bd-page-head > p { font-size: 16px; }
  .bd-rich, .bd-article { padding: 22px; font-size: 16px; }
  .bd-filter label { min-width: 100%; }
  .bd-timeline-item { grid-template-columns: 1fr; gap: 6px; }
  .bd-standard { padding: 32px 18px 56px; }
  .bd-footer { padding: 48px 22px 18px; }
  .bd-footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .bd-footer-grid > div:first-child { grid-column: 1/3; }
  .bd-footer-grid > div:last-child { grid-column: auto; }
  .bd-footer-bottom { margin-top: 30px; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-ring, .bd-sun, .bd-caption { animation: none; }
  .bd-body *, .bd-body *::before, .bd-body *::after { transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@page { size: A4; margin: 19mm; }
@media print {
  .bd-header, .bd-subnav, .bd-footer, .bd-detail-actions, .bd-filter, .bd-alphabet, .bd-local-tools, .bd-actions, .bd-hero-graphic { display: none !important; }
  .bd-shell, .bd-main, .bd-page, .bd-standard { width: 100% !important; max-width: 100% !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: #fff !important; box-shadow: none !important; }
  .bd-body { background: #fff !important; color: #111 !important; }
  .bd-article, .bd-rich { border: 0 !important; box-shadow: none !important; padding: 0 !important; line-height: 1.5; color: #111 !important; }
  .bd-article p, .bd-rich p { color: #111 !important; }
  .bd-card { break-inside: avoid; box-shadow: none; }
  .bd-page-head h1 { font-size: 25pt; }
}

/* ───────── Объём: меню, карточки, градиенты, тени (v2.1) ───────── */
html.theme-bodinamika {
  --h1: #1d7567; --h2: #2a7fb0; --h3: #7a5aa6; --h4: #c0733a; --h5: #b8566f; --h6: #4f8f3f; --h7: #d19a1f;
  --bd-lift: inset 0 1px 0 rgba(255,255,255,.75), inset 0 -2px 0 rgba(20,50,42,.07);
}
html.theme-bodinamika[data-mode="dark"] { --bd-lift: inset 0 1px 0 rgba(255,255,255,.1), inset 0 -2px 0 rgba(0,0,0,.35); }

.bd-header {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--bd-surface) 96%, transparent), color-mix(in srgb, var(--bd-green-xl) 92%, transparent));
  border-bottom: 0;
  box-shadow: 0 1px 0 var(--bd-line), 0 14px 30px -18px color-mix(in srgb, var(--accent) 55%, transparent);
}
.bd-header::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; pointer-events: none;
  background: linear-gradient(90deg, var(--h1), var(--h2), var(--h3), var(--h5), var(--h4), var(--h7));
  opacity: .85;
}
.bd-brand-mark {
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 55%, #fff) 0%, var(--accent) 50%, var(--bd-green-d) 100%);
  box-shadow: inset 0 2px 0 rgba(255,255,255,.45), inset 0 -4px 8px rgba(0,0,0,.2), 0 10px 20px -6px color-mix(in srgb, var(--accent) 75%, transparent), 0 2px 3px rgba(0,0,0,.2);
}

/* Меню: объёмные «клавиши», у каждого раздела свой оттенок */
.bd-nav { gap: 8px; }
.bd-nav a {
  --c: var(--h1);
  padding: 10px 16px; border-radius: 14px; font-weight: 700; color: var(--bd-text);
  background: linear-gradient(180deg, var(--bd-surface), color-mix(in srgb, var(--c) 9%, var(--bd-surface)));
  border: 1px solid color-mix(in srgb, var(--c) 22%, var(--bd-line));
  box-shadow: var(--bd-lift), 0 3px 0 color-mix(in srgb, var(--c) 28%, var(--bd-line)), 0 8px 14px -8px color-mix(in srgb, var(--c) 55%, transparent);
  transition: transform .18s var(--bd-ease), box-shadow .18s, background .18s, color .18s;
}
.bd-nav a:nth-child(1) { --c: var(--h1); } .bd-nav a:nth-child(2) { --c: var(--h2); } .bd-nav a:nth-child(3) { --c: var(--h3); }
.bd-nav a:nth-child(4) { --c: var(--h4); } .bd-nav a:nth-child(5) { --c: var(--h5); } .bd-nav a:nth-child(6) { --c: var(--h6); } .bd-nav a:nth-child(7) { --c: var(--h7); }
.bd-nav a:hover {
  color: #fff; transform: translateY(-2px);
  background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c));
  border-color: var(--c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 5px 0 color-mix(in srgb, var(--c) 60%, #000), 0 14px 20px -8px color-mix(in srgb, var(--c) 70%, transparent);
}
.bd-nav a:active { transform: translateY(2px); box-shadow: inset 0 2px 5px rgba(0,0,0,.3), 0 1px 0 color-mix(in srgb, var(--c) 60%, #000); }
.bd-nav a.current {
  color: #fff; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 70%, #fff), var(--c)); border-color: var(--c);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 color-mix(in srgb, var(--c) 60%, #000), 0 10px 18px -8px color-mix(in srgb, var(--c) 70%, transparent);
}
.bd-nav a.is-tools { background: linear-gradient(135deg, var(--h4), var(--h5) 60%, var(--h3)); color: #fff; border-color: transparent; box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 3px 0 #6e2b4c, 0 10px 18px -8px rgba(184,86,111,.6); }
.bd-nav a.is-tools:hover { filter: brightness(1.08); }

.bd-search { background: var(--bd-surface); box-shadow: inset 0 2px 4px rgba(20,50,42,.08), 0 1px 0 rgba(255,255,255,.6); }
.bd-mode { background: linear-gradient(180deg, var(--bd-surface), var(--bd-green-l)); box-shadow: var(--bd-lift), 0 3px 0 var(--bd-line-strong), 0 8px 12px -6px rgba(0,0,0,.25); }

.bd-subnav { background: linear-gradient(180deg, var(--bd-surface-2), var(--bd-bg)); box-shadow: inset 0 -1px 0 var(--bd-line); }
.bd-subnav a {
  padding: 6px 14px; color: var(--bd-text-2); background: var(--bd-surface); border: 1px solid var(--bd-line);
  box-shadow: var(--bd-lift), 0 2px 0 var(--bd-line-strong);
}
.bd-subnav a:hover, .bd-subnav a[aria-current] {
  color: #fff; border-color: var(--bd-green); background: linear-gradient(180deg, color-mix(in srgb, var(--bd-green) 75%, #fff), var(--bd-green));
  transform: translateY(-1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 3px 0 var(--bd-green-d), 0 8px 12px -6px color-mix(in srgb, var(--bd-green) 70%, transparent);
}
html.theme-bodinamika[data-mode="dark"] .bd-nav a, html.theme-bodinamika[data-mode="dark"] .bd-subnav a:not(:hover):not([aria-current]) { color: var(--bd-text); }

/* Кнопки */
.bd-btn, .bd-body .bd-btn {
  background: linear-gradient(180deg, color-mix(in srgb, var(--bd-green) 70%, #fff), var(--bd-green) 55%, var(--bd-green-d));
  border-color: var(--bd-green-d);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), 0 4px 0 color-mix(in srgb, var(--bd-green-d) 80%, #000), 0 14px 22px -10px color-mix(in srgb, var(--bd-green) 80%, #000);
}
.bd-btn:hover, .bd-body .bd-btn:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 6px 0 color-mix(in srgb, var(--bd-green-d) 80%, #000), 0 20px 26px -12px color-mix(in srgb, var(--bd-green) 80%, #000); }
.bd-btn:active, .bd-body .bd-btn:active { transform: translateY(3px); box-shadow: inset 0 2px 6px rgba(0,0,0,.3), 0 1px 0 var(--bd-green-d); }
.bd-btn.ghost, .bd-body .bd-btn.ghost { background: linear-gradient(180deg, var(--bd-surface), var(--bd-green-l)); border-color: var(--bd-line-strong); box-shadow: var(--bd-lift), 0 4px 0 var(--bd-line-strong), 0 12px 18px -10px rgba(0,0,0,.3); }
.bd-btn.light, .bd-body .bd-btn.light { background: linear-gradient(180deg, #fff, #e4f1ea); box-shadow: 0 4px 0 rgba(0,0,0,.25), 0 14px 22px -10px rgba(0,0,0,.5); }

/* Карточки: цветной объёмный значок и градиентная подложка */
.bd-card {
  background: linear-gradient(160deg, var(--bd-surface) 55%, color-mix(in srgb, var(--cc, var(--bd-green)) 9%, var(--bd-surface)));
  box-shadow: var(--bd-lift), 0 1px 2px rgba(22,52,44,.06), 0 18px 32px -20px color-mix(in srgb, var(--cc, var(--bd-green)) 55%, transparent);
}
.bd-grid > *:nth-child(7n+1) .bd-card, .bd-grid > .bd-card:nth-child(7n+1) { --cc: var(--h1); }
.bd-grid > *:nth-child(7n+2) .bd-card, .bd-grid > .bd-card:nth-child(7n+2) { --cc: var(--h2); }
.bd-grid > *:nth-child(7n+3) .bd-card, .bd-grid > .bd-card:nth-child(7n+3) { --cc: var(--h3); }
.bd-grid > *:nth-child(7n+4) .bd-card, .bd-grid > .bd-card:nth-child(7n+4) { --cc: var(--h4); }
.bd-grid > *:nth-child(7n+5) .bd-card, .bd-grid > .bd-card:nth-child(7n+5) { --cc: var(--h5); }
.bd-grid > *:nth-child(7n+6) .bd-card, .bd-grid > .bd-card:nth-child(7n+6) { --cc: var(--h6); }
.bd-grid > *:nth-child(7n) .bd-card, .bd-grid > .bd-card:nth-child(7n) { --cc: var(--h7); }
.bd-card::after { background: linear-gradient(90deg, var(--cc, var(--bd-green)), color-mix(in srgb, var(--cc, var(--bd-green)) 40%, var(--bd-sand))); }
.bd-card-top { color: var(--cc, var(--bd-green)); }
.bd-card-top b {
  width: 36px; height: 36px; color: #fff; background: linear-gradient(145deg, color-mix(in srgb, var(--cc, var(--bd-green)) 65%, #fff), var(--cc, var(--bd-green)));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.5), inset 0 -3px 5px rgba(0,0,0,.18), 0 6px 12px -4px color-mix(in srgb, var(--cc, var(--bd-green)) 70%, transparent);
}
.bd-card:hover .bd-card-top b { background: linear-gradient(145deg, color-mix(in srgb, var(--cc, var(--bd-green)) 65%, #fff), var(--cc, var(--bd-green))); color: #fff; }
.bd-card:hover { box-shadow: var(--bd-lift), 0 2px 4px rgba(22,52,44,.06), 0 30px 44px -22px color-mix(in srgb, var(--cc, var(--bd-green)) 65%, transparent); }

.bd-hero { background: radial-gradient(800px 460px at 6% 0, color-mix(in srgb, var(--h2) 14%, transparent), transparent 70%), radial-gradient(700px 420px at 60% 100%, color-mix(in srgb, var(--h4) 12%, transparent), transparent 70%), linear-gradient(180deg, var(--bd-green-xl), var(--bd-bg)); }
.bd-hero-graphic::before, .bd-hero-graphic::after { content: ""; position: absolute; border-radius: 50%; z-index: -1; }
.bd-hero-graphic::before { width: 220px; height: 220px; right: -50px; top: -50px; background: radial-gradient(circle at 32% 30%, #fff8, transparent 60%), linear-gradient(145deg, var(--h4), var(--h5)); opacity: .55; filter: blur(2px); }
.bd-hero-graphic::after { width: 260px; height: 260px; left: -70px; bottom: -80px; background: radial-gradient(circle at 32% 30%, #fff6, transparent 60%), linear-gradient(145deg, var(--h2), var(--h3)); opacity: .5; }
.bd-caption { background: linear-gradient(180deg, rgba(255,255,255,.28), rgba(12,54,45,.5)); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 10px 20px -8px rgba(0,0,0,.4); }
.bd-statline { background: linear-gradient(180deg, var(--bd-surface), var(--bd-green-xl)); box-shadow: 0 10px 24px -20px rgba(0,0,0,.4); }
.bd-statline strong { background: linear-gradient(135deg, var(--bd-green), var(--h2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.bd-dark-band { background: radial-gradient(700px 300px at 90% 0, color-mix(in srgb, var(--h3) 40%, transparent), transparent), radial-gradient(600px 300px at 0 100%, color-mix(in srgb, var(--h2) 35%, transparent), transparent), var(--bd-ink); }
.bd-rich, .bd-article, .bd-soft-panel, .bd-filter { box-shadow: var(--bd-lift), 0 1px 2px rgba(22,52,44,.05), 0 22px 36px -24px rgba(22,52,44,.35); }

@media (max-width: 1020px) {
  .bd-nav { background: linear-gradient(180deg, var(--bd-surface), var(--bd-green-xl)); }
  .bd-nav a { padding: 13px 16px; }
}

/* Шапка: не вылезает за экран на средних ширинах */
.bd-header-inner { padding: 0 clamp(14px, 2.2vw, 36px); gap: clamp(10px, 1.4vw, 22px); }
.bd-nav { min-width: 0; gap: 6px; }
.bd-nav a { padding: 9px 13px; font-size: 13.5px; }
.bd-search { width: clamp(165px, 13vw, 220px); }
.bd-brand { font-size: 20px; }
@media (max-width: 1320px) { .bd-nav a { padding: 8px 10px; font-size: 13px; } .bd-brand small { display: none; } }
@media (max-width: 1180px) {
  .bd-body .bd-menu-toggle { display: block; position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .bd-body .bd-menu-button { display: flex; flex-direction: column; justify-content: center; gap: 5px; cursor: pointer; padding: 10px; order: 3; width: 44px; height: 44px; border-radius: 50%; }
  .bd-menu-button:hover { background: var(--bd-green-l); }
  .bd-menu-button span { width: 22px; height: 2px; border-radius: 2px; background: var(--bd-green); transition: transform .25s, opacity .25s; }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(2) { opacity: 0; }
  .bd-menu-toggle:checked ~ .bd-menu-button span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .bd-nav { display: none; position: absolute; top: calc(100% + 1px); left: 12px; right: 12px; flex-direction: column; align-items: stretch; gap: 8px; padding: 12px; background: linear-gradient(180deg, var(--bd-surface), var(--bd-green-xl)); border: 1px solid var(--bd-line); border-radius: 18px; box-shadow: var(--bd-shadow-lg); }
  .bd-nav a { font-size: 16px; padding: 13px 16px; }
  .bd-menu-toggle:checked ~ .bd-nav { display: flex; }
  .bd-head-tools { margin-left: auto; }
  .bd-brand small { display: inline; }
}

@media (max-width: 680px) {
  .bd-brand small { display: none; }
  .bd-brand { font-size: 18px; }
  .bd-header-inner { padding: 0 12px; gap: 6px; }
  .bd-head-tools { gap: 6px; }
  .bd-mode, .bd-search { width: 40px; height: 40px; }
  .bd-body .bd-menu-button { width: 40px; height: 40px; padding: 9px; }
  .bd-nav { left: 8px; right: 8px; }
}

/* ── Интервалы и ширина на больших экранах ── */
/* Секции внутри страницы уже ограничены контейнером: двойной боковой отступ не нужен */
.bd-page .bd-section { padding: 48px clamp(22px, 3vw, 44px); margin: 56px 0 8px; border-radius: 26px; }
.bd-page .bd-light-section { border: 1px solid var(--bd-line); }
.bd-page .bd-section:last-child { margin-bottom: 0; }
@media (min-width: 1500px) { .bd-page .bd-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; } }
@media (max-width: 1020px) { .bd-page .bd-section { padding: 32px 20px; margin-top: 40px; border-radius: 20px; } }
/* Списки тренажёров и курсов: воздух между карточками и кнопками */
.bd-page .tt-test-list, .bd-page .learn-grid { display: grid; gap: 22px; margin: 28px 0 36px; }
.bd-page .tt-test-card, .bd-page .learn-panel { margin: 0; padding: 26px 30px; }
.bd-page .tt-test-list + p, .bd-page .learn-grid + p { margin-top: 8px; padding-top: 4px; }
.bd-page .learn-lessons { display: grid; gap: 18px; margin: 28px 0 36px; padding-left: 0; list-style: none; }
.bd-page .learn-lessons > li { margin: 0; }
.bd-page .learn-progress { margin: 22px 0 26px; }
.bd-page .tt-question { margin: 24px 0; padding: 22px 26px; }
.bd-page .tt-option { margin: 12px 0; padding: 14px 18px; }
.bd-page fieldset + button, .bd-page form > button { margin-top: 6px; }
.bd-page h1 + p { margin-bottom: 22px; }

/* Кнопки плагинов (обучение, тренажёры): читаемый текст на заливке */
html.theme-bodinamika a.btn:not(.secondary),
html.theme-bodinamika .page-content a.btn:not(.secondary){color:#fff !important;text-decoration:none}
html.theme-bodinamika a.btn.secondary{color:var(--bd-green)}

/* Кнопки отправки форм плагинов (обучение, тренажёры) */
html.theme-bodinamika .bd-main form > button:not([class]),
html.theme-bodinamika .bd-main form button[type=submit]:not([class]){
  display:inline-flex;justify-content:center;align-items:center;margin-top:14px;padding:12px 24px;border-radius:999px;
  border:1.5px solid var(--bd-green);background:var(--bd-green);color:var(--bd-on-accent);font:700 14px/1.3 var(--bd-sans);cursor:pointer;
  transition:transform .2s var(--bd-ease),box-shadow .2s;}
html.theme-bodinamika .bd-main form > button:not([class]):hover{transform:translateY(-2px);box-shadow:0 10px 22px -10px color-mix(in srgb,var(--bd-green) 80%,#000)}

/* v11: слова в карточках и сетках не дробятся на широких экранах */
@media (min-width: 700px) {
  .bd-main, .bd-main * { word-break: normal; hyphens: manual; }
  .bd-main [class*="card"], .bd-main [class*="tile"], .bd-main [class*="stat"], .bd-main [class*="grid"] > * { overflow-wrap: normal; min-width: min-content; }
}

/* v11: удобные зоны нажатия на сенсорных экранах */
@media (pointer: coarse), (max-width: 700px) {
  footer a, .bd-footer a, .bd-nav a { min-height: 32px; display: inline-flex; align-items: center; padding-block: 4px; }
}

/* v12: кнопка и оформление для сохранения в PDF */
.bd-pdf-btn { margin-left: auto; font: 600 13px/1 inherit; font-family: inherit; padding: 9px 14px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--accent, #19695f) 35%, transparent); background: color-mix(in srgb, var(--accent, #19695f) 8%, transparent); color: var(--accent, #19695f); cursor: pointer; }
.bd-pdf-btn:hover { background: color-mix(in srgb, var(--accent, #19695f) 16%, transparent); }
.bd-print-head, .bd-print-foot { display: none; }
@media print {
  @page { margin: 16mm 14mm 18mm; }
  .bd-print-head { display: flex !important; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding: 0 0 10px; margin: 0 0 14px; border-bottom: 2px solid #19695f; font: 12px/1.4 system-ui, sans-serif; color: #333; }
  .bd-print-head b { font-size: 15px; color: #19695f; }
  .bd-print-head span { word-break: break-all; }
  .bd-print-head i { margin-left: auto; font-style: normal; color: #666; }
  .bd-print-foot { display: block !important; position: fixed; bottom: 0; left: 0; right: 0; font: 10px/1.3 system-ui, sans-serif; color: #555; border-top: 1px solid #bbb; padding-top: 4px; }
  .bd-pdf-btn, .bd-databar, .bd-toast, .bd-skip, .skip-link, .bd-theme-toggle, nav, .bd-breadcrumbs { display: none !important; }
  .bd-tool .bd-tbtn, .bd-tool button.ghost, .bd-tool .bd-seg button:not(.on) { display: none !important; }
  .bd-tool-grid .bd-controls { display: block !important; }
  .bd-tool-grid { display: block !important; }
  .bd-tool input, .bd-tool textarea, .bd-tool select { border: 1px solid #bbb !important; background: #fff !important; box-shadow: none !important; }
  .bd-tool, .bd-tool-wrap, .bd-detail, .bd-stage, .bd-controls { box-shadow: none !important; background: #fff !important; color: #111 !important; border-color: #ddd !important; }
  a { color: #111; text-decoration: underline; }
  h1, h2, h3 { break-after: avoid; }
  .bd-goal, .bd-habit, .bd-crit, li { break-inside: avoid; }
}

/* v14: карточки тестов и учебные панели — не больше трёх столбцов, без наложений */
body.bd-body .tt-test-list, body.bd-body .learn-grid { grid-template-columns: 1fr; }
body.bd-body .tt-test-card, body.bd-body .learn-panel { min-width: 0; padding: 20px 24px; overflow-wrap: break-word; hyphens: auto; }
body.bd-body .tt-test-card h2, body.bd-body .tt-test-card h3 { font-size: clamp(1.25rem, 1.1rem + .5vw, 1.6rem); line-height: 1.2; margin: 0 0 8px; overflow-wrap: break-word; }
@media (min-width: 760px) { body.bd-body .tt-test-list, body.bd-body .learn-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { body.bd-body .tt-test-list, body.bd-body .learn-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* v15: компактная шапка главной (в 3 раза ниже) */
body.bd-body .bd-hero { min-height: 0; grid-template-columns: minmax(0, 1.5fr) minmax(0, .5fr); }
body.bd-body .bd-hero-copy { padding: 28px clamp(20px, 4vw, 56px) 28px var(--bd-gutter); }
body.bd-body .bd-hero h1 { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.08; margin: 10px 0 12px; text-wrap: balance; }
body.bd-body .bd-hero-copy > p { margin: 0 0 16px; font-size: 16px; line-height: 1.55; max-width: 720px; }
body.bd-body .bd-hero-copy .bd-hero-foot { margin: 12px 0 0; }
body.bd-body .bd-hero-graphic { min-height: 0; max-height: 100%; }
body.bd-body .bd-hero-graphic > * { transform: scale(.55); transform-origin: center; }
@media (max-width: 900px) {
  body.bd-body .bd-hero { grid-template-columns: 1fr; }
  body.bd-body .bd-hero-copy { padding: 26px 20px 24px; }
  body.bd-body .bd-hero h1 { font-size: clamp(30px, 8vw, 40px); }
  body.bd-body .bd-hero-graphic { display: none; }
}
body.bd-body .bd-hero { grid-template-columns: minmax(0, 1.7fr) minmax(0, .3fr); }
body.bd-body .bd-hero-copy { padding-top: 18px; padding-bottom: 18px; }
body.bd-body .bd-hero h1 { font-size: clamp(28px, 2.8vw, 42px); margin: 6px 0 8px; }
body.bd-body .bd-hero h1 em { display: inline; margin-left: .25em; }
body.bd-body .bd-hero h1 br { display: none; }
body.bd-body .bd-hero-copy > p { max-width: 900px; margin: 0 0 12px; font-size: 15.5px; line-height: 1.5; }
body.bd-body .bd-hero-copy .bd-hero-foot { margin: 8px 0 0; font-size: 12.5px; }
body.bd-body .bd-hero-graphic > * { transform: scale(.4); }
