/*
  Оформление сайта. Цвета и размеры — только через токены ниже (:root):
  смена дизайна = правка этого списка. Значения сняты с нынешнего сайта,
  см. docs/current-design.md.
*/
:root {
  --c-text: #4D3B3B;
  --c-text-2: #664F4F;
  --c-muted: #6C6C6C;
  --c-accent: #DC6655;
  --c-accent-dark: #AC393B;
  --c-rust: #B06732;
  --c-peach: #F2C19D;
  --c-peach-2: #E3A171;
  --c-cream: #FCF3E6;
  --c-white: #FFFFFF;
  --c-line: #EBEBEB;
  --c-arrow: #D2D2D2;
  --c-footer-bottom: #423131;
  --c-meta: #929292;
  --c-sub: #664F4F;          /* фон выпадающего меню */
  --c-vk: #45668E;
  --c-youtube: #CD201F;
  --wave-book: #FF8C001C;    /* волны за книгой */
  --wave-music: #DC6655;     /* волны за музыкой */
  /* еле заметный этнический узор за книгами, музыкой и заголовками разделов; убрать — поставить none */
  --ornament: url("../img/ornament.dad87437afa3.svg");
  --ornament-light: url("../img/ornament-light.fcdbb227b819.svg");
  --font: Roboto, Arial, sans-serif;
  --fs-body: 1.1rem;
  --wrap: 1180px;       /* 1140 содержимого + поля по 20 */
  --wrap-text: 960px;   /* ширина текста статьи и анкеты */
  --radius: 4px;
  --shadow-photo: 0 0 10px rgba(0, 0, 0, .2);
  --shadow: 0 4px 14px rgba(77, 59, 59, .18);
}

/* ---------- основа ---------- */
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: var(--fs-body); line-height: 1.5; color: var(--c-text); background: var(--c-cream); }
a { color: var(--c-rust); text-decoration: none; }
a:hover { color: var(--c-accent); }
img { max-width: 100%; height: auto; display: block; }
svg { width: 1em; height: 1em; fill: currentColor; flex: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--c-text); color: #fff; padding: 8px 14px; z-index: 100; }
.skip:focus { left: 8px; color: #fff; }
:focus-visible { outline: 2px solid var(--c-accent); outline-offset: 2px; }
.empty { color: var(--c-muted); font-style: italic; }

/* ---------- кнопки ---------- */
.btn { display: inline-flex; align-items: center; gap: .4em; padding: 12px 24px; border: 0; border-radius: 20px;
  background: var(--c-accent); color: #fff; font: 400 1rem/1 var(--font); cursor: pointer; transition: background .2s; }
.btn:hover { background: var(--c-accent-dark); color: #fff; }
.btn--peach { background: var(--c-peach); color: var(--c-text); }
.btn--peach:hover { background: var(--c-peach-2); color: var(--c-text); }
.btn--small { padding: 8px 16px; font-size: .85rem; }
.btn--ghost { background: transparent; color: var(--c-accent); box-shadow: inset 0 0 0 1px var(--c-accent); }
.btn--ghost:hover { background: var(--c-accent); }

/* ---------- верхняя полоса: девиз и язык ---------- */
.topbar { position: relative; z-index: 60; background: var(--c-cream); }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.motto { padding-left: 4px; color: var(--c-accent); font-style: italic; font-size: 1.1rem; line-height: 1.2; }
.langs { position: relative; margin-left: auto; font-size: 1rem; }
.langs summary { display: flex; align-items: center; gap: 10px; padding: 8px 15px; color: var(--c-rust); cursor: pointer; list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover { color: var(--c-accent); }
.langs__list { list-style: none; margin: 0; padding: 4px 0; position: absolute; top: 100%; right: 0; min-width: 140px; background: var(--c-white); box-shadow: var(--shadow); border-radius: 0 0 var(--radius) var(--radius); }
.langs__list a { display: flex; align-items: center; gap: 10px; padding: 6px 15px; color: var(--c-text); }
.langs__list a:hover { background: var(--c-cream); color: var(--c-accent); }
.langs img { width: 18px; height: 12px; }

/* ---------- меню ---------- */
.menu { background: var(--c-text); position: sticky; top: 0; z-index: 50; }
.menu__in { display: flex; align-items: center; gap: 20px; min-height: 60px; }
.logo img { width: 140px; height: auto; }
.menu__toggle { display: none; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.nav__item { position: relative; display: flex; align-items: center; }
.nav__item > a { display: block; padding: 18px 12px; color: var(--c-peach); font-weight: 600; font-size: 1rem; line-height: 1.5; text-transform: uppercase; }
.nav__item.has-sub > a { padding-right: 29px; }
.nav__item > a:hover, .nav__item.has-sub:hover > a, .nav__item.has-sub:hover .nav__sub-toggle { color: var(--c-accent); }
/* стрелка рисуется поверх ссылки, как часть пункта; на телефоне становится кнопкой */
.nav__sub-toggle { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); display: flex; background: none; border: 0; padding: 0; color: var(--c-peach); font-size: 14px; pointer-events: none; }
.nav__sub { list-style: none; margin: 0; padding: 0; position: absolute; top: 100%; left: 0; width: 200px; background: var(--c-sub);
  opacity: 0; visibility: hidden; transition: opacity .15s; }
.nav__sub li + li { border-top: 1px solid rgba(255, 255, 255, .08); }
.nav__sub a { display: block; padding: 5px 10px; color: var(--c-peach); font-size: 1rem; line-height: 1.5; }
.nav__sub a:hover { color: var(--c-accent); }
.has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub, .has-sub.is-open .nav__sub { opacity: 1; visibility: visible; }

/* поиск: лупа в меню открывает окно поверх страницы, как на старом сайте */
.search-open { display: flex; padding: 8px 0 8px 8px; color: var(--c-peach); font-size: 1rem; }
.search-open:hover { color: var(--c-accent); }
.search-pop { width: min(980px, calc(100% - 32px)); max-width: none; margin: 40px auto 0; padding: 18px; border: 0; background: var(--c-white); overflow: visible; }
.search-pop::backdrop { background: rgba(0, 0, 0, .75); }
.search-pop__form { display: flex; gap: 12px; }
.search-pop input { flex: 1; min-width: 0; padding: 7px 12px; border: 1px solid var(--c-arrow); border-radius: var(--radius); font: inherit; color: var(--c-text); }
.search-pop__go { flex: none; width: 40px; height: 40px; font-size: 18px; display: grid; place-items: center; border: 0; border-radius: var(--radius); background: var(--c-accent); color: #fff; cursor: pointer; }
.search-pop__go:hover { background: var(--c-accent-dark); }
.search-pop__close { position: fixed; top: 16px; right: 16px; display: flex; padding: 6px; border: 0; background: none; color: #fff; font-size: 1.6rem; cursor: pointer; }

/* ---------- слайдер на главной ---------- */
.hero { position: relative; overflow: hidden; background: linear-gradient(90deg, var(--c-peach) 18%, var(--c-peach-2) 57%); }
.hero__track { display: flex; transition: transform .6s ease; touch-action: pan-y; }
.hero__slide { flex: 0 0 100%; min-width: 0; }
@media (prefers-reduced-motion: reduce) { .hero__track { transition: none; } }
.hero__in { display: grid; grid-template-columns: 424px 1fr; gap: 30px; align-items: center; min-height: 410px; padding-top: 30px; padding-bottom: 30px; }
.hero__media { display: flex; justify-content: center; }
.hero__img { width: auto; height: auto; max-width: 300px; max-height: 300px; border-radius: var(--radius); }
.hero__text { color: var(--c-cream); }
.hero__title { font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin-bottom: 10px; }
.hero__title a { color: #fff; }
.hero__title a:hover { color: var(--c-text); }
.hero__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.hero__kind { padding: 2px 8px; border-radius: var(--radius); background: var(--c-text); color: #fff; font-size: 1rem; line-height: 1.2; }
.hero__meta .meta { gap: 2px 12px; font-size: 1rem; }
.hero__meta .meta span { gap: 5px; }
.hero__meta .meta svg { font-size: 14px; color: var(--c-line); }
.hero__text p { margin: 10px 0 16px; }
.hero__arrow { position: absolute; top: 50%; transform: translateY(-50%); width: 50px; height: 50px; border: 0; background: none; color: #fff; display: grid; place-items: center; cursor: pointer; font-size: 30px; padding: 0; }
.hero__arrow:hover { color: var(--c-text); }
.hero__arrow--prev { left: max(0px, calc(50% - 610px)); }
.hero__arrow--next { right: max(0px, calc(50% - 610px)); }

/* ---------- полосы разделов на главной ---------- */
.band { padding: 40px 0 45px; background: var(--c-white); }
.band--cream { background: var(--c-cream); }
.band__title { font-size: 1.7rem; font-weight: 700; line-height: 1.2; margin-bottom: 30px; }
.band__title a { color: var(--c-text); display: inline-flex; align-items: center; gap: 14px; }
.band__title a:hover { color: var(--c-accent); }
.band__more { width: 25px; height: 25px; border-radius: 50%; background: var(--c-arrow); color: #fff; display: grid; place-items: center; font-size: 13px; transition: background .2s; }
.band__title a:hover .band__more { background: var(--c-accent); }

/* ---------- сетки карточек ---------- */
.grid { display: grid; gap: 30px; }
.grid--cards, .grid--mini, .grid--people-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--covers, .grid--squares, .grid--people { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--people { gap: 36px 30px; }

/* карточка статьи: белая плашка с тенью, рубрики поверх картинки */
.card { position: relative; background: var(--c-white); box-shadow: 0 0 7px -2px rgba(0,0,0,.32); display: flex; flex-direction: column; }
.card__media { position: relative; }
.card__img { display: block; overflow: hidden; aspect-ratio: 16/9; background: var(--c-line); }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.card:hover .card__img img { transform: scale(1.04); }
.card__badges { position: absolute; top: 23px; left: 26px; right: 20px; margin: 0; }
.card__body { padding: 20px 26px 22px; display: flex; flex-direction: column; flex: 1; }
.card__title { font-size: 1.4rem; font-weight: 700; line-height: 1.2; margin: 0 0 auto; padding-bottom: 14px; }
.card__title a, .cover__title a, .square__title a, .person__name a { color: var(--c-text); }
.card__title a:hover, .cover__title a:hover, .square__title a:hover, .person__name a:hover { color: var(--c-accent); }

.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges--center { justify-content: center; margin: 0 0 16px; }
.badge { background: var(--c-rust); color: #fff; font-size: .8rem; font-weight: 400; text-transform: uppercase;
  padding: 2px 8px; border-radius: 15px; line-height: 1.5; }
.badge:hover { background: var(--c-accent); color: #fff; }
.meta { display: flex; flex-wrap: wrap; gap: 4px 16px; color: var(--c-meta); font-size: 1rem; line-height: 1.5; }
.meta span, .meta a { display: inline-flex; align-items: center; gap: 8px; }
.meta a { color: var(--c-meta); }
.meta a:hover { color: var(--c-accent); }
.meta--center { justify-content: center; }
.meta--light { color: var(--c-line); }
.meta--head { gap: 6px 26px; margin-bottom: 24px; }

.cover > a { display: block; aspect-ratio: 263/375; overflow: hidden; border-radius: 3px; box-shadow: var(--shadow-photo); transition: transform .2s; }
.cover > a:hover { transform: translateY(-4px); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover__title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 15px 0 4px; }
.cover__sub { margin: 0; color: var(--c-meta); font-size: 1rem; }

.square > a { display: block; aspect-ratio: 1; overflow: hidden; box-shadow: var(--shadow-photo); }
.square img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.square:hover img { transform: scale(1.04); }
.square__title { font-size: 1.1rem; font-weight: 700; line-height: 1.3; margin: 15px 0 0; }
/* длинное слово в названии переносится, а не вылезает за край телефона */
.card__title, .cover__title, .square__title, .person__name { overflow-wrap: anywhere; hyphens: auto; }

/* плитки на главной: без белой рамки, дата над заголовком — как на старом сайте */
.grid--tiles .card { background: none; box-shadow: none; }
.grid--tiles .card__img { box-shadow: var(--shadow-photo); }
.grid--tiles .card__badges { top: 15px; left: 14px; gap: 5px; }
.grid--tiles .card__body { padding: 10px 0 0; }
.grid--tiles .card__body .meta { order: -1; font-size: 1rem; gap: 2px 12px; margin-bottom: 4px; }
.grid--tiles .card__body .meta span { gap: 5px; }
.grid--tiles .card__body .meta svg { font-size: 14px; }
.grid--tiles .card__title { font-size: 1.1rem; line-height: 1.3; padding: 0; }

/* персона в списке: круглое фото, имя и подпись по центру */
.person { text-align: center; }
.person__photo { display: block; width: 150px; height: 150px; margin: 0 auto 20px; border-radius: 50%; overflow: hidden; background: var(--c-white); box-shadow: var(--shadow-photo); }
.person img { width: 100%; height: 100%; object-fit: cover; }
.person__name { font-size: 1.3rem; font-weight: 700; margin: 0 0 8px; line-height: 1.3; }
.person__short { margin: 0; color: var(--c-meta); font-style: italic; line-height: 1.5; }

/* персоны на главной: маленькое фото слева, текст справа */
.grid--people-row { gap: 40px 30px; }
.grid--people-row .person { display: grid; grid-template-columns: 88px 1fr; gap: 20px; align-items: start; text-align: left; }
.grid--people-row .person__photo { width: 88px; height: 88px; margin: 0; }
.grid--people-row .person__name { font-size: 1.1rem; margin-bottom: 4px; }
.grid--people-row .person__short { line-height: 1.2; }

/* персиковая полоса с заголовком над списком */
.banner { background: var(--ornament), var(--c-peach); text-align: center; padding: 50px 0; }
.banner__title { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin: 0; }
.banner__text { margin: 14px auto 0; max-width: 840px; font-size: 1.1rem; line-height: 1.2; }
.list { padding-top: 40px; padding-bottom: 60px; }

/* ---------- страницы разделов ---------- */
.page { padding-top: 32px; padding-bottom: 56px; }
.page__title { font-size: 2.2rem; font-weight: 900; margin-bottom: 20px; }
.intro { color: var(--c-text-2); max-width: 760px; margin-bottom: 28px; }
.page--narrow { max-width: 760px; }
.form__error { color: var(--c-accent-dark); }
.form__req { color: var(--c-accent); }
.error-page__code { font-size: 5rem; font-weight: 900; line-height: 1; margin: 0; color: var(--c-peach); }
.form label small { color: var(--c-muted); }
.crumbs ol { list-style: none; padding: 0; margin: 0 0 16px; display: flex; flex-wrap: wrap; gap: 4px; font-size: .85rem; color: var(--c-muted); }
.crumbs li + li::before { content: "›"; margin-right: 4px; }
.crumbs a { color: var(--c-muted); }
.crumbs a:hover { color: var(--c-accent); }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin-top: 40px; }
.pager a { padding: 8px 18px; border-radius: 20px; background: var(--c-cream); font-weight: 500; }
.pager a:hover { background: var(--c-accent); color: #fff; }
.search-big { display: flex; gap: 10px; max-width: 560px; margin-bottom: 32px; }
.search-big input { flex: 1; padding: 10px 16px; border: 1px solid var(--c-line); border-radius: 20px; font: inherit; }

/* ---------- материал (статья, сказка, персона…) — белый лист ---------- */
.detail { background: var(--c-white); padding: 40px 0 48px; }
.detail__head, .detail__body { max-width: calc(var(--wrap-text) + 40px); }
.detail__head { margin-bottom: 28px; }
.detail__head--center { text-align: center; }
.detail__title { font-size: 2.8rem; font-weight: 900; line-height: 1.2; margin-bottom: 16px; }
.detail__image { width: 100%; margin: 0 auto; }
.detail__note { text-align: right; color: var(--c-meta); margin: 10px 0 0; }
.rich { overflow-wrap: break-word; }
.rich p { margin: 0 0 12px; }
.rich .text-center { text-align: center; }
.rich .text-right { text-align: right; }
.rich .indent-1 { padding-left: 30px; }
.rich .indent-2 { padding-left: 60px; }
.rich h2 { font-size: 1.7rem; margin-top: 1.2em; }
.rich h3 { font-size: 1.4rem; margin-top: 1.2em; }
.rich img { margin: 1em auto; }
.rich blockquote { margin: 1.4em 0; padding: 12px 20px; border-left: 4px solid var(--c-peach); background: var(--c-cream); font-style: italic; }
.rich ul, .rich ol { padding-left: 1.4em; }
.tags { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--c-line); color: var(--c-meta); font-size: .95rem; }

/* волны за книгой и музыкой — те же фигуры, что на старом сайте; цвет — через --wave */
.waves { position: relative; overflow: hidden; isolation: isolate; }
.waves::before, .waves::after { content: ""; position: absolute; left: 50%; z-index: -1; background: var(--wave); pointer-events: none; }
.waves::before { top: 0; width: 150%; aspect-ratio: 283.5 / 27.8; transform: translateX(-50%);
  -webkit-mask: url("../img/wave-top.270bb0e641b7.svg") center / 100% 100% no-repeat; mask: url("../img/wave-top.270bb0e641b7.svg") center / 100% 100% no-repeat; }
.waves::after { bottom: 0; width: 100%; aspect-ratio: 10 / 1; transform: translateX(-50%) rotate(180deg);
  -webkit-mask: url("../img/wave-bottom.91d56a585ca5.svg") center / 100% 100% no-repeat; mask: url("../img/wave-bottom.91d56a585ca5.svg") center / 100% 100% no-repeat; }

/* музыка: коралловая полоса сверху, исполнитель сбоку */
.detail--hero { padding-top: 0; }
.music-hero { --wave: var(--wave-music); background: var(--ornament-light), linear-gradient(280deg, rgba(220,102,85,.82) 21%, rgba(220,102,85,.93) 100%), var(--c-cream); color: #fff; padding: 40px 0; margin-bottom: 40px; }
.music-hero__in { display: grid; grid-template-columns: 404px 1fr; gap: 30px; align-items: center; }
.music-hero__img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.music-hero__title { font-size: 2.1rem; font-weight: 700; margin: 0 0 20px; }
.music-hero__desc p { margin: 0 0 12px; }
.music-hero__desc a { color: #fff; }
.music-hero__facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 6px; }
.music-hero__facts li { display: flex; align-items: center; gap: 12px; }
.detail:has(.music-layout) .detail__body { max-width: var(--wrap); }
.music-layout--side { display: grid; grid-template-columns: 1fr 396px; gap: 40px; align-items: start; }
.music-side { border-left: 1px solid var(--c-line); padding-left: 40px; display: grid; gap: 30px; }
.music-side .person__name { font-size: 1.3rem; }
.music-side .person__name a { color: var(--c-rust); }

/* организация — белая плашка на кремовом фоне */
.detail--boxed { background: none; padding: 40px 20px 60px; }
.detail--boxed > .wrap { background: var(--c-white); max-width: 1000px; padding-left: 40px; padding-right: 40px; }
.detail--boxed .detail__head { margin: 0 auto; padding-top: 40px; padding-bottom: 8px; }
.detail--boxed .detail__body { padding-bottom: 40px; }

/* фольклор — узкой колонкой */
.detail--narrow .detail__body, .detail--narrow .detail__head { max-width: 800px; }
.detail__image--auto { width: auto; max-width: 100%; }

/* «Опубликовал …» после текста */
/* автор и герои под статьёй: серая плашка во всю ширину, как на старом сайте */
.people-plate { display: grid; gap: 20px; margin: 32px 0 0; padding: 30px 40px; background: var(--c-line); border-radius: 6px; }
.people-plate__row { display: grid; grid-template-columns: 109px minmax(0, 1fr); gap: 20px; align-items: center; }
.people-plate__photo { display: block; width: 109px; height: 109px; border-radius: 50%; overflow: hidden; box-shadow: var(--shadow-photo); }
.people-plate__photo img { width: 100%; height: 100%; object-fit: cover; }
.people-plate p { margin: 0; }
.people-plate__name { font-size: 1.3rem; font-weight: 700; line-height: 1.3; margin-bottom: 4px !important; }
.people-plate__name a { color: var(--c-rust); }
.people-plate__name a:hover { color: var(--c-accent); }
.people-plate__short { color: var(--c-muted); font-style: italic; }

/* «Смотрите также» под статьёй */
.see-also { padding: 40px 0 60px; }
.see-also__title { font-size: 1.7rem; font-weight: 700; margin-bottom: 24px; }
.mini__img { display: block; aspect-ratio: 16/9; overflow: hidden; margin-bottom: 10px; }
.mini__img img { width: 100%; height: 100%; object-fit: cover; }
.mini .meta { font-size: .85rem; gap: 2px 12px; }
.mini .meta span { gap: 5px; }
.mini__title { font-size: 1.05rem; font-weight: 700; line-height: 1.3; margin: 6px 0 0; }
.mini__title a { color: var(--c-rust); }
.mini__title a:hover { color: var(--c-accent); }

/* списки ссылок под анкетой персоны */
.links-band { padding: 0 0 40px; }
.links-band__in { max-width: calc(var(--wrap-text) + 40px); }
.links-band h2 { text-align: center; font-size: 1.7rem; font-weight: 700; margin: 40px 0 20px; }
.links-band ul { margin: 0; padding-left: 1.4em; }
.links-band li { margin: 0 0 4px; }

/* пара на другом языке */
.pair { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 18px; margin-bottom: 28px;
  background: var(--c-cream); border-radius: var(--radius); border-left: 4px solid var(--c-accent); font-size: .95rem; }
.pair > svg { color: var(--c-accent); font-size: 1.3rem; }
.pair > span { flex: 1; min-width: 200px; }
.pair a:not(.btn) { font-weight: 500; }

/* параллельное чтение */
.detail:has(.parallel) .detail__body { max-width: var(--wrap) !important; }
.parallel { display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.parallel > * { padding: 4px 0; }
.parallel > :nth-child(odd) { border-right: 1px solid var(--c-line); padding-right: 20px; }
.parallel__head { font-weight: 700; font-size: 1.2rem; padding-bottom: 12px !important; color: var(--c-accent-dark); }

/* анкета: персона, организация */
.profile { display: grid; grid-template-columns: 202px 1fr; gap: 40px; align-items: start; }
.profile__photo img { width: 100%; border: 1px solid var(--c-line); border-radius: var(--radius); }
.profile__years { text-align: center; margin: 8px 0 0; }
.profile__social { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin: 10px 0 0; font-size: 18px; line-height: 1; }
.profile__social a { display: flex; color: var(--c-meta); }
.profile__social a:hover { color: var(--c-rust); }
.profile__title { font-size: 2.1rem; font-weight: 700; line-height: 1.2; margin: 0 0 22px; }
.profile__short { font-size: 1.15rem; font-style: italic; color: var(--c-text-2); margin-top: -.2em; }
.facts { display: grid; grid-template-columns: 172px 1fr; gap: 10px 0; margin: 0; }
.facts dt { color: var(--c-meta); }
.facts dd { margin: 0; }
.facts dd a { color: var(--c-rust); }
.facts__note { color: var(--c-meta); }

/* книга: полоса вплотную к меню, волны и еле заметный узор */
.book-band { --wave: var(--wave-book); background: var(--ornament), linear-gradient(280deg, rgba(255,140,0,.11) 0%, rgba(255,153,0,.29) 100%), var(--c-cream); padding: 40px 0; margin-bottom: 40px; }
.book-band > .wrap { max-width: 1020px; }
.book-band__in { display: grid; grid-template-columns: 323px 1fr; gap: 40px; align-items: center; }
.book-band__cover { width: 100%; aspect-ratio: 300/429; object-fit: cover; border-radius: var(--radius); }
.book-band .detail__title { font-size: 2.1rem; font-weight: 700; margin-bottom: 14px; }
.book-band__info p { margin: 0 0 20px; }
.book-band .facts { grid-template-columns: 160px 1fr; margin-bottom: 26px; }

/* треки и аудиокниги */
.tracks { margin-top: 32px; }
.tracks h2 { font-size: 1.4rem; }
.tracks ol { padding: 0; margin: 0; list-style: none; counter-reset: t; }
.tracks li { counter-increment: t; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--c-line); }
.tracks li::before { content: counter(t); width: 28px; height: 28px; border-radius: 50%; background: var(--c-cream); display: grid; place-items: center; font-size: .85rem; font-weight: 700; }
.tracks__title { flex: 1; min-width: 160px; font-weight: 500; }
.tracks audio { height: 36px; max-width: 100%; }

/* фотоальбом */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 24px; }
.gallery figure { margin: 0; }
.gallery img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: var(--radius); }
.gallery figcaption { font-size: .85rem; color: var(--c-muted); margin-top: 4px; }

/* связанные материалы под текстом */
.related { margin-top: 40px; }
.related h2 { font-size: 1.4rem; margin-bottom: 18px; }
.related .grid { margin-bottom: 24px; }
.related--small h2 { font-size: 1.15rem; color: var(--c-text-2); }
.source { margin-top: 24px; color: var(--c-muted); font-size: .9rem; font-style: italic; overflow-wrap: anywhere; }
.person__years { margin: 0; color: var(--c-rust); font-size: .85rem; font-weight: 500; }
.rich--toc p { margin: 0 0 .3em; }
.drive-list { width: 100%; height: 420px; border: 1px solid var(--c-line); border-radius: var(--radius); background: #fff; }
.tracks__note { font-size: .9rem; color: var(--c-muted); }

/* картинки и видео в тексте */
.rich .richtext-image { border-radius: var(--radius); margin: 1em auto; }
.rich .richtext-image.full-width { width: 100%; height: auto; }
.rich .richtext-image.left { float: left; max-width: 45%; margin: .3em 24px 12px 0; }
.rich .richtext-image.right { float: right; max-width: 45%; margin: .3em 0 12px 24px; }
.rich::after { content: ""; display: table; clear: both; }

.rich iframe, .rich .responsive-object iframe { width: 100%; height: auto; aspect-ratio: 16/9; border: 0; border-radius: var(--radius); margin: 1em 0; }
.rich .responsive-object { position: static !important; padding: 0 !important; height: auto !important; }
.rich hr { border: 0; border-top: 1px solid var(--c-line); margin: 2em 0; }
.rich sup { line-height: 0; color: var(--c-rust); font-weight: 700; }

/* комментарии */
.comments { margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--c-line); }
.comments h2 { font-size: 1.4rem; }
.comments__count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 8px; border-radius: 14px;
  background: var(--c-cream); color: var(--c-rust); font-size: .9rem; vertical-align: middle; }
.comments__list, .comments__replies { list-style: none; margin: 0; padding: 0; }
.comment { padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.comments__replies { margin: 12px 0 0 28px; border-left: 3px solid var(--c-cream); padding-left: 16px; }
.comments__replies .comment:last-child { border-bottom: 0; padding-bottom: 0; }
.comment__head { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; margin-bottom: 6px; }
.comment__head time { color: var(--c-muted); font-size: .85rem; }
.comment__text { overflow-wrap: anywhere; }
.comment__reply { background: none; border: 0; padding: 6px 0 0; color: var(--c-rust); font: 500 .85rem var(--font); cursor: pointer; }
.comment__reply:hover { color: var(--c-accent); }
.comment-form { margin-top: 28px; padding: 24px; background: var(--c-cream); border-radius: var(--radius); display: grid; gap: 14px; }
.comment-form h3 { margin: 0; font-size: 1.15rem; }
.comment-form label { display: grid; gap: 4px; font-size: .9rem; color: var(--c-text-2); }
.comment-form input, .comment-form textarea, .form input, .form textarea, .form select {
  font: inherit; font-size: 1rem; padding: 10px 12px; border: 1px solid #DCCBB8; border-radius: var(--radius); background: #fff; color: var(--c-text); }
.comment-form input:focus, .comment-form textarea:focus, .form input:focus, .form textarea:focus { outline: 2px solid var(--c-peach); border-color: var(--c-rust); }
.comment-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.comment-form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.comment-form button[type=submit] { justify-self: start; }
.comment-form__replyto { margin: 0; font-size: .9rem; }
.comment-form__replyto button { background: none; border: 0; color: var(--c-accent); cursor: pointer; font: inherit; text-decoration: underline; }
.notice { padding: 12px 16px; border-radius: var(--radius); margin: 12px 0; }
.notice--ok { background: #E8F3E3; color: #2F5A22; }
.notice--error { background: #FBE3DF; color: var(--c-accent-dark); }

/* ---------- подвал ---------- */
.footer { background: var(--c-text); color: var(--c-line); font-size: 1rem; }
.footer__cols { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 15px; padding-top: 40px; padding-bottom: 40px; }
.footer__about img { width: 200px; margin-bottom: 15px; }
.footer__about p { margin: 0; line-height: 1.2; }
.footer__title { color: var(--c-line); font-size: 1.3rem; font-weight: 500; line-height: 1.3; margin-bottom: 20px; }
.footer a { color: var(--c-peach); }
.footer a:hover { color: #fff; }
.footer__links { list-style: none; margin: -20px 0 0; padding: 20px 8px 0; font-size: 1.1rem; }
.footer__links li { padding-bottom: 8px; line-height: 1.35; }
.footer__links li:first-child { padding-top: 8px; border-top: 1px solid rgba(255, 255, 255, .1); }
.footer__links li:last-child { border-bottom: 1px solid rgba(255, 255, 255, .1); }
.footer__contacts { display: grid; grid-template-columns: 186px 1fr; gap: 15px 0; align-items: center; }
.footer__contacts > a:not(.footer__feedback) { display: inline-flex; align-items: center; gap: 17px; }
.footer__contacts svg { color: var(--c-line); font-size: 18px; }
a.footer__feedback { justify-self: start; padding: 6px 10px; border-radius: var(--radius); background: var(--c-peach); color: var(--c-text); line-height: 1; }
a.footer__feedback:hover { background: var(--c-peach-2); color: var(--c-text); }
.footer__social { display: flex; gap: 6px; }
a.social { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #fff; }
a.social:hover { color: #fff; opacity: .85; }
.footer__contacts .social svg { color: #fff; font-size: 14px; }
.social--vk { background: var(--c-vk); }
.social--yt { background: var(--c-youtube); }
.footer__bottom { background: var(--c-footer-bottom); }
.footer__bottom-in { display: flex; align-items: center; justify-content: space-between; min-height: 56px; }
.footer__copy { display: inline-flex; align-items: center; gap: 16px; }
.footer__copy svg { font-size: 13px; color: var(--c-line); }
a.footer__up { width: 35px; height: 34px; display: grid; place-items: center; border-radius: var(--radius); background: var(--c-peach); color: var(--c-text); }
a.footer__up:hover { background: var(--c-peach-2); color: var(--c-text); }

/* ---------- планшет ---------- */
@media (max-width: 1000px) {
  .grid--cards, .grid--mini, .grid--people-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--covers, .grid--squares, .grid--people { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- меню прячется под кнопку, когда пункты не влезают в строку ---------- */
@media (max-width: 1000px) {
  .menu__in { flex-wrap: wrap; gap: 0 12px; min-height: 56px; }
  .logo { flex: 1; }
  .search-open { order: 1; padding: 8px; }
  .menu__toggle { order: 2; display: inline-flex; align-items: center; gap: 8px; background: none; border: 1px solid rgba(242,193,157,.5);
    color: var(--c-peach); border-radius: 18px; padding: 6px 14px; font: 500 .9rem var(--font); cursor: pointer; }
  .nav { order: 3; display: none; flex-basis: 100%; }
  .menu.is-open .nav { display: flex; }
  .nav__list { flex-direction: column; width: 100%; padding: 8px 0; }
  .nav__item { flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.08); }
  .nav__item > a, .nav__item.has-sub > a { flex: 1; padding: 12px 4px; }
  .nav__sub-toggle { position: static; transform: none; padding: 12px 14px; font-size: 1rem; pointer-events: auto; cursor: pointer; }
  .has-sub.is-open .nav__sub-toggle svg { transform: rotate(180deg); }
  .nav__sub { position: static; display: none; flex-basis: 100%; width: auto; border-radius: var(--radius); opacity: 1; visibility: visible; margin-bottom: 8px; }
  .has-sub:hover .nav__sub, .has-sub:focus-within .nav__sub { display: none; }
  .has-sub.is-open .nav__sub { display: block; }
}

/* ---------- телефон ---------- */
@media (max-width: 860px) {
  .hero__in { grid-template-columns: 1fr; gap: 20px; min-height: 0; padding: 28px 20px 56px; }
  .hero__title { font-size: 1.5rem; }
  .hero__arrow { top: auto; bottom: 8px; transform: none; width: 40px; height: 40px; font-size: 22px; }
  .profile, .book-band__in, .music-hero__in, .music-layout--side { grid-template-columns: 1fr; gap: 24px; }
  .music-hero__img { max-width: 320px; }
  .music-side { border-left: 0; padding-left: 0; }
  .profile__photo, .book-band__cover { max-width: 240px; }
  .book-band__cover { margin: 0 auto; }
  .profile__photo { margin: 0 auto; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  .grid--cards, .grid--mini, .grid--people-row { grid-template-columns: minmax(0, 1fr); }
  .grid--covers, .grid--squares, .grid--people { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .person__photo { width: 120px; height: 120px; }
  .banner { padding: 32px 0; }
  .banner__title { font-size: 1.9rem; }
  .detail { padding-top: 24px; }
  .detail--hero { padding-top: 0; }
  .band { padding: 36px 0; }
  .band__title { font-size: 1.45rem; }
  .detail__title, .page__title, .profile__title { font-size: 1.9rem; }
  .parallel { grid-template-columns: 1fr; }
  .parallel > :nth-child(odd) { border-right: 0; padding-right: 0; }
  .parallel > :nth-child(even) { padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px dashed var(--c-line); color: var(--c-text-2); }
  .motto { font-size: 1rem; }
  .rich .richtext-image.left, .rich .richtext-image.right { float: none; max-width: 100%; margin: 1em auto; }
  .facts { grid-template-columns: 1fr; gap: 0; }
  .comment-form__row { grid-template-columns: 1fr; }
  .comment-form { padding: 16px; }
  .people-plate { padding: 18px; }
  .people-plate__row { grid-template-columns: 72px minmax(0, 1fr); gap: 14px; }
  .people-plate__photo { width: 72px; height: 72px; }
  .people-plate__name { font-size: 1.1rem; }
  .comments__replies { margin-left: 10px; }
  .facts dd { margin-bottom: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* «Найти на странице» в длинных списках (участники ВОВ) */
.text-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; max-width: 860px; margin: 0 0 24px; padding: 14px 16px; background: var(--c-cream); border-radius: 6px; position: sticky; top: 60px; z-index: 5; box-shadow: 0 2px 6px rgba(77,59,59,.08); }
.text-filter label { display: flex; align-items: center; gap: 6px; font-weight: 500; }
.text-filter svg { width: 18px; height: 18px; }
.text-filter input { flex: 1 1 220px; padding: 9px 12px; border: 1px solid var(--c-line, #e2d6c6); border-radius: 4px; font: inherit; }
.text-filter small { color: var(--c-text-2); }
