/* Beini.ru — оформление «Светлый архив»: бумажные тона, серифные заголовки, тонкие линейки */
:root {
  --paper: #eef2e9;         /* фон страницы — бумага с зеленцой */
  --surface: #ffffff;       /* полотно контента */
  --surface-2: #f7faf3;     /* мягкая подложка */
  --ink: #232a21;           /* основной текст */
  --ink-strong: #1a1f19;    /* заголовки */
  --muted: #6f7a68;         /* подписи, даты */
  --muted-2: #808a78;
  --line: #d8e0d0;          /* тонкая линейка */
  --line-2: #c2cfba;        /* линейка контрастнее */
  --rule: #232a21;          /* «жирная» типографская линейка */
  --accent: #37703c;        /* основной зелёный — ссылки, акценты */
  --accent-soft: #bcd3b6;
  --green: #37703c;
  --green-dark: #27562f;
  --green-soft: #bcd3b6;
  --green-tint: #edf4e9;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Karla', system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.65;
}
img { max-width: 100%; height: auto; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: #27562f; text-decoration: underline; }
h1, h2, h3, h4 { font-family: 'Spectral', Georgia, 'Times New Roman', serif; color: var(--ink-strong); text-wrap: balance; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

#page { max-width: 1180px; margin: 0 auto; background: var(--surface); border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, var(--green-dark) 0 62%, var(--green) 62% 100%) 1; box-shadow: 0 1px 3px rgba(30,40,28,.06), 0 12px 40px rgba(30,40,28,.07); }
.inner-wrap { max-width: 1060px; margin: 0 auto; padding: 0 26px; }

/* ---------- Верхняя служебная полоса ---------- */
.header-bar {
  background: linear-gradient(180deg, #f7faf3 0%, #eef4e9 100%);
  border-bottom: 1px solid var(--line);
  box-shadow: inset 0 -3px 0 -2px var(--accent-soft);
}
.header-bar .inner-wrap {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-top: 11px; padding-bottom: 11px;
  font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase;
}
#site-title {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Karla', sans-serif; font-size: 11.5px; font-weight: 600;
  letter-spacing: .16em; color: var(--ink-strong);
}
#site-title .mark { color: var(--accent); flex: none; }
#site-title:hover { color: var(--green-dark); text-decoration: none; }
#site-title:hover .mark { color: var(--accent); }
.hb-sep { color: var(--green-soft); font-size: 8px; letter-spacing: 0; }
#site-desc { color: var(--muted); font-weight: 400; }

.header-auth { margin-left: auto; display: flex; align-items: center; gap: 12px; letter-spacing: .14em; }
.hb-rule { width: 1px; height: 15px; background: var(--line-2); flex: none; }
.header-auth a { color: var(--muted); font-size: 11.5px; }
.header-auth a:hover { color: var(--green-dark); text-decoration: none; }
.header-auth .who { color: var(--muted-2); font-size: 11.5px; }
.header-auth .sep { color: var(--line-2); }
.header-auth .linklike { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.header-auth .linklike:hover { color: var(--accent); }

@media (max-width: 700px) {
  .hb-sep, #site-desc { display: none; }
  .header-bar .inner-wrap { gap: 10px; }
}

/* ---------- Шапка-титул ---------- */
.masthead { text-align: center; padding: 22px 26px 18px; }
.masthead .banner { display: block; max-width: 1060px; margin: 0 auto; }
.masthead .banner:hover { text-decoration: none; }
.masthead .banner img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.masthead .tagline { font-family: 'Spectral', serif; font-style: italic; font-size: 16px; color: var(--muted); margin-top: 13px; }

/* лид без картинки — в одну колонку */
.lead.lead-solo { grid-template-columns: 1fr; }
.lead.lead-solo h2 { max-width: 20ch; }
.lead.lead-solo p { max-width: 78ch; }

/* ---------- Меню ---------- */
#site-navigation { border-bottom: 2px solid var(--rule); }
#site-navigation .inner-wrap { padding: 0 26px; position: relative; }
.menu { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; }
.menu > li { position: relative; }
.menu > li > a {
  display: block; padding: 11px 15px 13px; font-size: 14.5px; color: var(--ink);
  border-bottom: 2px solid transparent; margin-bottom: -2px;
}
.menu > li > a:hover { color: var(--green-dark); border-bottom-color: var(--green-soft); text-decoration: none; }
.menu > li.current > a { color: var(--green-dark); border-bottom-color: var(--green); font-weight: 600; }
.menu .nav-tree > a { color: var(--green-dark); font-weight: 600; }
.menu .sub-menu {
  list-style: none; margin: 0; padding: 6px 0; position: absolute; left: 0; top: 100%;
  background: var(--surface); border: 1px solid var(--line); min-width: 200px;
  box-shadow: 0 6px 18px rgba(30,40,28,.12); display: none; z-index: 30;
}
.menu li.has-sub:hover .sub-menu { display: block; }
.menu .sub-menu a { display: block; padding: 9px 16px; color: var(--ink); font-size: 14.5px; }
.menu .sub-menu a:hover { background: var(--green-tint); color: var(--green-dark); text-decoration: none; }
/* Подменю со свежими записями — заголовки статей длиннее рубрик */
.menu .sub-menu.sub-wide { min-width: 290px; max-width: 360px; }
.menu .sub-menu.sub-wide a { white-space: normal; line-height: 1.35; }
.menu .sub-menu .sub-more { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 2px; }
.menu .sub-menu .sub-more a { color: var(--green-dark); font-weight: 600; }
.menu-toggle { display: none; }

/* ---------- Раскладка ---------- */
#content { padding: 34px 26px 46px; }
#content::after { content: ''; display: block; clear: both; }
/* Одна колонка во всю ширину: боковая колонка убрана, её ссылки — в меню шапки */
#primary { float: none; width: 100%; }
#content.full { max-width: 100%; padding: 0; }
#content.wide #primary { float: none; width: 100%; }
body.is-tree #content { padding: 0; }

/* ---------- Главная: ведущий материал ---------- */
.lead {
  display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px;
  padding-bottom: 34px; border-bottom: 1px solid var(--line); align-items: start;
}
.lead .eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
.lead h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 600; line-height: 1.16; margin: 0 0 14px; }
.lead h2 a { color: var(--ink-strong); }
.lead h2 a:hover { color: var(--accent); text-decoration: none; }
.lead p { margin: 0 0 14px; color: #3d463a; font-size: 16.5px; }
.lead .more { font-family: 'Spectral', serif; font-style: italic; font-size: 16px; border-bottom: 1px solid var(--accent-soft); padding-bottom: 2px; }
.lead figure { margin: 0; }
.lead figure img { display: block; width: 100%; border: 1px solid var(--line); filter: saturate(.96); }
.lead figcaption { font-family: 'Spectral', serif; font-style: italic; font-size: 13px; color: var(--muted); margin-top: 9px; }

/* ---------- Главная: колонки записей ---------- */
.columns { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.columns > article { padding: 28px 26px; border-right: 1px solid var(--line); }
.columns > article:first-child { padding-left: 0; }
.columns > article:last-child { border-right: none; padding-right: 0; }
.columns h3 { font-size: 21px; font-weight: 600; margin: 0 0 9px; line-height: 1.25; }
.columns h3 a { color: var(--ink-strong); }
.columns h3 a:hover { color: var(--accent); text-decoration: none; }
.columns p { margin: 0; font-size: 15px; color: #4b5546; }
.col-date { font-size: 12px; letter-spacing: .08em; color: var(--muted-2); margin-bottom: 9px; }

/* ---------- Главная: нижняя полоса ---------- */
.home-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; padding-top: 34px; }
.tree-card { border: 1px solid var(--green-soft); background: var(--green-tint); padding: 30px; }
.tree-card .eyebrow { font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 11px; }
.tree-card h3 { font-size: 27px; font-weight: 600; margin: 0 0 11px; }
.tree-card p { font-size: 15px; color: #4b5546; margin: 0 0 20px; }
.surnames h3 { font-size: 19px; font-weight: 500; margin: 0 0 14px; padding-bottom: 12px; border-bottom: 2px solid var(--green-soft); }
.surnames ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px 24px; font-size: 15px; color: #3d463a; }
.surnames .count { font-family: 'Spectral', serif; font-style: italic; font-size: 14px; color: var(--muted); margin-top: 18px; }

/* ---------- Записи и страницы ---------- */
.hentry { padding-bottom: 26px; margin-bottom: 26px; border-bottom: 1px solid var(--line); }
.hentry:last-child { border-bottom: none; margin-bottom: 0; }
.entry-title { font-size: 27px; font-weight: 600; margin: 0 0 7px; line-height: 1.24; }
.entry-title a { color: var(--ink-strong); }
.entry-title a:hover { color: var(--accent); text-decoration: none; }
.entry-meta { color: var(--muted-2); font-size: 12.5px; letter-spacing: .06em; margin-bottom: 14px; }
.entry-meta .sep { margin: 0 7px; color: var(--line-2); }
.entry-content { font-size: 17px; max-width: none; }
/* выключка по ширине с переносами — иначе в русском тексте «реки» */
.entry-content p, .entry-content li, .lead p { text-align: justify; hyphens: auto; -webkit-hyphens: auto; }
.entry-content p { margin: 0 0 1.15em; }
.entry-content img { height: auto; border: 1px solid var(--line); }
/* Несколько фото подряд в одном блоке — ставим в ряд и равняем по высоте */
.entry-content p:has(img + img),
.entry-content div:has(> img + img) { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 14px; }
.entry-content p:has(img + img) > img,
.entry-content div:has(> img + img) > img { height: 270px; width: auto; max-width: 100%; }
/* Фотографии и сканы в тексте — по центру колонки, на всех страницах */
.entry-content p:has(> img) { text-align: center; }
.entry-content p:has(img + img),
.entry-content div:has(> img + img) { justify-content: center; }
.entry-content h2 { font-size: 25px; margin: 1.5em 0 .5em; }
.entry-content h3 { font-size: 20px; margin: 1.4em 0 .5em; }
.entry-content blockquote {
  border-left: 2px solid var(--accent); margin: 1.3em 0; padding: 6px 20px;
  font-family: 'Spectral', serif; font-style: italic; color: #3d463a; background: var(--surface-2);
}
.entry-content iframe { max-width: 100%; }
.entry-content a { border-bottom: 1px solid var(--accent-soft); }
.entry-content a:hover { text-decoration: none; border-bottom-color: var(--accent); }
.readmore { display: inline-block; margin-top: 8px; font-family: 'Spectral', serif; font-style: italic; font-size: 16px; }
h1.page-title { font-size: clamp(28px, 3.2vw, 36px); font-weight: 600; margin: 0 0 8px; }
.page-title + .muted { margin-top: 0; }

/* ---------- Сайдбар ---------- */
.widget { margin-bottom: 30px; font-size: 15px; }
.widget-title {
  font-family: 'Spectral', serif; font-weight: 500; font-size: 18px; color: var(--ink-strong);
  border-bottom: 1px solid var(--line); padding-bottom: 10px; margin: 0 0 13px;
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 7px 0; border-bottom: 1px solid #e7ede1; }
.widget li:last-child { border-bottom: none; }
.widget li a { color: var(--ink); }
.widget li a:hover { color: var(--accent); }
.widget-tree { text-align: left; }
.btn-tree {
  display: block; text-align: center; border: 1px solid var(--green); color: var(--green-dark);
  background: var(--green-tint); padding: 13px; font-family: 'Spectral', serif; font-size: 17px;
}
.btn-tree:hover { background: var(--green); color: #fff; text-decoration: none; }

/* ---------- Кнопки: единый стиль ---------- */
.btn, .btn-tree, .tree-zoom button, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: 'Karla', sans-serif; font-size: 15px; line-height: 1.2;
  padding: 11px 22px; border: 1px solid var(--line-2); border-radius: 2px;
  background: var(--surface); color: var(--ink); cursor: pointer;
  transition: background .14s, border-color .14s, color .14s;
}
.btn:hover, .btn-tree:hover, .tree-zoom button:hover {
  border-color: var(--green); background: var(--green-tint); color: var(--green-dark); text-decoration: none;
}
.btn:focus-visible, .btn-tree:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* главное действие — сплошная зелёная заливка */
.btn-primary, .btn-tree {
  background: var(--green); border-color: var(--green); color: #fff; font-weight: 600;
}
.btn-primary:hover, .btn-tree:hover { background: var(--green-dark); border-color: var(--green-dark); color: #fff; }

.btn-tree { display: block; width: 100%; text-align: center; padding: 13px 18px; }
.tree-zoom button { padding: 0; width: 34px; height: 32px; font-size: 15px; }

.inline-form { display: inline; }
.linklike { background: none; border: none; color: inherit; cursor: pointer; font: inherit; padding: 0; }
.header-auth .linklike { color: var(--muted); letter-spacing: .14em; text-transform: uppercase; font-size: 11.5px; }
.header-auth .linklike:hover { color: var(--green-dark); }
.muted { color: var(--muted); }
.danger { color: #a5341f; }

/* ---------- Фотоальбомы ---------- */
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 20px; }
.album-card { background: var(--surface); color: inherit; }
.album-card:hover { text-decoration: none; }
.album-card .thumb { height: 150px; display: block; border: 1px solid var(--line-2); background: var(--surface-2); overflow: hidden; }
.album-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.album-card .thumb-empty {
  display: flex; align-items: center; justify-content: center;
  color: var(--line-2); background: repeating-linear-gradient(45deg, #eaf0e4, #eaf0e4 8px, #e2ebdc 8px, #e2ebdc 16px);
}
.album-card:hover .thumb { border-color: var(--green); }
.empty-note { font-family: 'Spectral', serif; font-style: italic; color: var(--muted); border: 1px dashed var(--line-2); padding: 22px; background: var(--surface-2); }
.album-card .cap { display: block; padding: 9px 0 0; font-family: 'Spectral', serif; font-size: 16px; color: var(--ink-strong); }
.album-card .cap small { color: var(--muted); font-family: 'Karla', sans-serif; font-size: 13px; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.gallery-cell { display: block; cursor: pointer; }
.gallery-cell img { width: 100%; height: 150px; object-fit: cover; display: block; border: 1px solid var(--line-2); transition: border-color .15s; }
.gallery-cell:hover img { border-color: var(--green); }
.gallery-cell .cap { display: block; font-family: 'Spectral', serif; font-style: italic; font-size: 12.5px; color: var(--muted); margin-top: 7px; }

/* ---------- Лайтбокс ---------- */
.lightbox { position: fixed; inset: 0; background: rgba(22,28,20,.94); z-index: 1000; display: none; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox figure { margin: 0; max-width: 92vw; max-height: 88vh; text-align: center; }
.lightbox img { max-width: 92vw; max-height: 80vh; object-fit: contain; border: 6px solid #f7faf3; background: #f7faf3; }
.lightbox figcaption { color: #dbe6d6; font-family: 'Spectral', serif; font-style: italic; font-size: 14px; margin-top: 12px; }
.lb-btn { position: absolute; background: none; border: none; color: #dbe6d6; font-size: 2.2rem; line-height: 1; cursor: pointer; padding: 10px 18px; }
.lb-btn:hover { color: #fff; }
.lb-close { top: 12px; right: 16px; font-size: 1.9rem; }
.lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
/* Картинки в тексте открываются во весь экран, внутри — второй щелчок в реальный размер */
.entry-content img { cursor: zoom-in; }
.clightbox img { cursor: zoom-in; }
.clightbox.zoomed figure { max-width: 96vw; max-height: 94vh; overflow: auto; }
.clightbox.zoomed img { max-width: none; max-height: none; cursor: zoom-out; }

/* ---------- Вход ---------- */
.login-box { max-width: 380px; margin: 8px auto 40px; }
.login-box h1 { font-size: 32px; font-weight: 600; margin: 0 0 18px; }
.login-box label { display: block; margin-bottom: 15px; font-size: 14px; color: var(--muted); }
.login-box input:not([type=checkbox]) {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); background: var(--surface-2);
  font-size: 16px; font-family: inherit; color: var(--ink); margin-top: 5px;
}
.login-box input:focus { border-color: var(--green); outline: none; }
.login-box .chk { display: flex; align-items: center; gap: 8px; }
.error { color: #a5341f; }

/* ---------- Древо ---------- */
.tree-app { position: relative; height: calc(100vh - 190px); min-height: 470px; display: flex; flex-direction: column; }
.tree-toolbar {
  display: flex; gap: 13px; align-items: center; flex-wrap: wrap;
  padding: 11px 26px; background: var(--green-tint); border-bottom: 1px solid var(--green-soft); font-size: 14px;
}
.tree-toolbar label { color: var(--muted); }
.tree-toolbar select, .tree-toolbar input {
  padding: 7px 10px; border: 1px solid var(--line-2); background: var(--surface); font-size: 14px;
  font-family: inherit; color: var(--ink); max-width: 270px;
}
.tree-zoom { display: flex; gap: 4px; }
.tree-zoom button { width: 32px; height: 31px; border: 1px solid var(--line-2); background: var(--surface); cursor: pointer; font-size: 15px; color: var(--ink); }
.tree-zoom button:hover { border-color: var(--green); color: var(--green-dark); }
.tree-note { color: var(--muted); font-family: 'Spectral', serif; font-style: italic; }
.tree-canvas {
  flex: 1; overflow: hidden; cursor: grab;
  background: #fbfdf9; background-image: radial-gradient(#dfe9dc 1px, transparent 1px); background-size: 22px 22px;
}
.tree-canvas:active { cursor: grabbing; }
.tree-canvas svg { display: block; }

.tree-panel {
  position: absolute; top: 56px; right: 16px; bottom: 16px; width: 320px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--green);
  padding: 20px; overflow: auto; box-shadow: 0 8px 30px rgba(30,40,28,.15); z-index: 5;
}
.tree-panel h3 { font-size: 22px; font-weight: 600; margin: 0 0 4px; }
.tree-panel .close { float: right; background: none; border: none; font-size: 1.3rem; cursor: pointer; color: var(--muted); }
.tree-panel dt { color: var(--green-dark); font-size: 11px; margin-top: 12px; text-transform: uppercase; letter-spacing: .16em; }
.tree-panel dd { margin: 0; color: #3d463a; }
.tree-panel .person-photo { width: 100%; max-height: 260px; object-fit: cover; border: 1px solid var(--line); margin-bottom: 10px; }

/* Узлы древа */
.tnode rect { fill: #ffffff; stroke: #bfb4a0; }
.tnode.male rect { fill: #ffffff; stroke: #a8b6c4; }
.tnode.female rect { fill: #ffffff; stroke: #c0a8ad; }
.tnode.hidden-p rect { fill: #e8efe4; stroke: #c3b8a3; stroke-dasharray: 4 3; }
.tnode.sel rect { stroke: var(--green); stroke-width: 2.5; }
.tnode { cursor: pointer; }
.tnode text { font-family: 'Karla', sans-serif; fill: var(--ink); }
.tnode .nm { font-family: 'Spectral', serif; font-size: 15px; font-weight: 500; }
.tnode .yrs { fill: var(--muted-2); font-size: 12.5px; }
.tnode .toggle-c { fill: var(--green); }
.tnode .toggle-t { fill: #fff; font-size: 15px; font-weight: 700; }
.tlink { fill: none; stroke: #a9c2a4; stroke-width: 1.5; }

/* ---------- Подвал ---------- */
#colophon { border-top: 2px solid var(--rule); box-shadow: inset 0 3px 0 -1px var(--green-soft); background: var(--surface); }
#colophon .inner-wrap { padding: 22px 26px; font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
#colophon p { margin: 0; }

/* ---------- Адаптив ---------- */
@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; gap: 24px; }
  .lead figure { order: -1; }
  .columns { grid-template-columns: 1fr; }
  .columns > article { border-right: none; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .columns > article:last-child { border-bottom: none; }
  .home-foot { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 860px) {
  #primary, #secondary { float: none; width: 100%; }
  #secondary { margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--line); }
  .masthead { padding: 30px 26px 22px; }
  .menu-toggle {
    display: block; width: 100%; text-align: left; background: none; color: var(--ink);
    border: none; border-bottom: 1px solid var(--line); padding: 12px 0; font-size: 15px;
    font-family: 'Spectral', serif; cursor: pointer;
  }
  .menu { display: none; flex-direction: column; align-items: stretch; gap: 0; }
  .menu.open { display: flex; }
  .menu > li > a { padding: 11px 0; border-bottom: 1px solid #e7ede1; margin-bottom: 0; }
  .menu > li.current > a { border-bottom-color: #e7ede1; }
  .menu .sub-menu { position: static; display: block; border: none; box-shadow: none; background: var(--surface-2); padding: 0 0 0 16px; }
  .tree-app { height: calc(100vh - 150px); }
  .tree-panel { top: auto; left: 16px; width: auto; max-height: 55%; }
  .entry-content p:has(img + img) > img,
  .entry-content div:has(> img + img) > img { height: 190px; }
}

/* ---------- Фоновая музыка: кнопка в верхней полосе, слева от «Вход» ---------- */
#bg-music { display: inline-flex; align-items: center; gap: 3px; }
#bg-music-prev, #bg-music-next {
  display: inline-flex; align-items: center; justify-content: center;
  width: 19px; height: 25px; padding: 0; cursor: pointer;
  border: none; background: none; color: var(--line-2);
}
#bg-music-prev:hover, #bg-music-next:hover { color: var(--green-dark); }
#bg-music-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 25px; height: 25px; padding: 0; cursor: pointer; border-radius: 1px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--muted);
}
#bg-music-btn:hover { border-color: var(--green); color: var(--green-dark); background: var(--green-tint); }
#bg-music-btn .ico-pause { display: none; }
#bg-music.playing #bg-music-btn { border-color: var(--green); color: #fff; background: var(--green); }
#bg-music.playing #bg-music-btn .ico-play { display: none; }
#bg-music.playing #bg-music-btn .ico-pause { display: block; }

/* индикация перехода без перезагрузки */
html.is-loading #content { opacity: .55; transition: opacity .12s ease; }

/* ---------- Видео ---------- */
.video-list { display: flex; flex-direction: column; gap: 40px; }
.video-item { padding-bottom: 34px; border-bottom: 1px solid var(--line); }
.video-item:last-child { border-bottom: none; padding-bottom: 0; }
.video-title { font-size: 24px; font-weight: 600; margin: 0 0 6px; }
.video-meta { font-size: 12.5px; letter-spacing: .06em; color: var(--muted-2); margin-bottom: 14px; }
.video-meta .sep { margin: 0 7px; color: var(--line-2); }
.video-player {
  width: 100%; display: block; background: #1a1f19;
  border: 1px solid var(--line-2); box-shadow: 0 2px 10px rgba(30,40,28,.10);
}
.video-desc { margin: 14px 0 0; color: #3d463a; max-width: 68ch; text-align: justify; hyphens: auto; }
