/* =====================================================
   MTB · Общие элементы (TopNav, Authorship Strip, Footer, Breadcrumb)
   ===================================================== */

@import url('tokens.css');

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg-warm);
  color: var(--text-dark);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { text-decoration: none; color: inherit; }

.container { max-width: 1240px; margin: 0 auto; padding: 0 32px; position: relative; }
.container-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }
.container-text { max-width: 720px; margin: 0 auto; padding: 0 32px; }

/* ---------- AUTHORSHIP STRIP ---------- */
.authorship-strip {
  background: var(--bg-cream);
  border-bottom: 1px solid var(--border);
  padding: 6px 32px;
  text-align: center;
  font-size: 11px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}
.authorship-strip b { color: var(--accent); font-weight: 500; }
.authorship-strip .sep { margin: 0 10px; color: var(--border); }

/* ---------- TOPNAV ---------- */
.topnav {
  position: sticky; top: 0; z-index: 30;
  background: rgba(245, 241, 236, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.topnav__inner {
  max-width: 1320px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 22px;
}
.topnav__brand {
  display: flex; align-items: center; gap: 14px;
  color: var(--text-dark); flex-shrink: 0;
}
.topnav__mark {
  width: 30px; height: 30px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent);
}
.topnav__mark svg { width: 30px; height: 30px; display: block; }
.topnav__brand-text { line-height: 1; }
.topnav__brand-name {
  display: inline-flex; align-items: baseline; gap: 7px;
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 22px; letter-spacing: -0.3px;
}
/* Бренд-тег: используется только на детском сайте (МТБ·Дети). На взрослом разметки нет — правило не отрисовывается. Держим в общем chrome.css ради синка. */
.topnav__brand-tag {
  font-family: var(--font-body); font-style: normal; font-weight: 600;
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase;
  color: var(--accent-dark); background: var(--accent-soft);
  border: 1px solid var(--accent-line); border-radius: var(--radius-xs);
  padding: 3px 8px; line-height: 1; transform: translateY(-1px);
}
.topnav__brand-sub {
  display: block; margin-top: 3px;
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-muted); font-weight: 500;
}
.topnav__links { display: flex; flex-wrap: nowrap; gap: 22px; font-size: 14px; color: var(--text-muted); font-weight: 400; }
.topnav__links a {
  color: inherit; padding: 4px 0; white-space: nowrap;
  border-bottom: 1px solid transparent;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.topnav__links a:hover, .topnav__links a.active { color: var(--accent); border-bottom-color: var(--accent); }
.topnav__search {
  background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius-sm);
  height: 40px; padding: 0 11px 0 13px; cursor: pointer; color: var(--text-muted);
  display: flex; align-items: center; gap: 9px; width: 190px;
  transition: border-color 0.2s, color 0.2s;
  font-family: var(--font-body); font-size: 13px;
}
.topnav__search svg { width:16px; height:16px; flex:none; color:var(--accent); }
.topnav__search-label { flex:1; min-width:0; text-align:left; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.topnav__search-kbd { flex:none; font-family:var(--font-number); font-size:11px; letter-spacing:.5px; color:var(--text-muted); border:1px solid var(--border); border-radius:4px; padding:2px 7px; background:var(--bg-cream); }
.topnav__search:hover { border-color: var(--accent); color: var(--text-dark); }
.topnav__right { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.topnav__cta {
  display: inline-flex; align-items: center; height: 40px;
  padding: 0 18px;
  border: 1px solid var(--accent-cta); border-radius: var(--radius-sm);
  color: #fff; background: var(--accent-cta);
  font-family: var(--font-body); font-size: 13px; font-weight: 500; line-height: 1.2;
  letter-spacing: 0.3px; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.topnav__cta:hover { background: var(--accent-cta-hover); border-color: var(--accent-cta-hover); color: #fff; }
.topnav__cta-short { display: none; }
.topnav__sibling {
  display: inline-flex; align-items: center; height: 40px;
  padding: 0 16px;
  border: 1px solid var(--accent-line); border-radius: var(--radius-sm);
  color: var(--accent-dark); background: var(--accent-soft);
  font-family: var(--font-body); font-size: 13px; font-weight: 600; line-height: 1.2;
  letter-spacing: 0.2px; text-decoration: none; white-space: nowrap;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.topnav__sibling:hover { background: var(--accent); border-color: var(--accent); color: var(--surface); }
.topnav__sibling-mtb { letter-spacing: 0.8px; }
.topnav__sibling-dot { margin: 0 1px; opacity: 0.6; }

/* ---------- BREADCRUMB ---------- */
.breadcrumb {
  display: flex; gap: 12px; align-items: center; flex-wrap: wrap;
  font-size: 12.5px; color: var(--text-muted);
  padding: 24px 0 8px;
  letter-spacing: 0.2px;
}
.breadcrumb a {
  color: var(--text-muted);
  border-bottom: 1px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}
.breadcrumb a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.breadcrumb__sep { color: var(--text-light); font-size: 13px; }
.breadcrumb__current { color: var(--accent-dark); font-weight: 600; }

/* ---------- DISCLAIMER ---------- */
.disclaimer {
  background: var(--surface);
  border-left: 3px solid var(--accent);
  border-top: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-muted);
  border-radius: 0 4px 4px 0;
}
.disclaimer b { color: var(--text-dark); font-weight: 500; }

/* ---------- BUTTONS ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-body); font-weight: 500; font-size: 15px;
  cursor: pointer; border-radius: 4px;
  transition: all 0.2s ease;
  text-decoration: none; letter-spacing: 0.3px;
  border: 1px solid transparent;
}
.btn-primary { background: #A8651F; color: white; border-color: #A8651F; padding: 13px 28px; /* WCAG AA 4.61:1 — затемнённая охра локально, --accent не трогаем */ }

/* ---------- A11Y — карточки (inset вместо outline, не ломает grid) + skip-link ---------- */
.tcard:focus-visible, .ftile:focus-visible {
  box-shadow: inset 0 0 0 2px var(--accent);
  outline: none;
}
.skip-link { position: absolute; left: -9999px; top: -9999px; }
.skip-link:focus {
  position: fixed; left: 16px; top: 16px; z-index: 1000;
  background: #A8651F;  /* WCAG AA white 4.62:1 (тот же тон что .btn-primary) */
  color: white; padding: 12px 20px; border-radius: 4px;
  text-decoration: none; font-weight: 600;
}
.btn-primary:hover { background: #874E14; border-color: #874E14; color: white; /* заметно темнее базы #A8651F (иначе hover сливался) · white ~6.7:1 */ }
.btn-secondary {
  background: transparent; color: var(--text-dark);
  border-color: var(--border); padding: 12px 26px;
}
.btn-secondary:hover { border-color: var(--accent); color: var(--accent); }
.btn.is-copied, .btn-secondary.is-copied { color: var(--do-green, #5A9A6E); border-color: var(--do-green, #5A9A6E); background: rgba(90,154,110,.08); }
.btn-ghost {
  background: transparent; color: var(--text-muted);
  border-color: transparent; padding: 8px 14px;
  font-size: 13px;
}
.btn-ghost:hover { color: var(--accent); }

/* Кнопка — охра-рамка + охра-текст, hover = заливка */
.btn-accent-outline {
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.9em 1.8em;
  border: 1.5px solid var(--accent);
  color: var(--accent);
  background: transparent;
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: var(--ls-overline);
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--dur-fast) ease;
  white-space: nowrap;
}
.btn-accent-outline:hover {
  background: var(--accent);
  color: var(--surface);
}

/* ---------- THERAPY CTA (общий блок методики — перед футером на всех страницах) ---------- */
.therapy-cta { background: var(--bg-cream); padding: 80px 0; border-top: 1px solid var(--border); }
.therapy-cta-card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 56px;
  padding: 52px 60px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-card); }
.therapy-cta-eyebrow { font-family: var(--font-heading); font-weight: 700; font-size: 13px; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.therapy-cta-title { font-family: var(--font-body); font-weight: 500; font-size: 36px; line-height: 1.12;
  letter-spacing: -0.5px; color: var(--text-dark); margin: 0 0 18px; text-wrap: pretty; }
.therapy-cta-title em { font-family: var(--font-serif); font-style: italic; color: var(--accent); font-weight: 500; }
.therapy-cta-sub { font: 400 16px/1.65 var(--font-body); color: var(--text-muted); margin: 0 0 12px; max-width: 600px; }
.therapy-cta-sub:last-child { margin-bottom: 0; }
.therapy-cta-action { display: flex; flex-direction: column; gap: 12px; min-width: 248px; }
.therapy-cta-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 16px 26px;
  border-radius: var(--radius-sm); font-family: var(--font-heading); font-weight: 600; font-size: 15px; letter-spacing: 0.4px;
  white-space: nowrap; text-decoration: none; transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.therapy-cta-btn svg { flex: none; transition: transform var(--dur) var(--ease); }
.therapy-cta-btn.primary { background: var(--accent); color: #fff; border: 1.5px solid var(--accent); }
.therapy-cta-btn.primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.therapy-cta-btn.primary:hover svg { transform: translateX(4px); }
.therapy-cta-btn.tg { background: transparent; color: var(--accent); border: 1.5px solid var(--border-accent); }
.therapy-cta-btn.tg:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-dark); }
.therapy-cta-btn.tg:hover svg { transform: translateX(2px); }
@media (max-width: 820px) {
  .therapy-cta { padding: 56px 0; }
  .therapy-cta-card { grid-template-columns: 1fr; padding: 36px 28px; gap: 26px; }
  .therapy-cta-title { font-size: 28px; }
  .therapy-cta-action { width: 100%; min-width: 0; }
  .therapy-cta-btn { width: 100%; }
}
@media (max-width: 560px) { .therapy-cta-title { font-size: 24px; } }

/* ---------- CHIPS ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  font-size: 11px; font-weight: 500; letter-spacing: 0.3px;
  border-radius: 3px;
  white-space: nowrap;
}
.chip-accent { background: var(--accent); color: white; }
.chip-primary { background: var(--accent-soft); color: var(--accent-dark); }
.chip-neutral { background: transparent; color: var(--text-muted); border: 1px solid var(--border); }
.chip-link { cursor: pointer; transition: all 0.2s ease; }
.chip-link:hover { background: var(--accent); color: white; border-color: var(--accent); }
.chip-uppercase { text-transform: uppercase; letter-spacing: 1.5px; }

/* ---------- OVERLINE ---------- */
.overline {
  font-family: var(--font-body); font-weight: 500; font-size: 11px;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--accent);
  display: block;
}
.overline-muted { color: var(--text-muted); }

/* ---------- INDICATORS ---------- */
.indicator-row {
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.impact-dots { display: flex; gap: 4px; }
.impact-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); }
.impact-dot.on { background: var(--accent); }

.level-dots { display: flex; gap: 5px; }
.level-dot {
  width: 8px; height: 8px; border-radius: 50%;
  border: 1px solid var(--border); background: transparent;
}
.level-dot.on { background: var(--accent); border-color: var(--accent); }

/* ---------- FOOTER ---------- */
.footer { background: var(--bg-dark); color: var(--text-muted-dark); padding: 72px 0 32px; margin-top: 120px; }
.footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 56px; margin-bottom: 48px; }
.footer__brand {
  font-family: var(--font-serif); font-style: italic; font-weight: 500;
  font-size: 28px; color: var(--text-light); margin-bottom: 16px;
}
.footer__desc { font-size: 14px; color: var(--text-muted-dark); line-height: 1.6; max-width: 380px; margin-bottom: 18px; }
.footer__copy {
  font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--accent); font-weight: 500;
}
.footer__col h4 { font-weight: 500; font-size: 11px; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 22px; }
.footer__col a {
  display: block; font-size: 14px; color: var(--text-muted-dark);
  text-decoration: none; margin-bottom: 12px; transition: color 0.2s;
  border-bottom: 1px solid transparent; padding-bottom: 2px;
  width: fit-content;
}
.footer__col a:hover { color: var(--accent); border-bottom-color: var(--accent); }
.footer__bottom {
  padding-top: 28px; border-top: 1px solid rgba(245,241,236,0.1);
  font-size: 12px; color: var(--text-muted-dark);
  display: flex; justify-content: space-between; gap: 24px;
  letter-spacing: 0.5px;
}

/* Switcher («МТБ·Дети/Взрослые») и тег «Дети» делают детскую шапку плотнее.
   Чтобы 6 пунктов меню держались в ОДНУ строку, в полосе 1061–1260px поиск
   ужимается до иконки и CTA — до короткой формы («Терапия»), что освобождает
   ~250px; ниже 1060px меню скрывается — навигация уходит в поиск ⌘K. */
@media (max-width: 1260px) {
  .topnav__inner { gap: 18px; }
  .topnav__links { gap: 16px; }
  .topnav__search { width: auto; padding: 0 11px; }
  .topnav__search-label, .topnav__search-kbd { display: none; }
  .topnav__cta-full { display: none; }
  .topnav__cta-short { display: inline; }
}

/* Бургер + drawer для внутренних страниц (паритет с главной, июнь 2026) */
.topnav__burger { display: none; width: 40px; height: 40px; padding: 0; flex-direction: column; align-items: center; justify-content: center; gap: 5px; background: var(--surface); border: 1px solid var(--border-accent); border-radius: var(--radius-sm); cursor: pointer; flex-shrink: 0; }
.topnav__burger span { display: block; width: 16px; height: 2px; background: var(--text-dark); transition: transform 0.2s ease, opacity 0.2s ease; }
.topnav__burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.topnav__burger.is-open span:nth-child(2) { opacity: 0; }
.topnav__burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.topnav__drawer { display: none; background: var(--bg-cream); border-top: 1px solid var(--border); padding: 2px 16px 8px; }
.topnav__drawer.open { display: block; }
.topnav__drawer a { display: block; padding: 14px 0; font-family: var(--font-body); font-size: 16px; color: var(--text-dark); text-decoration: none; border-bottom: 1px solid var(--border); }
.topnav__drawer a:last-child { border-bottom: 0; }
.topnav__drawer a.active { color: var(--accent); }
.topnav__drawer-x { color: var(--accent-dark); font-weight: 600; }

@media (max-width: 1060px) {
  .topnav__links { display: none; }
  .topnav__burger { display: flex; }
}

@media (max-width: 900px) {
  .topnav__links { display: none; }
  .topnav__cta-full { display: none; }
  .topnav__cta-short { display: inline; }
  .topnav__brand-sub { display: none; }
  .topnav__search { width: auto; padding: 0 11px; }
  .topnav__search-label, .topnav__search-kbd { display: none; }
  .footer__grid { grid-template-columns: 1fr; gap: 32px; }
  .footer__bottom { flex-direction: column; gap: 12px; }
  /* Тап-цели ≥44px (Apple HIG / Google) — 12.2.C */
  .topnav__brand { min-height: 44px; padding-top: 4px; padding-bottom: 4px; }
  .topnav__cta { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .topnav__search { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
  .topnav__sibling { min-height: 44px; padding-top: 11px; padding-bottom: 11px; }
}

/* Тап-цели breadcrumb на mobile (12.2.C) */
@media (max-width: 640px) {
  /* Компактная шапка: переключатель → «Взрослые», уже паддинги (mobile-QA июнь 2026) */
  .topnav__inner { padding-left: 12px; padding-right: 12px; gap: 8px; }
  .topnav__sibling-mtb, .topnav__sibling-dot { display: none; }
  .topnav__sibling, .topnav__cta { display: none; }
  .breadcrumb a {
    padding: 8px 4px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
  }
}

/* === TARGET CARD COMPONENT ===================================
   Унифицированный компонент карточки мишени.
   Используется на: cluster-A раздел 02 (--listing), target-v7 раздел 05 (--combo).
   План миграции:
     ✅ Этап 1 (заход 9.5): cluster-A + target-v7
     ⏳ Этап 2 (заход 10.1): 6 новых кластеров + 31 страница мишеней
     ⏳ Этап 3 (после 10): targets.html на .tcard, удалить .target-tile/.combo-item
   ============================================================= */

.tcard {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  transition: all 0.2s;
  display: flex;
  flex-direction: column;
  position: relative;
  text-decoration: none;
  color: inherit;
}
.tcard.flagship { border-color: var(--accent); }

/* Variant: --listing (точная копия .target-tile) */
.tcard--listing {
  padding: 24px 26px;
  gap: 12px;
  min-height: 168px;
  cursor: pointer;
}
.tcard--listing:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-hover);
}
.tcard--listing .tcard__head { display: flex; align-items: center; gap: 14px; }
.tcard--listing .tcard__code {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px;
  background: var(--accent-soft); color: var(--accent-dark);
  border-radius: 50%;
  font-family: var(--font-number); font-weight: 900; font-size: 13px;
  letter-spacing: 0.3px;
  flex-shrink: 0;
}
.tcard--listing.flagship .tcard__code { background: var(--accent); color: white; }
.tcard--listing .tcard__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 18px; line-height: 1.2;
  color: var(--text-dark);
  letter-spacing: -0.2px;
  text-wrap: pretty;
}
.tcard--listing .tcard__stats {
  display: flex; gap: 12px; align-items: center;
  font-size: 11px; color: var(--text-muted);
  letter-spacing: 0.3px;
}
.tcard--listing .tcard__stats .sep { color: var(--border); }
.tcard--listing .tcard__bottom {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
}
.tcard--listing .tcard__flagnum { color: var(--text-muted); letter-spacing: 0.3px; }
.tcard--listing .tcard__flagnum b {
  color: var(--accent);
  font-family: var(--font-number); font-weight: 900;
  letter-spacing: 0.3px;
}
.tcard--listing .tcard__cta {
  color: var(--accent); font-size: 12px;
  letter-spacing: 1.5px; text-transform: uppercase;
}

/* Variant: --combo (точная копия .combo-item) */
.tcard--combo {
  padding: 22px 26px;
  gap: 10px;
  border-radius: 8px;
}
.tcard--combo .tcard__head {
  display: flex; align-items: baseline; gap: 10px;
}
.tcard--combo .tcard__code {
  font-family: var(--font-number); font-weight: 900;
  font-size: 13px; color: var(--accent);
  letter-spacing: 0.5px;
}
.tcard--combo .tcard__title {
  font-family: var(--font-serif); font-weight: 500;
  font-size: 19px; color: var(--text-dark);
  letter-spacing: -0.2px;
}
.tcard--combo .tcard__note {
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted);
}
.tcard--combo { transition: border-color 0.2s ease, transform 0.2s ease; }
a.tcard--combo:hover { border-color: var(--accent); transform: translateY(-2px); }
.tcard--combo .tcard__evidence {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--border);
  font-size: 11.5px; letter-spacing: 0.5px;
  color: var(--accent-dark);
}

/* === SITE SEARCH (overlay) ================================== */
.search-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31, 27, 23, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding: 12vh 20px 40px;
  animation: searchFade 0.18s var(--ease-out);
}
@keyframes searchFade { from { opacity: 0; } to { opacity: 1; } }
.search-modal {
  width: 100%;
  max-width: 680px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 30px 80px rgba(31, 27, 23, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: 72vh;
}
.search-modal__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.search-modal__icon { color: var(--accent); flex-shrink: 0; }
.search-modal__input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: var(--font-body);
  font-size: 19px;
  color: var(--text-dark);
}
.search-modal__input::placeholder { color: var(--text-muted); opacity: 0.75; }
.search-modal__close {
  flex-shrink: 0;
  border: 1px solid var(--border);
  background: var(--bg-warm);
  color: var(--text-muted);
  border-radius: var(--radius-xs);
  font-family: var(--font-body);
  font-size: 11px;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 5px 9px;
  cursor: pointer;
  transition: border-color var(--dur-fast) ease, color var(--dur-fast) ease;
}
.search-modal__close:hover { border-color: var(--accent); color: var(--accent); }
.search-results {
  overflow-y: auto;
  padding: 8px 0 12px;
}
.search-hint, .search-empty {
  padding: 28px 24px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-muted);
  text-wrap: pretty;
}
.search-empty { color: var(--text-dark); }
.search-cat { padding: 8px 0; }
.search-cat__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 10px 24px 6px;
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--accent);
}
.search-cat__head span {
  font-family: var(--font-number);
  font-weight: 900;
  color: var(--text-muted);
  letter-spacing: 0;
}
.search-result {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 24px;
  text-decoration: none;
  border-left: 2px solid transparent;
  transition: background var(--dur-fast) ease, border-color var(--dur-fast) ease;
}
.search-result:hover {
  background: var(--bg-warm);
  border-left-color: var(--accent);
}
.search-result__main {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 17px;
  color: var(--text-dark);
  letter-spacing: -0.2px;
}
.search-result__sub {
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .search-overlay { padding: 8vh 12px 24px; }
  .search-modal__input { font-size: 17px; }
}

/* ---------- Книга в футере ---------- */
.footer__book {
  display: inline-flex; align-items: center; gap: 10px;
  margin-top: 18px; padding: 10px 16px;
  border: 1px solid rgba(200, 121, 42, 0.45); border-radius: var(--radius-sm);
  color: var(--accent); text-decoration: none;
  font: 500 14px/1 var(--font-body);
  transition: border-color var(--dur), background var(--dur);
}
.footer__book:hover { border-color: var(--accent); background: rgba(200, 121, 42, 0.12); }
.footer__book-arr { transition: transform var(--dur) var(--ease-out); }
.footer__book:hover .footer__book-arr { transform: translateX(3px); }
.footer__booknote { font: var(--text-caption); color: var(--text-muted-dark); margin-top: 9px; }
