/* Общий стиль сайта — архивная программка концерта, серия страниц */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;500;600;700&family=Alegreya:ital,wght@0,400;0,500;0,700;0,800;1,400;1,700&family=Alegreya+Sans:wght@400;500;700&family=Noto+Serif:ital,wght@0,400;0,700;0,800;1,400;1,700&family=Noto+Sans:wght@400;500;700&family=Noto+Sans+Mono:wght@400;500;600;700&display=swap');

:root {
  /* чёрный · золото · синий */
  --bg: #0a0b0f;
  --surface: #14161d;
  --surface-2: #1c1f2a;
  --fg: #f1ecd9;
  --muted: #8b90a3;
  --accent: #d9a552;
  --accent2: #3d5a9c;
  --rule: rgba(241, 236, 217, 0.14);
  --overlay: rgba(5, 6, 9, 0.82);
  --font-display: 'Alegreya', 'Noto Serif', Georgia, 'Times New Roman', serif;
  --font-body: 'Alegreya Sans', 'Noto Sans', Calibri, 'Segoe UI', sans-serif;
  --font-mono: 'Alegreya Sans', 'Noto Sans', Calibri, 'Segoe UI', sans-serif; /* labels: same family as body, no code font */
  color-scheme: dark;
}
/* Alegreya/Alegreya Sans/JetBrains Mono местами не хватает казахских букв
   (ә/ғ/қ/ң/ө/ұ/і) — без явного фолбэка браузер в таких местах подставляет
   системный шрифт, а он отличается на разных устройствах. Поэтому добавлены
   веб-шрифты Noto (Serif/Sans/Sans Mono) вторым звеном — у них полное
   покрытие казахской кириллицы, и выглядит одинаково везде. */

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  padding-inline: 20px;
  line-height: 1.55;
}
.wrap { max-width: 760px; margin: 0 auto; }
/* знак фонда — большой, едва заметный, неподвижный фон справа внизу */
body::before {
  content: "";
  position: fixed;
  right: -4vw;
  bottom: -6vh;
  width: min(48vw, 520px);
  height: 92vh;
  background: url("fund-mark.svg") no-repeat right bottom / contain;
  opacity: .26;
  pointer-events: none;
  z-index: -1;
}
@media (max-width: 640px) {
  /* на телефоне колонка текста на всю ширину, поэтому знак стоит по центру за текстом и ещё бледнее */
  body::before { right: auto; left: 50%; bottom: 4vh; transform: translateX(-50%); width: 82vw; height: 80vh;
    background-position: center bottom; opacity: .2; }
}
a { color: inherit; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  font-weight: 600;
}

h1, h2, h3 { font-family: var(--font-display); text-wrap: balance; font-weight: 700; margin: 0; }
h1 { font-style: italic; font-weight: 800; }

/* ---------- top bar / burger menu ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 14px;
  padding-block: 16px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
}
.topbar .brand {
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  text-decoration: none;
}
.burger {
  width: 40px; height: 40px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px;
  background: none; border: none; cursor: pointer;
  padding: 0;
}
.burger span {
  display: block; width: 22px; height: 2px;
  background: var(--fg);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.burger[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.burger[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.lang-switch {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
}
.lang-switch button {
  background: none;
  border: none;
  color: var(--muted);
  padding: 4px 7px;
  cursor: pointer;
  text-transform: uppercase;
}
.lang-switch button:hover {
  color: var(--fg);
}
.lang-switch button.active {
  color: var(--accent);
  cursor: default;
}
.lang-switch .sep {
  color: var(--muted);
  opacity: 0.4;
}

/* ---------- audio preview ---------- */
.listen-box {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 6px;
  padding: 22px 24px;
}
.listen-box .track-name {
  font-size: 18px;
  font-weight: 600;
  margin: 2px 0 2px;
}
.listen-box .track-sub {
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 16px;
}
.listen-box audio {
  width: 100%;
  accent-color: var(--accent);
}

.nav-backdrop {
  position: fixed; inset: 0;
  background: var(--overlay);
  z-index: 60;
}
.nav-backdrop[hidden] { display: none; }
.nav-panel {
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: min(300px, 86vw);
  background: var(--bg);
  border-right: 1px solid var(--rule);
  padding: 24px 22px;
  overflow-y: auto;
}
.nav-panel .eyebrow { display: block; margin-bottom: 18px; }
.nav-panel-close {
  position: absolute; top: 16px; right: 16px;
  width: 34px; height: 34px; border-radius: 50%;
  border: 1px solid var(--rule); background: var(--surface); color: var(--fg);
  font-size: 18px; line-height: 1; cursor: pointer;
}
.nav-panel-close:hover { background: var(--surface-2); }
.nav-list { list-style: none; margin: 0; padding: 0; margin-top: 8px; }
.nav-list li + li { margin-top: 2px; }
.nav-list a {
  display: block;
  padding: 12px 4px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  border-top: 1px solid var(--rule);
}
.nav-list li:first-child a { border-top: none; }
.nav-list .tag {
  display: block;
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--muted);
  margin-top: 2px;
}
.nav-list .sub-item a { font-size: 15px; padding-left: 14px; color: var(--muted); }

/* ---------- in-page section nav (concert pages) ---------- */
.subnav {
  position: sticky;
  top: 73px;
  z-index: 30;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  padding-block: 10px;
  margin-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--rule);
  -ms-overflow-style: none;
  scrollbar-width: none;
}
.subnav::-webkit-scrollbar { display: none; }
.subnav a {
  flex: none;
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: 0.01em;
  text-transform: none;
  text-decoration: none;
  color: var(--muted);
  padding: 8px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.subnav a:hover { color: var(--fg); }
.subnav a.active { background: var(--surface-2); color: var(--fg); }

/* ---------- hero photo ---------- */
.hero-photo {
  margin-top: 28px;
  border-radius: 2px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4 / 3;
  max-width: 100%;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-photo .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #f2ead9;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
}

/* ---------- hero photo carousel (swipeable) ---------- */
.hero-photo.hero-carousel { overflow: visible; aspect-ratio: unset; }
.hero-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  border-radius: 2px;
  overflow-y: hidden;
  aspect-ratio: 4 / 3;
  scrollbar-width: none;
}
.hero-carousel-track::-webkit-scrollbar { display: none; }
.hero-carousel-slide {
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  position: relative;
  height: 100%;
}
.hero-carousel-slide img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero-carousel-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface);
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero-carousel-slide .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 14px 16px;
  background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
  color: #f2ead9;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.hero-carousel-dots {
  display: flex; gap: 6px; justify-content: center;
  margin-top: 12px;
}
.hero-carousel-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--rule);
  transition: background 0.2s ease;
}
.hero-carousel-dots span.active { background: var(--accent); }

/* ---------- photo gallery grid (home) ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 28px;
}
.gallery .tile { position: relative; aspect-ratio: 1; border-radius: 2px; overflow: hidden; background: var(--surface); }
.gallery .tile.wide { grid-column: 1 / -1; aspect-ratio: 16/9; }
.gallery .tile img, .gallery .tile video { width: 100%; height: 100%; object-fit: cover; display: block; cursor: pointer; }
.gallery .tile .cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 12px;
  background: linear-gradient(to top, rgba(0,0,0,0.55), transparent);
  color: #f2ead9;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
}
.gallery .tile.placeholder {
  display: flex; align-items: center; justify-content: center;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
  padding: 12px;
}

header.hero { padding-block: 40px 0; }
header.hero .eyebrow { margin-bottom: 14px; }
header.hero h1 {
  font-size: clamp(32px, 6vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.01em;
}
header.hero .sub {
  margin-top: 18px;
  font-size: 19px;
  color: var(--muted);
  font-style: italic;
  max-width: 46ch;
}

/* ---------- concert cards on home ---------- */
.concert-cards {
  display: grid;
  gap: 14px;
  margin-top: 8px;
}
.concert-card {
  display: block;
  text-decoration: none;
  padding: 22px;
  background: var(--surface);
  border-radius: 2px;
  border-left: 3px solid var(--accent);
}
.concert-card:hover, .concert-card:focus-visible { background: var(--surface-2); }
.concert-card .eyebrow { margin-bottom: 8px; }
.concert-card h3 { font-size: 22px; margin-bottom: 6px; }
.concert-card p { font-size: 14px; color: var(--muted); margin: 0; max-width: none; }
.concert-card .go {
  margin-top: 12px;
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
}
.concert-card.tbd { border-left-color: var(--muted); }

.countdown {
  display: inline-block;
  font-family: 'Alegreya', 'Noto Serif', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.01em;
  text-transform: none;
  color: var(--accent);
  opacity: 0.9;
}
.concert-card .countdown { display: block; margin: -2px 0 8px; }
/* на широком экране счётчик уходит в правый верхний угол карточки,
   чтобы не сливаться с датой; на телефоне остаётся отдельной строкой под датой */
@media (min-width: 600px) {
  .concert-card { position: relative; }
  .concert-card .countdown { position: absolute; top: 22px; right: 22px; margin: 0; }
}
.hero .countdown { margin-top: -8px; margin-bottom: 24px; }

.fact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 18px;
  margin-top: 32px;
  padding-top: 24px;
  padding-bottom: 40px;
  border-top: 1px solid var(--rule);
}
.fact dt {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.01em;
  text-transform: none; color: var(--muted); margin-bottom: 6px;
}
.fact dd { margin: 0; font-size: 17px; font-weight: 700; }
.fact dd.tbd { font-weight: 400; font-style: italic; color: var(--muted); font-size: 15px; }

section { padding-block: 40px; border-top: 1px solid var(--rule); scroll-margin-top: 130px; }
section > .eyebrow { display: block; margin-bottom: 10px; }
section h2 { font-size: clamp(24px, 4vw, 30px); margin-bottom: 18px; }

.lede { font-size: 18px; max-width: 62ch; }
p { max-width: 62ch; }
p + p { margin-top: 14px; }

.fact-list { list-style: none; margin: 0; padding: 0; max-width: 62ch; }
.fact-list li {
  padding: 12px 0; border-top: 1px solid var(--rule); font-size: 16px;
}
.fact-list li:last-child { border-bottom: 1px solid var(--rule); }

.piece {
  padding-block: 12px; border-top: 1px solid var(--rule);
}
.piece:first-of-type { border-top: none; }
.piece .num { font-family: var(--font-mono); font-size: 14.5px; color: var(--muted); margin-right: 8px; }
.piece .name { font-size: 17px; font-weight: 700; }
.piece .who { font-size: 14px; color: var(--muted); margin-top: 2px; }
.piece .perf { font-size: 14.5px; color: var(--accent); margin-top: 3px; }

.presentation-block {
  margin-bottom: 8px; padding: 20px; background: var(--surface);
  border-radius: 2px; border-left: 3px solid var(--accent2);
}
.presentation-block .eyebrow { color: var(--accent2); }
.presentation-block h3 { font-size: 19px; margin-top: 8px; margin-bottom: 8px; }
.presentation-block p { font-size: 15px; }
.presentation-block .piece { border-top: 1px dashed var(--rule); }

.studio-video {
  max-width: 320px; margin: 28px auto 0; border-radius: 2px; overflow: hidden;
  background: var(--surface);
}
.studio-video video { display: block; width: 100%; aspect-ratio: 9/16; object-fit: cover; background: #000; }
.studio-video .cap {
  padding: 10px 12px;
  color: var(--muted);
  font-family: var(--font-mono);
  font-size: 14px;
  letter-spacing: 0.01em;
  text-transform: none;
  text-align: center;
}

.people {
  display: grid; gap: 14px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.person {
  padding: 18px; background: var(--surface); border-radius: 2px; text-align: left;
  border: none; font: inherit; color: inherit; cursor: default; width: 100%;
}
button.person { cursor: pointer; }
button.person:hover, button.person:focus-visible { background: var(--surface-2); }
button.person:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a.person { cursor: pointer; text-decoration: none; display: block; }
a.person:hover, a.person:focus-visible { background: var(--surface-2); }
a.person:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.person .role {
  font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.01em;
  text-transform: none; color: var(--accent); margin-bottom: 6px;
}
.person .name { font-size: 18px; font-weight: 700; font-family: var(--font-display); }
.person p { font-size: 14px; margin-top: 6px; color: var(--muted); max-width: none; }
.person .more {
  margin-top: 10px; font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.01em; text-transform: none; color: var(--accent);
}
.bio-icon {
  display: inline-block; font-size: 16px; line-height: 1; vertical-align: middle;
  margin-left: 4px; letter-spacing: 0; text-transform: none;
}
.bio-icon-big { font-size: 32px; }
.person.soon .name { color: var(--muted); }
.person.soon .role { color: var(--muted); }
.sub-h3 {
  font-family: var(--font-mono); font-size: 14.5px; font-weight: 600;
  letter-spacing: 0.01em; text-transform: none; color: var(--muted);
  margin: 28px 0 14px;
}
.sub-h3:first-of-type { margin-top: 20px; }

/* ---------- sponsors ---------- */
.sponsors {
  display: grid; gap: 14px; margin-top: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.sponsor-slot {
  aspect-ratio: 3/2; background: var(--surface); border-radius: 2px;
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-family: var(--font-mono); font-size: 14px;
  letter-spacing: 0.01em; text-transform: none; text-align: center; padding: 12px;
}

/* ---------- support / donate ---------- */
.support-box {
  margin-top: 20px; padding: 24px; background: var(--surface);
  border-radius: 2px; border-left: 3px solid var(--accent);
}
.support-box h3 { font-size: 20px; margin-bottom: 10px; }
.support-box p { font-size: 15px; }
.support-box.with-mark { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.support-mark { display: block; height: 128px; width: auto; }
@media (max-width: 480px) { .support-mark { height: 96px; } .support-box.with-mark { gap: 16px; } }
.support-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.btn {
  display: inline-block; text-decoration: none;
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.01em; text-transform: none;
  padding: 12px 18px; border-radius: 2px; background: var(--accent); color: var(--bg); font-weight: 600;
}
.btn:hover { opacity: 0.88; }
.btn.ghost { background: none; border: 1px solid var(--rule); color: var(--fg); }

.rule-note {
  margin-top: 18px; font-family: var(--font-mono); font-size: 15px; color: var(--muted);
  line-height: 1.6; padding: 14px 16px; border: 1px dashed var(--rule);
}

footer { padding-block: 40px 64px; border-top: 1px solid var(--rule); }
footer .eyebrow { margin-bottom: 10px; }
footer p { font-size: 14px; color: var(--muted); }
footer nav a { font-size: 13px; color: var(--muted); text-decoration: none; margin-right: 16px; }
footer nav a:hover { color: var(--fg); }

/* ---------- bio modal (reused) ---------- */
.modal-backdrop { position: fixed; inset: 0; background: var(--overlay); display: flex; align-items: flex-end; justify-content: center; z-index: 50; padding: 0; }
@media (min-width: 640px) { .modal-backdrop { align-items: center; padding: 24px; } }
.modal-backdrop[hidden] { display: none; }
.modal {
  background: var(--bg); color: var(--fg); width: 100%; max-width: 640px; max-height: 88vh;
  overflow-y: auto; border-radius: 8px 8px 0 0; padding: 28px 22px calc(28px + env(safe-area-inset-bottom, 0px));
  position: relative;
}
@media (min-width: 640px) { .modal { border-radius: 8px; padding: 34px; } }
.modal-close {
  position: sticky; top: 0; float: right; z-index: 2; margin: -14px -8px 0 12px;
  width: 40px; height: 40px; border-radius: 50%; box-shadow: 0 2px 10px rgba(0,0,0,.45);
  border: 1px solid var(--rule); background: var(--surface); color: var(--fg); font-size: 18px; line-height: 1; cursor: pointer;
}
.modal-close:hover, .modal-close:focus-visible { background: var(--surface-2); }
.modal .role { font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.01em; text-transform: none; color: var(--accent); margin-bottom: 8px; }
.modal h3 { font-size: clamp(24px, 5vw, 30px); margin-bottom: 16px; }
.modal p { font-size: 16px; max-width: none; }
.modal p + p { margin-top: 14px; }

.reg-field { margin-top: 18px; }
.reg-field label {
  display: block; font-family: var(--font-mono); font-size: 14px; letter-spacing: 0.01em;
  text-transform: none; color: var(--muted); margin-bottom: 8px;
}
.reg-field input {
  width: 100%; background: var(--surface); border: 1px solid var(--rule); color: var(--fg);
  font-family: var(--font-body); font-size: 16px; padding: 12px 14px; border-radius: 2px;
}
.reg-field input:focus { outline: none; border-color: var(--accent); }
.reg-submit {
  margin-top: 22px; width: 100%; border: none; cursor: pointer;
  font-family: var(--font-mono); font-size: 14.5px; letter-spacing: 0.01em; text-transform: none;
  padding: 14px 18px; border-radius: 2px; background: var(--accent); color: var(--bg); font-weight: 600;
}
.reg-submit:hover { opacity: 0.88; }
.reg-submit:disabled { opacity: 0.6; cursor: default; }
.reg-status { margin-top: 14px; font-size: 14px; color: var(--muted); }
.reg-status.ok { color: var(--accent); }

@media (max-width: 480px) {
  .gallery { grid-template-columns: 1fr; }
}
.bio-icon-svg svg { display: block; }
.bio-icon-group { display: inline-flex; align-items: flex-end; gap: 1px; }
.bio-icon-group .s1 { font-size: 14px; }
.bio-icon-group .s2 { font-size: 20px; }
.bio-icon-group .s3 { font-size: 27px; }
.bio-icon-group .s4 { font-size: 34px; }
/* виолончель и контрабас — свои рисунки: стоят вертикально, на шпиле */
.bio-icon-group .svg-inst { display: inline-block; line-height: 0; margin-left: 3px; }
.bio-icon-group .svg-inst svg { display: block; }

/* ---------- страница «Об Ахмете Жубанове» + кнопка «спасибо» ---------- */
.about-wrap { max-width: 760px; }
.about-layout { display: flex; flex-direction: column; }
.tbd-note { color: var(--muted); font-style: italic; }
.thanks { order: -1; margin: 4px 0 28px; }
.thanks-btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-style: italic; font-size: 19px;
  color: var(--bg); background: var(--accent); cursor: pointer;
  border: 1px solid var(--accent); border-radius: 999px;
  padding: 13px 26px; min-height: 50px; white-space: nowrap;
  box-shadow: 0 6px 20px rgba(217, 165, 82, .28);
  transition: transform .15s ease, box-shadow .25s ease, background-color .25s ease, color .25s ease;
  animation: thanks-glow 2.6s ease-in-out infinite;
}
.thanks-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 26px rgba(217, 165, 82, .42); }
.thanks-btn:active { transform: translateY(1px); }
.thanks-btn:focus-visible { outline: 2px solid var(--fg); outline-offset: 3px; }
.thanks-heart { font-style: normal; font-size: 18px; line-height: 1; }
.thanks-btn .thanks-mark, .thanks-btn .thanks-done { display: none; }
.thanks-btn.done { background: none; color: var(--accent); cursor: default; box-shadow: none; animation: none; transform: none; }
.thanks-btn.done .thanks-label, .thanks-btn.done .thanks-heart { display: none; }
.thanks-btn.done .thanks-mark, .thanks-btn.done .thanks-done { display: inline; }
.thanks-hint { margin: 8px 0 0 6px; font-size: 14px; color: var(--muted); }
.thanks-hint-done, .thanks-btn.done ~ .thanks-hint { display: none; }
.thanks-btn.done ~ .thanks-hint-done { display: block; }
@keyframes thanks-glow { 0%, 100% { box-shadow: 0 6px 20px rgba(217, 165, 82, .22); } 50% { box-shadow: 0 6px 30px rgba(217, 165, 82, .55); } }
@media (prefers-reduced-motion: reduce) { .thanks-btn { animation: none; } }
.thanks-btn.pop { animation: thanks-pop .4s ease; }
@keyframes thanks-pop { 0% { transform: scale(1); } 40% { transform: scale(1.08); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .thanks-btn.pop { animation: none; } }
/* на широком экране кнопка стоит сбоку и остаётся на виду, пока читаешь */
@media (min-width: 960px) {
  .about-wrap { max-width: 1000px; }
  .about-layout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 48px; align-items: start; }
  .thanks { order: 0; margin: 0; position: sticky; top: 140px; }
}
.about-topbar { max-width: 760px; }
@media (min-width: 960px) { .about-topbar { max-width: 1000px; } }

/* ---------- sing-along overlay (finale) ---------- */
.singalong {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--bg);
  overflow-y: auto;
  display: flex; justify-content: center;
}
.singalong-inner {
  width: 100%; max-width: 560px;
  padding: 56px 24px 64px;
  text-align: center;
}
.singalong-mark { height: 72px; width: auto; opacity: .9; margin-bottom: 20px; }
.singalong-title {
  font-family: var(--font-display); font-style: italic; font-weight: 800;
  font-size: clamp(36px, 9vw, 52px); line-height: 1.05; color: var(--fg);
}
.singalong-by { margin: 8px 0 40px; font-family: var(--font-display); font-style: italic; color: var(--muted); font-size: 16px; }
.singalong-stanza {
  font-family: var(--font-display); font-size: clamp(22px, 5.6vw, 28px); line-height: 1.5;
  color: var(--fg); margin: 0 0 32px;
}
.singalong-stanza.refrain { font-style: italic; color: var(--accent); }
.singalong-close {
  margin-top: 16px; background: none; border: 1px solid rgba(241,236,217,.3); color: var(--muted);
  font-family: var(--font-body); font-size: 15px; padding: 10px 22px; border-radius: 999px; cursor: pointer;
}
.singalong-close:hover, .singalong-close:focus-visible { color: var(--fg); border-color: var(--fg); }
.person.person-static { cursor: default; margin-top: 12px; }

/* Akhmet biography */
.about-text p { line-height: 1.65; margin: 0 0 18px; }
.bio-portrait { margin: 8px 0 28px; }
.bio-portrait img { display: block; width: 100%; max-width: 420px; height: auto; border-radius: 4px; }
.bio-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 28px 0; }
.bio-pair img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 3; object-fit: cover; border-radius: 4px; }
.bio-pair figcaption { grid-column: 1 / -1; color: var(--muted); font-style: italic; font-size: 15px; }
.hero-bio { margin: 10px 0 0; font-size: 17px; }
.hero-bio a { color: var(--accent); text-decoration: none; border-bottom: 1px solid currentColor; }
.hero-bio a:hover { color: var(--fg); }

/* reopen button for the sing-along lyrics */
.singalong-reopen {
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  font-family: var(--font-display); font-style: italic; font-size: 17px;
  color: var(--bg); background: var(--accent); border: 0; border-radius: 999px;
  padding: 12px 20px; min-height: 48px; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.5);
}
.singalong-reopen[hidden] { display: none; }
.singalong[hidden] { display: none; }
.reg-done { margin-top: 18px; padding: 18px 20px; border: 1px solid var(--accent); border-radius: 8px; }
.reg-done[hidden] { display: none; }
.reg-done-title { font-family: var(--font-display); font-style: italic; font-size: 24px; color: var(--accent); margin: 0; }
.reg-done-names { margin: 8px 0 0; font-size: 17px; color: var(--fg); }
.reg-done-note { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
.reg-again { display: block; margin-top: 14px; background: none; border: 0; padding: 6px 0; color: var(--muted); font-size: 14px; text-decoration: underline; cursor: pointer; }
.reg-again[hidden] { display: none; }
.people .person.person-static { margin-top: 0; }
.reg-done-mail { margin: 8px 0 0; font-size: 14px; color: var(--accent); }
.reg-done-mail:empty { display: none; }

/* афиша концерта на странице концерта */
.poster { margin: 28px auto; max-width: 540px; }
.poster a { display: block; }
.poster img { display: block; width: 100%; height: auto; border: 1px solid var(--rule); }
.poster .cap { margin-top: 8px; font-family: var(--font-mono); font-size: 14px; color: var(--muted); text-align: center; }
