/* =========================================================
   Московское казачье братство — стили сайта
   Цвета и шрифты задаются переменными ниже.
   ========================================================= */
@import url('../fonts/fonts.css');

:root {
  --navy: #141d33;
  --navy-2: #1c2846;
  --navy-3: #26355a;
  --crimson: #8b1e2d;
  --crimson-2: #a3283a;
  --gold: #b08a3e;
  --gold-2: #cfae68;
  --gold-3: #e9d6a6;
  --ivory: #f7f1e3;
  --parchment: #fbf8f2;
  --paper: #ffffff;
  --cream: #f5efe3;
  --ink: #221d17;
  --ink-2: #4a4237;
  --muted: #6e6455;
  --line: #e8dfcc;
  --line-2: #d3c39f;

  --serif: 'Cormorant Garamond', Georgia, 'Times New Roman', serif;
  --display: 'Cormorant Garamond', Georgia, serif;

  --wrap: 1200px;
  --gutter: clamp(16px, 4vw, 40px);
  --radius: 8px;
  --r: 16px;
  --shadow: 0 1px 2px rgba(20, 29, 51, .06), 0 8px 24px rgba(20, 29, 51, .08);
  --shadow-lg: 0 2px 4px rgba(20, 29, 51, .08), 0 18px 48px rgba(20, 29, 51, .16);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  background: var(--parchment);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 19.5px;
  font-weight: 500;
  line-height: 1.6;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--crimson); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--crimson-2); }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 700; line-height: 1.12; color: var(--navy); margin: 0 0 .5em; letter-spacing: .005em; }
h1 { font-size: clamp(38px, 5.4vw, 64px); }
h2 { font-size: clamp(30px, 3.8vw, 46px); }
h3 { font-size: clamp(23px, 2.4vw, 29px); }
h4 { font-size: 22px; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.wrap--narrow { max-width: 860px; }

/* ---------- Кнопки ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  min-height: 48px; padding: 10px 26px;
  font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .14em; text-transform: uppercase;
  text-decoration: none; border: 1px solid transparent; border-radius: 10px;
  cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s;
}
.btn--gold { background: linear-gradient(180deg, #d3b46f, #b08a3e); color: var(--navy); border-color: #9c7a35; }
.btn--gold:hover { background: linear-gradient(180deg, #ddc07e, #bb954a); color: var(--navy); }
.btn--ghost { border-color: rgba(233, 214, 166, .6); color: var(--gold-3); background: rgba(20, 29, 51, .25); }
.btn--ghost:hover { border-color: var(--gold-2); color: #fff; background: rgba(20, 29, 51, .45); }
.btn--line { border-color: var(--line-2); color: var(--navy); background: transparent; }
.btn--line:hover { border-color: var(--gold); color: var(--crimson); }
.btn--crimson { background: var(--crimson); color: #fff; }
.btn--crimson:hover { background: var(--crimson-2); color: #fff; }
.btn svg { width: 18px; height: 18px; flex: none; }

.more {
  font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--crimson); text-decoration: none; display: inline-flex; align-items: center; gap: .4em;
}
.more::after { content: '→'; font-family: var(--serif); letter-spacing: 0; transition: transform .2s; }
.more:hover::after { transform: translateX(4px); }

/* ---------- Орнаменты ---------- */
.ornament { display: flex; align-items: center; justify-content: center; gap: 14px; color: var(--gold); margin: 6px 0 0; }
.ornament::before, .ornament::after { content: ''; height: 1px; flex: 0 1 90px; background: linear-gradient(90deg, transparent, currentColor); }
.ornament::after { background: linear-gradient(270deg, transparent, currentColor); }
.ornament svg { width: 30px; height: 14px; flex: none; }
.ornament--left { justify-content: flex-start; }
.ornament--left::before { display: none; }

.eyebrow {
  display: block; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .24em; text-transform: uppercase;
  color: var(--crimson); margin-bottom: 10px;
}
.section-head { text-align: center; margin: 0 auto clamp(32px, 5vw, 56px); max-width: 760px; }
.section-head h2 { margin-bottom: 8px; }
.section-head p { color: var(--muted); margin: 16px auto 0; max-width: 620px; }
.section-head--left { text-align: left; margin-left: 0; }

/* ---------- Шапка ---------- */
.topline { height: 4px; background: linear-gradient(90deg, var(--crimson) 0 33.33%, var(--gold) 33.33% 66.66%, var(--crimson) 66.66%); }
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(20, 29, 51, .97);
  backdrop-filter: saturate(140%) blur(6px);
  border-bottom: 1px solid rgba(176, 138, 62, .55);
  box-shadow: 0 1px 0 rgba(0, 0, 0, .25);
}
.header__in { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ivory); min-width: 0; }
.brand__mark { width: 58px; height: 58px; flex: none; border-radius: 50%; background: #f6efde; border: 1.5px solid var(--gold-2); box-shadow: 0 0 0 3px rgba(207, 174, 104, .14), 0 4px 14px rgba(0, 0, 0, .3); display: grid; place-items: center; overflow: hidden; }
.brand__mark img { width: 100%; height: 100%; object-fit: cover; }
.brand__mark svg { width: 30px; height: 30px; }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; min-width: 0; }
.brand__small { font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .26em; text-transform: uppercase; color: var(--gold-2); }
.brand__big { font-family: var(--display); font-weight: 700; font-size: 25px; color: var(--ivory); white-space: nowrap; }
.brand:hover { color: #fff; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  position: relative; display: block; padding: 10px 10px; white-space: nowrap;
  font-family: var(--display); font-weight: 700; font-size: 15.5px; letter-spacing: .09em; text-transform: uppercase;
  color: rgba(247, 241, 227, .86); text-decoration: none; transition: color .2s;
}
.nav a:hover { color: var(--gold-3); }
.nav a[aria-current="page"] { color: var(--gold-2); }
.nav a[aria-current="page"]::after {
  content: ''; position: absolute; left: 50%; bottom: 2px; width: 6px; height: 6px; background: var(--gold-2);
  transform: translateX(-50%) rotate(45deg);
}
.header__social { display: flex; gap: 8px; margin-left: 10px; }
.header .wrap { max-width: 1340px; }
.header .brand { flex: none; }
@media (max-width: 1400px) { .header__social { display: none; } }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 50%;
  border: 1px solid rgba(207, 174, 104, .55); color: var(--gold-2); transition: background .2s, color .2s, border-color .2s;
}
.icon-btn:hover { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }
.icon-btn svg { width: 18px; height: 18px; }

.burger { display: none; width: 48px; height: 48px; border: 1px solid rgba(207, 174, 104, .55); border-radius: var(--radius); background: transparent; color: var(--gold-2); cursor: pointer; padding: 0; place-items: center; }
.burger svg { width: 24px; height: 24px; }
.mnav { display: none; }

@media (max-width: 1180px) {
  .nav, .header__social { display: none; }
  .burger { display: grid; }
  .mnav {
    display: block; position: fixed; inset: 0; z-index: 60; background: var(--navy);
    padding: 20px var(--gutter) 40px; overflow-y: auto;
    transform: translateX(100%); transition: transform .3s ease; visibility: hidden;
  }
  .mnav.is-open { transform: none; visibility: visible; }
  .mnav__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; }
  .mnav a.mnav__link {
    display: flex; justify-content: space-between; align-items: center; padding: 16px 4px; border-bottom: 1px solid rgba(207, 174, 104, .22);
    font-family: var(--display); font-weight: 700; font-size: 24px; letter-spacing: .08em; text-transform: uppercase; color: var(--ivory); text-decoration: none;
  }
  .mnav a.mnav__link[aria-current="page"] { color: var(--gold-2); }
  .mnav a.mnav__link::after { content: '›'; color: var(--gold); font-size: 28px; }
  .mnav__social { display: flex; gap: 12px; margin-top: 28px; }
  .mnav__social .btn { flex: 1; }
}
@media (max-width: 520px) {
  :root { --header-h: 66px; }
  .brand__mark { width: 48px; height: 48px; }
  .brand__big { font-size: 20px; }
  .brand__small { font-size: 11px; letter-spacing: .2em; }
}
body.menu-open, body.no-scroll { overflow: hidden; }

/* ---------- Главный экран ---------- */
.hero { --hw: min(100vw, 1240px); position: relative; color: var(--ink); background: var(--parchment); overflow: hidden; isolation: isolate; border-bottom: 1px solid var(--line-2); }
.hero__bg { position: absolute; left: 50%; top: 0; width: var(--hw); transform: translateX(-50%); z-index: -2; }
.hero__bg img { width: 100%; height: auto;
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 55%, transparent 88%);
  -webkit-mask-composite: source-in; mask-image: linear-gradient(90deg, transparent 0, #000 7%, #000 93%, transparent 100%), linear-gradient(180deg, #000 55%, transparent 88%); mask-composite: intersect; }
.hero::before { content: ''; position: absolute; inset: 0; z-index: -3; background: linear-gradient(180deg, #f5ecd8 0%, #f7f0e1 45%, var(--parchment) 100%); }
.hero__in { padding-top: calc(var(--hw) * .3); padding-bottom: clamp(48px, 6vw, 80px); text-align: center; position: relative; }
.hero__eyebrow { font-family: var(--display); font-weight: 700; letter-spacing: .3em; text-transform: uppercase; font-size: clamp(12px, 1.5vw, 16px); color: var(--crimson); margin-bottom: 12px; }
.hero h1 { color: var(--navy); font-size: clamp(38px, 7vw, 92px); letter-spacing: .03em; margin: 0; text-transform: uppercase; line-height: .98; text-shadow: 0 1px 0 rgba(255, 255, 255, .6); }
.hero h1 span { display: block; font-size: .6em; letter-spacing: .16em; color: var(--crimson); margin-bottom: .12em; }
.hero .ornament { color: var(--gold); margin: 20px 0 16px; }
.hero__lead { max-width: 700px; margin: 0 auto 28px; font-size: clamp(16.5px, 1.8vw, 20px); color: var(--ink-2); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; }
.hero .btn--ghost { color: var(--navy); border-color: var(--navy); background: rgba(255, 255, 255, .35); }
.hero .btn--ghost:hover { background: var(--navy); color: var(--gold-3); }
@media (max-width: 640px) {
  .hero { --hw: 150vw; }
  .hero__in { padding-top: calc(var(--hw) * .29); }
  .hero__actions .btn { flex: 1 1 140px; }
}

/* Шапка внутренних страниц */
.pagehead { position: relative; background: var(--navy); color: var(--ivory); isolation: isolate; overflow: hidden; }
.pagehead__bg { position: absolute; inset: 0; z-index: -2; opacity: .26; }
.pagehead__bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; filter: sepia(.4); }
.pagehead::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 29, 51, .55), rgba(20, 29, 51, .92)); }
.pagehead__in { padding-top: clamp(44px, 7vw, 84px); padding-bottom: clamp(40px, 6vw, 72px); text-align: center; }
.pagehead h1 { color: #f6ead0; margin: 0; }
.pagehead .ornament { color: var(--gold-2); margin-top: 16px; }
.pagehead p.pagehead__lead { max-width: 720px; margin: 18px auto 0; color: rgba(247, 241, 227, .86); }
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 0 0 16px; padding: 0; list-style: none; font-family: var(--display); font-weight: 700; font-size: 14px; letter-spacing: .14em; text-transform: uppercase; }
.crumbs li { color: rgba(247, 241, 227, .6); }
.crumbs li + li::before { content: '◆'; font-size: 8px; color: var(--gold); margin-right: 10px; vertical-align: 2px; }
.crumbs a { color: var(--gold-2); text-decoration: none; }
.crumbs a:hover { color: var(--gold-3); }

/* ---------- Секции ---------- */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section--paper { background: var(--cream); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section--dark { background: var(--navy); color: var(--ivory); }
.section--dark h2, .section--dark h3 { color: #f6ead0; }
.section--dark .eyebrow { color: var(--gold-2); }
.section--dark .section-head p { color: rgba(247, 241, 227, .75); }
.section--tight { padding: clamp(40px, 6vw, 72px) 0; }

/* ---------- Карточки ---------- */
.grid { display: grid; gap: clamp(18px, 2.4vw, 30px); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 980px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grid--3, .grid--4, .grid--2 { grid-template-columns: minmax(0, 1fr); } }

.card {
  position: relative; display: flex; flex-direction: column; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow);
  transition: transform .25s, box-shadow .25s; text-decoration: none; color: inherit; overflow: hidden;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #d9ccb0; }
.card__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
a.card:hover .card__img img { transform: scale(1.04); }
.card__img::after { content: ''; position: absolute; inset: 8px; border: 1px solid rgba(247, 241, 227, .55); border-radius: 10px; pointer-events: none; }
.card__body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card__body h3 { margin: 0; }
.card__body p { margin: 0; color: var(--ink-2); font-size: 18px; line-height: 1.45; }
.card__body .more { margin-top: auto; padding-top: 6px; }
.card__date { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

/* Карточка-новость */
.news-card .card__img { aspect-ratio: 16 / 10; }
.news-card h3 { font-size: 24px; }
.news-card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* Плитки проектов */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.tile {
  position: relative; display: block; aspect-ratio: 3 / 4; overflow: hidden; border-radius: var(--r);
  color: #fff; text-decoration: none; background: var(--navy-2); isolation: isolate;
}
.tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .7s ease, filter .3s; filter: saturate(.9); }
.tile::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(20, 29, 51, 0) 30%, rgba(20, 29, 51, .55) 58%, rgba(20, 29, 51, .95) 100%); }
.tile::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(207, 174, 104, .45); transition: border-color .3s, inset .3s; pointer-events: none; }
.tile:hover img { transform: scale(1.05); filter: saturate(1); }
.tile:hover::after { border-color: var(--gold-2); inset: 7px; }
.tile__txt { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 24px; }
.tile__txt h3 { color: #f6ead0; font-size: 25px; margin: 0 0 6px; text-shadow: 0 1px 12px rgba(10, 14, 26, .6); }
.tile__txt span { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 14px; color: var(--gold-2); }
.tile--wide { grid-column: span 2; aspect-ratio: auto; }
@media (max-width: 980px) { .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .tiles { grid-template-columns: minmax(0, 1fr); } .tile, .tile--wide { grid-column: auto; aspect-ratio: 4 / 3; } }

/* ---------- Цитата / стихи ---------- */
.verse-band { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); text-align: center; }
.verse-emblem { width: clamp(150px, 18vw, 210px); height: auto; margin: 0 auto clamp(18px, 3vw, 30px); }
.emblem-404 { width: 180px; height: auto; margin: 0 auto 18px; }
.verse {
  font-family: var(--display); font-style: italic; font-weight: 500; font-size: clamp(24px, 3vw, 34px); line-height: 1.35; color: var(--navy);
  margin: 0 auto; max-width: 760px;
}
.verse cite { display: block; margin-top: 20px; font-style: normal; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }

/* ---------- Календарь и соцсети ---------- */
.split { display: grid; grid-template-columns: 1.2fr 1fr; gap: clamp(28px, 4vw, 56px); align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: minmax(0, 1fr); } }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(22px, 3vw, 36px); position: relative; box-shadow: var(--shadow); }
.panel::before { content: ''; position: absolute; inset: 6px; border: 1px solid var(--line); pointer-events: none; }
.panel > * { position: relative; }
.panel h3 { margin-bottom: 4px; }
.panel .ornament { margin-bottom: 18px; }

.cal { list-style: none; margin: 0; padding: 0; }
.cal li { display: grid; grid-template-columns: 76px 1fr; gap: 18px; align-items: center; padding: 14px 0; border-bottom: 1px dashed var(--line-2); }
.cal li:last-child { border-bottom: 0; }
.cal__date { text-align: center; border: 1px solid var(--crimson); padding: 6px 4px 7px; background: #fff; line-height: 1; }
.cal__d { display: block; font-family: var(--display); font-weight: 700; font-size: 34px; color: var(--crimson); }
.cal__m { display: block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--navy); margin-top: 4px; }
.cal__t { font-size: 19px; line-height: 1.35; }
.cal__t small { display: block; color: var(--muted); font-size: 14px; margin-top: 3px; }
.cal__badge { display: inline-block; font-family: var(--display); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: var(--crimson); padding: 2px 8px; margin-left: 6px; vertical-align: 2px; }
.cal-empty { color: var(--muted); }

.social-list { display: grid; gap: 14px; }
.social {
  display: flex; align-items: center; gap: 16px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--ink);
  transition: border-color .2s, transform .2s;
}
.social:hover { border-color: var(--gold); transform: translateX(3px); color: var(--ink); }
.social__ic { width: 48px; height: 48px; flex: none; border-radius: 50%; display: grid; place-items: center; color: #fff; }
.social__ic svg { width: 24px; height: 24px; }
.social__ic--tg { background: #229ed9; }
.social__ic--vk { background: #0077ff; }
.social b { display: block; font-family: var(--display); font-size: 21px; color: var(--navy); line-height: 1.2; }
.social span { font-size: 14.5px; color: var(--muted); }
.partner { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-decoration: none; color: var(--navy); margin-top: 14px; }
.partner img { width: 56px; height: 56px; object-fit: contain; }
.partner b { font-family: var(--display); font-size: 20px; line-height: 1.2; }
.partner:hover { border-color: var(--gold); color: var(--crimson); }

/* ---------- Статья ---------- */
.article { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 64px); position: relative; }
.prose { font-size: 20.5px; line-height: 1.65; color: var(--ink); }
.prose > *:first-child { margin-top: 0; }
.prose h2 { font-size: clamp(28px, 3vw, 36px); margin: 1.4em 0 .5em; }
.prose h3 { font-size: clamp(24px, 2.4vw, 28px); margin: 1.4em 0 .5em; }
.prose p { margin: 0 0 1.05em; }
.prose blockquote { margin: 1.4em 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--gold); font-style: italic; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 1.3em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .35em; }
.prose li::marker { color: var(--crimson); }
.prose figure { margin: 1.8em 0; }
.prose figure img { width: 100%; max-height: 80vh; object-fit: contain; background: #f1eadb; border: 1px solid var(--line); border-radius: 12px; cursor: zoom-in; }
.prose figcaption { font-size: 14.5px; color: var(--muted); text-align: center; margin-top: 8px; font-style: italic; }
.prose .pics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 1.8em 0; }
.prose .pics img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border: 1px solid var(--line); cursor: zoom-in; }
.prose .pics--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .prose .pics, .prose .pics--3 { grid-template-columns: minmax(0, 1fr); } .prose { font-size: 19px; } }
.prose .lead { font-size: 1.12em; color: var(--ink-2); }
.prose .dropcap::first-letter { float: left; font-family: var(--display); font-weight: 700; font-size: 3.6em; line-height: .82; padding: .06em .1em 0 0; color: var(--crimson); }
.prose .poem { white-space: pre-line; font-family: var(--display); font-size: 1.22em; line-height: 1.5; font-weight: 500; color: var(--navy); }
.doc-link { display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px; border: 1px solid var(--line-2); background: #fff; text-decoration: none; font-family: var(--display); font-weight: 700; letter-spacing: .06em; font-size: 18px; color: var(--navy); }
.doc-link:hover { border-color: var(--gold); color: var(--crimson); }
.doc-link svg { width: 22px; height: 22px; color: var(--crimson); }

.meta { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; justify-content: center; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; color: var(--gold-2); }
.cover { margin: calc(-1 * clamp(24px, 5vw, 64px)) calc(-1 * clamp(24px, 5vw, 64px)) clamp(24px, 4vw, 44px); }
.cover img { width: 100%; max-height: 560px; object-fit: cover; cursor: zoom-in; }
.article > .cover:first-child img, .article > .cover:first-child { border-radius: var(--r) var(--r) 0 0; overflow: hidden; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 28px; }
.post-nav a { display: block; padding: 16px 20px; border: 1px solid var(--line); background: var(--paper); text-decoration: none; color: var(--navy); }
.post-nav a:hover { border-color: var(--gold); }
.post-nav small { display: block; font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--crimson); font-size: 13px; }
.post-nav span { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.25; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 640px) { .post-nav { grid-template-columns: minmax(0, 1fr); } .post-nav .next { grid-column: auto; } }
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 32px; padding-top: 22px; border-top: 1px solid var(--line); }
.share b { font-family: var(--display); letter-spacing: .12em; text-transform: uppercase; font-size: 15px; color: var(--muted); margin-right: 6px; }
.share a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line-2); text-decoration: none; color: var(--navy); font-size: 15px; background: #fff; }
.share a:hover { border-color: var(--gold); }
.share svg { width: 16px; height: 16px; }

/* ---------- Фильтр новостей ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 36px; }
.chip { min-height: 42px; padding: 8px 18px; border: 1px solid var(--line-2); background: transparent; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .12em; color: var(--navy); cursor: pointer; border-radius: 40px; }
.chip:hover { border-color: var(--gold); }
.chip[aria-pressed="true"] { background: var(--navy); color: var(--gold-3); border-color: var(--navy); }

/* ---------- Правление ---------- */
.leaders { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 3vw, 36px); max-width: 920px; margin: 0 auto; }
.person { text-align: center; }
.person__photo { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--r); background: #d9ccb0; border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.person__photo::after { content: ''; position: absolute; inset: 8px; border-radius: 10px; border: 1px solid rgba(247, 241, 227, .7); pointer-events: none; }
.person__photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 20%; }
.person__role { display: block; margin-top: 18px; font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }
.person__name { font-family: var(--display); font-weight: 700; font-size: 26px; color: var(--navy); line-height: 1.2; margin-top: 4px; }
.leaders .person__name { font-size: 30px; }
.council { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 3vw, 32px); }
@media (max-width: 860px) { .council { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .leaders, .council { grid-template-columns: minmax(0, 1fr); max-width: 360px; margin: 0 auto; } }

/* ---------- О нас ---------- */
.principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); }
@media (max-width: 900px) { .principles { grid-template-columns: minmax(0, 1fr); } }
.principle { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px 28px; text-align: center; box-shadow: var(--shadow); }
.principle__ic { width: 64px; height: 64px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--gold); color: var(--crimson); background: #fff; }
.principle__ic svg { width: 30px; height: 30px; }
.principle h3 { font-size: 25px; margin-bottom: 10px; }
.principle p { margin: 0; color: var(--ink-2); font-size: 16px; }
.doings { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 700px) { .doings { grid-template-columns: minmax(0, 1fr); } }
.doings li { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 14px; background: rgba(247, 241, 227, .06); border: 1px solid rgba(207, 174, 104, .3); color: rgba(247, 241, 227, .92); }
.doings li::before { content: ''; flex: none; width: 10px; height: 10px; margin-top: 10px; background: var(--gold-2); transform: rotate(45deg); }
.poem-frame { max-width: 720px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line-2); border-radius: var(--r); padding: clamp(28px, 5vw, 56px); text-align: center; position: relative; box-shadow: var(--shadow); }
.poem-frame::before { content: ''; position: absolute; inset: 8px; border: 1px solid var(--line); border-radius: 10px; pointer-events: none; }
.poem-frame h3 { letter-spacing: .1em; text-transform: uppercase; font-size: 24px; }
.poem-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; text-align: left; margin-top: 24px; }
.poem-cols p { font-family: var(--display); font-size: 21px; line-height: 1.45; font-weight: 500; color: var(--navy); margin: 0 0 1.2em; }
.poem-cols p.refrain { font-style: italic; color: var(--crimson); }
@media (max-width: 680px) { .poem-cols { grid-template-columns: minmax(0, 1fr); } }
.poem-sign { margin-top: 10px; font-style: italic; color: var(--muted); }

/* ---------- Галерея ---------- */
.gallery { columns: 4 200px; column-gap: 12px; }
.gallery a { position: relative; display: block; margin-bottom: 12px; break-inside: avoid; overflow: hidden; border-radius: 12px; background: #e9dfca; cursor: zoom-in; }
.gallery img { width: 100%; height: auto; transition: transform .7s cubic-bezier(.2,.7,.1,1), filter .3s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery--contain a { background: #fff; border: 1px solid var(--line); }
.gallery--contain img { padding: 8px; }
.gallery a.more-photos::after { content: attr(data-more); position: absolute; inset: 0; display: grid; place-items: center; background: rgba(20, 29, 51, .72); color: #fff; font-family: var(--display); font-weight: 700; font-size: 28px; }

/* Лайтбокс */
.lb { position: fixed; inset: 0; z-index: 100; background: rgba(10, 14, 26, .94); display: none; align-items: center; justify-content: center; }
.lb.is-open { display: flex; }
.lb img { max-width: 94vw; max-height: 86vh; object-fit: contain; box-shadow: 0 10px 40px rgba(0, 0, 0, .5); user-select: none; }
.lb__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(207, 174, 104, .6); background: rgba(20, 29, 51, .6); color: var(--gold-3); display: grid; place-items: center; cursor: pointer; }
.lb__btn:hover { background: var(--gold-2); color: var(--navy); }
.lb__btn svg { width: 24px; height: 24px; }
.lb__close { top: 16px; right: 16px; }
.lb__prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb__next { right: 16px; top: 50%; transform: translateY(-50%); }
.lb__count { position: absolute; bottom: 14px; left: 0; right: 0; text-align: center; color: rgba(247, 241, 227, .7); font-family: var(--display); letter-spacing: .14em; font-size: 15px; }
@media (max-width: 640px) { .lb__prev, .lb__next { top: auto; bottom: 10px; transform: none; } .lb__prev { left: 12px; } .lb__next { right: 12px; } }

/* ---------- Аудио ---------- */
.song { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0 0 clamp(36px, 5vw, 56px); }
.song--with-img { grid-template-columns: 280px minmax(0, 1fr); gap: 32px; }
@media (max-width: 760px) { .song--with-img { grid-template-columns: minmax(0, 1fr); } }
.song__img img { border-radius: var(--r); }


/* ---------- Художники / поэты ---------- */
.feature { display: grid; grid-template-columns: 320px minmax(0, 1fr); gap: clamp(24px, 4vw, 48px); align-items: start; }
.feature + .feature { margin-top: clamp(48px, 6vw, 80px); padding-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.feature__img img { width: 100%; border-radius: var(--r); border: 1px solid var(--line-2); box-shadow: var(--shadow); cursor: zoom-in; }
.feature__body h2 { margin-bottom: 6px; }
.feature__body .gallery { margin-top: 24px; }
.feature--rev { grid-template-columns: minmax(0, 1fr) 320px; }
.feature--rev .feature__img { order: 2; }
@media (max-width: 820px) { .feature, .feature--rev { grid-template-columns: minmax(0, 1fr); } .feature--rev .feature__img { order: 0; } .feature__img { max-width: 420px; } }
.toc { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin: 0 0 clamp(36px, 5vw, 56px); padding: 0; list-style: none; }
.toc a { display: block; padding: 8px 16px; border-radius: 40px; border: 1px solid var(--line-2); text-decoration: none; color: var(--navy); font-family: var(--display); font-weight: 700; font-size: 17px; background: var(--paper); }
.toc a:hover { border-color: var(--gold); color: var(--crimson); }

/* ---------- Контакты ---------- */
.contact-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; max-width: 900px; margin: 0 auto; }
@media (max-width: 680px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }
.contact-card { text-align: center; padding: 36px 28px; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--shadow); text-decoration: none; color: var(--ink); transition: transform .2s, box-shadow .2s; }
.contact-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.contact-card .social__ic { width: 72px; height: 72px; margin: 0 auto 18px; }
.contact-card .social__ic svg { width: 34px; height: 34px; }
.contact-card h3 { margin-bottom: 6px; }
.contact-card p { color: var(--muted); margin: 0 0 18px; }
.contact-card .more { justify-content: center; }
.contact-extra { max-width: 900px; margin: 28px auto 0; display: grid; gap: 12px; }
.contact-extra a, .contact-extra div { display: flex; align-items: center; gap: 12px; padding: 16px 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--navy); font-size: 18px; }
.contact-extra svg { width: 22px; height: 22px; color: var(--crimson); flex: none; }

/* ---------- Форма «Написать нам» (Контакты) ---------- */
.fb { max-width: 780px; margin: 0 auto; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--r); box-shadow: var(--shadow); padding: clamp(22px, 4.5vw, 44px); }
.fb__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
@media (max-width: 640px) { .fb__row { grid-template-columns: minmax(0, 1fr); } }
.fb__field { margin-bottom: 18px; }
.fb label { display: block; font-family: var(--display); font-weight: 700; font-size: 18px; letter-spacing: .03em; color: var(--navy); margin-bottom: 6px; }
.fb__req { color: var(--crimson); }
.fb input[type=text], .fb input[type=email], .fb input[type=tel], .fb textarea {
  width: 100%; font: inherit; font-size: 18px; line-height: 1.45; color: var(--ink); background: #fffdf9;
  padding: 12px 15px; border: 1px solid var(--line-2); border-radius: 10px; transition: border-color .2s, box-shadow .2s;
  -webkit-appearance: none; appearance: none;
}
.fb textarea { min-height: 170px; resize: vertical; }
.fb input:focus, .fb textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(207, 174, 104, .28); background: #fff; }
.fb [aria-invalid="true"] { border-color: var(--crimson); box-shadow: 0 0 0 3px rgba(139, 30, 45, .12); }
.fb__hint { font-size: 16px; color: var(--muted); margin: -8px 0 18px; }
.fb__hint.is-err { color: var(--crimson); }
.fb__hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.fb label.fb__agree { display: flex; gap: 12px; align-items: flex-start; font-family: var(--serif); font-weight: 500; font-size: 16.5px; letter-spacing: 0; line-height: 1.45; color: var(--ink-2); margin: 4px 0 0; cursor: pointer; }
.fb__agree input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--crimson); }
.fb__agree.is-err span { color: var(--crimson); }
.fb__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 24px; }
.fb__actions .btn[disabled] { opacity: .6; cursor: progress; }
.fb__status { margin: 0; font-size: 17px; flex: 1 1 260px; }
.fb__status.is-err { color: var(--crimson); }
.fb__status.is-ok { color: #2f5d22; }
.fb__done { text-align: center; padding: clamp(10px, 3vw, 24px) 0; }
.fb__done-ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--cream); border: 1px solid var(--line-2); color: var(--crimson); }
.fb__done-ic svg { width: 30px; height: 30px; }
.fb__done h3 { margin-bottom: 8px; }
.fb__done p { color: var(--ink-2); max-width: 520px; margin: 0 auto 20px; }
.fb__agree a { color: var(--crimson); }
.politika__date { font-family: var(--display); font-weight: 700; font-size: 15px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }
.fb--page { margin-top: 40px; text-align: center; }
.fb--page h1 { font-size: clamp(32px, 5vw, 48px); }

/* ---------- Подвал ---------- */
.footer { background: #0f1628; color: rgba(247, 241, 227, .72); padding: clamp(48px, 6vw, 72px) 0 0; border-top: 3px solid var(--gold); font-size: 15.5px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 36px; }
@media (max-width: 860px) { .footer__grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } }
.footer h4 { font-family: var(--display); color: var(--gold-2); font-size: 15px; letter-spacing: .22em; text-transform: uppercase; margin-bottom: 14px; }
.footer a { color: rgba(247, 241, 227, .86); text-decoration: none; }
.footer a:hover { color: var(--gold-3); }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer .brand { margin-bottom: 16px; }
.footer .brand__mark { width: 76px; height: 76px; }
.brand__mark { transition: width .35s var(--ease), height .35s var(--ease), margin .35s var(--ease); }
/* медальон-эмблема в шапке: на широком экране крупный и чуть «свисает» под шапку, при прокрутке уменьшается */
@media (min-width: 1181px) {
  .header .brand__mark { width: 86px; height: 86px; margin: 8px 0 -28px; position: relative; z-index: 2; }
  .header.is-scrolled .brand__mark { width: 50px; height: 50px; margin: 0; }
}
@media (max-width: 640px) { .header .brand__mark, .header.is-scrolled .brand__mark { width: 46px; height: 46px; } }
.footer__bottom { margin-top: 44px; padding: 18px 0 22px; border-top: 1px solid rgba(207, 174, 104, .2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; font-size: 14px; color: rgba(247, 241, 227, .5); }
.footer__social { display: flex; gap: 10px; margin-top: 18px; }

/* ---------- Разное ---------- */
.center { text-align: center; }
.mt-l { margin-top: clamp(32px, 4vw, 48px); }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--gold-2); color: var(--navy); padding: 10px 16px; }
.skip:focus { left: 8px; }
.notice { padding: 14px 18px; border: 1px dashed var(--line-2); background: #fff; color: var(--muted); font-size: 15px; }
.reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media print { .header, .footer, .totop, .share, .post-nav { display: none !important; } body { background: #fff; } }
@media (max-width: 640px) {
  .btn { font-size: 15.5px; letter-spacing: .1em; padding: 10px 18px; white-space: nowrap; }
  .hero__eyebrow { letter-spacing: .18em; }
  .eyebrow { letter-spacing: .18em; font-size: 14px; }
}
.prose .poem { white-space: normal; font-family: var(--display); font-size: 1.24em; line-height: 1.5; font-weight: 600; color: var(--navy); margin: 0 0 1.1em; }
.prose .poem--sep { letter-spacing: .4em; color: var(--gold); }
.prose .poem-title { margin: 0 0 .6em; font-size: 1.5em; color: var(--crimson); font-style: italic; }
@media (max-width: 640px) {
  .crumbs li:has(#post-crumb) { display: none; }
  .hero__eyebrow { letter-spacing: .12em; font-size: 11.5px; }
  .hero__in { padding-top: calc(var(--hw) * .31); }
}

/* =========================================================
   Версия 3: плеер с пластинкой, меню разделов, мягкие анимации
   ========================================================= */
:root { --ease: cubic-bezier(.2, .7, .1, 1); }
html { overflow-x: clip; }

/* Прогресс прокрутки */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 120; pointer-events: none; }
.progress span { display: block; height: 100%; background: linear-gradient(90deg, var(--crimson), var(--gold-2)); transform-origin: 0 50%; transform: scaleX(0); }
.header { transition: box-shadow .3s; }
.header.is-scrolled { box-shadow: 0 6px 24px rgba(10, 14, 26, .35); }
.header__in { transition: min-height .3s var(--ease); }
.header.is-scrolled .header__in { min-height: 64px; }

/* Кнопка «Слушать» и эквалайзер */
.header__tools { display: flex; align-items: center; gap: 10px; }
.listen-btn { display: inline-flex; align-items: center; gap: 10px; height: 40px; padding: 0 16px 0 14px; border-radius: 40px; border: 1px solid rgba(207, 174, 104, .6); color: var(--gold-3); text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 16px; letter-spacing: .1em; text-transform: uppercase; transition: background .25s, color .25s; }
.listen-btn:hover { background: var(--gold-2); color: var(--navy); }
.eq { display: inline-flex; align-items: flex-end; gap: 2px; width: 16px; height: 14px; }
.eq i { width: 3px; height: 30%; background: currentColor; border-radius: 2px; }
html.is-playing .eq i { animation: eq .9s ease-in-out infinite; }
html.is-playing .eq i:nth-child(2) { animation-delay: -.3s; }
html.is-playing .eq i:nth-child(3) { animation-delay: -.6s; }
html.is-playing .eq i:nth-child(4) { animation-delay: -.15s; }
@keyframes eq { 0%, 100% { height: 25%; } 50% { height: 100%; } }
@media (max-width: 560px) { .listen-btn .l { display: none; } .listen-btn { padding: 0 12px; } }

/* Меню разделов */
.subnav { position: fixed; left: 0; right: 0; top: 64px; z-index: 45; background: rgba(251, 248, 242, .96); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); box-shadow: 0 6px 18px rgba(20, 29, 51, .06); transform: translateY(-110%); opacity: 0; visibility: hidden; transition: transform .45s var(--ease), opacity .3s, visibility 0s .45s; }
.subnav.is-on { transform: none; opacity: 1; visibility: visible; transition: transform .45s var(--ease), opacity .3s; }
.subnav__in { display: flex; align-items: center; gap: 14px; height: 52px; }
.subnav__label { flex: none; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--crimson); }
.subnav__list { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent); mask-image: linear-gradient(90deg, #000 90%, transparent); padding-right: 30px; }
.subnav__list::-webkit-scrollbar { display: none; }
.subnav__list a { flex: none; padding: 5px 14px; border-radius: 40px; font-family: var(--display); font-weight: 700; font-size: 17px; color: var(--navy); text-decoration: none; white-space: nowrap; border: 1px solid transparent; transition: background .25s, color .25s, border-color .25s; }
.subnav__list a:hover { border-color: var(--line-2); }
.subnav__list a.is-active { background: var(--navy); color: var(--gold-3); }
@media (max-width: 640px) { .subnav__label { display: none; } }

/* Мягкое появление */
[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: calc(var(--d, 0) * 90ms); }
[data-reveal].is-in { opacity: 1; transform: none; }
.split .w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .1em; margin-bottom: -.1em; }
.split .w > span { display: inline-block; transform: translateY(105%); transition: transform .9s var(--ease); transition-delay: calc(var(--i, 0) * 40ms); }
.split.is-in .w > span { transform: none; }
.card, .tile, .person, .principle, .contact-card { transition: transform .4s var(--ease), box-shadow .4s; }
.person:hover .person__photo img { transform: scale(1.04); }
.person__photo img { transition: transform .9s var(--ease); }
.principle:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* Скруглённые карточки новостей */
#latest-news .grid { gap: clamp(18px, 2.4vw, 30px); }
.news-card .card__img, .card__img { border-radius: var(--r) var(--r) 0 0; }
.card__go { position: absolute; right: 14px; top: 14px; z-index: 2; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); color: var(--crimson); display: grid; place-items: center; transform: scale(0); transition: transform .4s var(--ease); box-shadow: var(--shadow); }
.card__go svg { width: 18px; height: 18px; }
a.card:hover .card__go { transform: scale(1); }
.card__noimg { aspect-ratio: 16 / 10; background: radial-gradient(ellipse at 50% 45%, #fffdf8, #f1e8d4); display: grid; place-items: center; border-radius: var(--r) var(--r) 0 0; }
.card__noimg img { width: 46%; }
.news-card h3 { font-size: 25px; }
.news-card .more { display: none; }
.tile::after { border-radius: 10px; }

/* Галерея на странице новости */
#post .gallery { margin-top: 10px; }

/* ---------- Проигрыватель с пластинкой ---------- */
.section--listen { background: radial-gradient(120% 120% at 20% 0%, #23305a 0%, var(--navy) 55%, #0d1322 100%); color: var(--ivory); }
.section--listen h2, .section--listen h3 { color: #f6ead0; }
.section--listen .eyebrow { color: var(--gold-2); }
.section--listen .ornament { color: var(--gold-2); margin: 10px 0 0; }
.listen { display: grid; grid-template-columns: .95fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.listen > * { min-width: 0; }
@media (max-width: 900px) { .listen { grid-template-columns: minmax(0, 1fr); } }
.listen__lead { font-size: 20px; color: rgba(247, 241, 227, .82); margin: 18px 0 22px; }
.turntable {
  position: relative; aspect-ratio: 1.12 / 1; border-radius: 22px; overflow: hidden;
  background: linear-gradient(145deg, #5a3f24 0%, #3d2a17 45%, #2a1d10 100%);
  box-shadow: inset 0 0 0 1px rgba(207, 174, 104, .35), inset 0 2px 0 rgba(255, 255, 255, .08), 0 26px 70px rgba(0, 0, 0, .5);
}
.turntable::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(95deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 7px); pointer-events: none; }
.turntable::after { content: ''; position: absolute; inset: 10px; border: 1px solid rgba(207, 174, 104, .28); border-radius: 14px; pointer-events: none; }
.turntable__plate { position: absolute; left: 7%; top: 8%; width: 76%; aspect-ratio: 1; border-radius: 50%; background: #120d08; box-shadow: 0 0 0 6px #2a1e12, 0 0 0 7px rgba(207, 174, 104, .5), 0 12px 30px rgba(0, 0, 0, .55); }
.vinyl {
  position: absolute; inset: 3%; border-radius: 50%;
  background: repeating-radial-gradient(circle, #111 0 1.2px, #1c1a18 1.6px 2.6px), #121212;
  box-shadow: inset 0 0 0 2px #000;
  animation: spin 1.9s linear infinite; animation-play-state: paused;
}
.vinyl::before { content: ''; position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 20deg, transparent 0 10%, rgba(255, 255, 255, .13) 14%, transparent 22% 55%, rgba(255, 255, 255, .09) 60%, transparent 68%); }
.vinyl__label { position: absolute; inset: 31%; border-radius: 50%; overflow: hidden; background: #f6efde; box-shadow: 0 0 0 3px var(--crimson), 0 0 0 5px var(--gold); }
.vinyl__label img { width: 100%; height: 100%; object-fit: cover; }
.vinyl__label::after { display: none; content: ''; position: absolute; left: 50%; top: 50%; width: 9%; height: 9%; border-radius: 50%; background: #e9dcc0; transform: translate(-50%, -50%); box-shadow: 0 0 0 2px #0a0a0a; }
@keyframes spin { to { transform: rotate(360deg); } }
.turntable.is-spinning .vinyl, .playlist.is-spinning .vinyl, .player.is-spinning .vinyl { animation-play-state: running; }
.tonearm { position: absolute; right: 7%; top: 8%; width: 30%; height: 76%; pointer-events: none; transform-origin: 72% 10%; transform: rotate(-9deg); transition: transform 1.1s var(--ease); }
.turntable.is-spinning .tonearm { transform: rotate(13deg); }
.tonearm svg { width: 100%; height: 100%; overflow: visible; }
.turntable__btn { position: absolute; right: 7%; bottom: 8%; width: 64px; height: 64px; border-radius: 50%; border: 0; cursor: pointer; background: var(--crimson); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 3px rgba(207, 174, 104, .6), 0 10px 30px rgba(0, 0, 0, .45); transition: transform .3s var(--ease), background .3s; }
.turntable__btn:hover { transform: scale(1.08); background: var(--crimson-2); }
.turntable__btn svg { width: 26px; height: 26px; }
.turntable__led { position: absolute; left: 8%; bottom: 8%; display: flex; align-items: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(233, 214, 166, .65); }
.turntable__led::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #5a4a33; transition: background .3s, box-shadow .3s; }
.turntable.is-spinning .turntable__led::before { background: #f2c14e; box-shadow: 0 0 10px #f2c14e; }
.now { margin: 22px 0 0; min-height: 56px; }
.now small { display: block; font-family: var(--display); font-weight: 700; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--gold-2); }
.now b { display: block; font-family: var(--display); font-weight: 700; font-size: 24px; color: #f6ead0; margin-top: 4px; line-height: 1.2; }

/* Списки песен */
.tracks { list-style: none; margin: 0; padding: 0; counter-reset: t; }
.tracks li { counter-increment: t; }
.trk { width: 100%; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 9px 12px; border: 0; border-radius: 12px; background: transparent; color: inherit; font-family: var(--serif); font-weight: 600; font-size: 18.5px; line-height: 1.3; text-align: left; cursor: pointer; transition: background .2s, color .2s; }
.trk:hover { background: rgba(247, 241, 227, .07); }
.trk__ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(207, 174, 104, .6); color: var(--gold-2); position: relative; transition: background .2s, color .2s; }
.trk__ic::before { content: counter(t); font-family: var(--display); font-weight: 700; font-size: 16px; }
.trk__ic svg { position: absolute; width: 14px; height: 14px; opacity: 0; }
.trk:hover .trk__ic::before { opacity: 0; }
.trk:hover .trk__ic svg.p { opacity: 1; }
.trk .eq { display: none; position: absolute; }
.trk.is-current { color: var(--gold-3); }
.trk.is-current .trk__ic { background: var(--gold-2); color: var(--navy); border-color: var(--gold-2); }
.trk.is-current .trk__ic::before, .trk.is-current .trk__ic svg { opacity: 0; }
.trk.is-current .eq { display: inline-flex; }
.trk__dur { font-size: 14px; opacity: .55; }

.playlist { background: var(--navy); color: var(--ivory); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.playlist__head { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-bottom: 1px solid rgba(207, 174, 104, .25); }
.playlist__disc { position: relative; width: 52px; height: 52px; flex: none; }
.playlist__disc .vinyl { inset: 0; }
.playlist__head h3 { margin: 0; color: #f6ead0; font-size: 22px; flex: 1; min-width: 0; line-height: 1.15; }
.playlist__head small { font-family: var(--display); font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-2); font-size: 13px; white-space: nowrap; }
.playlist__play { width: 42px; height: 42px; flex: none; border-radius: 50%; border: 0; background: var(--crimson); color: #fff; cursor: pointer; display: grid; place-items: center; box-shadow: 0 0 0 2px rgba(207, 174, 104, .5); transition: transform .3s var(--ease); }
.playlist__play:hover { transform: scale(1.1); }
.playlist__play svg { width: 16px; height: 16px; }
.playlist ol { max-height: 400px; overflow-y: auto; padding: 8px; scrollbar-width: thin; scrollbar-color: #4a5577 transparent; }
.song { padding: clamp(28px, 4vw, 48px) 0; border-bottom: 1px dashed var(--line-2); margin: 0; }
.song:first-child { padding-top: 0; }
.song:last-child { border-bottom: 0; padding-bottom: 0; }

/* Плеер внизу экрана */
.player {
  position: fixed; left: 50%; bottom: 16px; z-index: 110; width: min(740px, calc(100% - 24px));
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px;
  padding: 10px 14px 10px 10px; border-radius: 60px; background: rgba(20, 29, 51, .96); color: var(--ivory);
  border: 1px solid rgba(207, 174, 104, .45); box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  transform: translate(-50%, 160%); transition: transform .6s var(--ease);
}
.player[hidden] { display: none; }
.player.is-on { transform: translate(-50%, 0); }
.player__disc { position: relative; width: 54px; height: 54px; }
.player__disc .vinyl { inset: 0; }
.player__info { min-width: 0; }
.player__title { font-family: var(--display); font-weight: 700; font-size: 19px; line-height: 1.15; color: #f6ead0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__album { font-size: 14px; color: rgba(233, 214, 166, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player__bar { position: relative; height: 4px; margin-top: 7px; border-radius: 4px; background: rgba(247, 241, 227, .15); cursor: pointer; }
.player__bar span { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 4px; background: var(--gold-2); width: 0; }
.player__ctrls { display: flex; align-items: center; gap: 4px; }
.player__ctrls button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: transparent; color: var(--gold-3); cursor: pointer; display: grid; place-items: center; transition: background .2s; }
.player__ctrls button:hover { background: rgba(247, 241, 227, .1); }
.player__ctrls button svg { width: 18px; height: 18px; }
.player__ctrls .pp { width: 48px; height: 48px; background: var(--gold-2); color: var(--navy); }
.player__ctrls .pp:hover { background: var(--gold-3); }
.player .ic-pause { display: none; }
html.is-playing .player .ic-pause { display: block; }
html.is-playing .player .ic-play { display: none; }
@media (max-width: 560px) {
  .player { bottom: 10px; border-radius: 22px; gap: 10px; }
  .player__ctrls .prev { display: none; }
  .player__disc { width: 46px; height: 46px; }
  .player__title { font-size: 17px; }
}

/* Наверх с кольцом прогресса */
.totop { position: fixed; right: 18px; bottom: 18px; z-index: 105; width: 52px; height: 52px; border-radius: 50%; border: 0; background: var(--navy); color: var(--gold-2); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(16px); pointer-events: none; transition: opacity .3s, transform .4s var(--ease), bottom .5s var(--ease); }
.totop.is-on { opacity: 1; transform: none; pointer-events: auto; }
.totop svg.ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.totop svg.ring circle { fill: none; stroke: var(--gold-2); stroke-width: 3; stroke-linecap: round; }
.totop svg.ar { width: 20px; height: 20px; }
html.player-on .totop { bottom: 96px; }
@media (max-width: 560px) { html.player-on .totop { bottom: 88px; } .totop { right: 12px; } }

/* Страница новости */
.post-body { max-width: none; }
.meta span:empty { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  [data-reveal], .split .w > span { opacity: 1 !important; transform: none !important; }
}
@media print { .player, .subnav, .progress { display: none !important; } }
