:root {
  --cream: #fff9ed;
  --cream-2: #fdf0d8;
  --ink: #2b201a;
  --ink-2: #4a3c31;
  --gold: #ffb01f;
  --gold-2: #ffc000;
  --teal: #18868e;
  --terra: #b8402c;
  --olive: #56683a;
  --line: rgba(74, 60, 49, .16);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .3, 1);
  --head: "Bahnschrift", "Segoe UI Semibold", "Arial Narrow", system-ui, sans-serif;
  --body: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink-2);
  font: 400 17px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

h1, h2, h3 {
  font-family: var(--head);
  color: var(--ink);
  line-height: 1.1;
  margin: 0;
  font-weight: 600;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold); color: var(--ink); padding: 12px 20px;
}
.skip:focus { left: 0; }

/* ── шапка ─────────────────────────────────────── */

.top {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  background: rgba(43, 32, 26, .0);
  transition: background .35s var(--ease), box-shadow .35s var(--ease);
}
/* при прокрутке шапка становится плотной: заголовок первого экрана
   уезжает под неё и не должен просвечивать */
.top.is-stuck {
  background: var(--ink);
  box-shadow: 0 8px 30px rgba(43, 32, 26, .45);
}
.top__in { display: flex; align-items: center; gap: 26px; height: 72px; }

.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; flex: none; }
.brand__mark {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background:
    conic-gradient(from 220deg, var(--gold) 0 25%, var(--terra) 0 50%, var(--olive) 0 75%, var(--teal) 0);
  box-shadow: inset 0 0 0 4px var(--cream);
}
.brand__txt { display: flex; flex-direction: column; line-height: 1.15; }
.brand__txt b {
  font-family: var(--head); font-size: 17px; letter-spacing: .04em;
  text-transform: uppercase; color: #fff;
}
.brand__txt i { font-style: normal; font-size: 11.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); }

.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a {
  color: rgba(255, 249, 237, .82); text-decoration: none; font-size: 14.5px;
  padding: 6px 0; position: relative; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px;
  background: var(--gold); transition: right .3s var(--ease);
}
.nav a:hover { color: #fff; }
.nav a:hover::after { right: 0; }

.burger { display: none; }

/* ── кнопки ────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--gold); color: var(--ink); text-decoration: none;
  font-family: var(--head); font-size: 16px; letter-spacing: .04em;
  text-transform: uppercase; padding: 15px 30px; border: 0; cursor: pointer;
  border-radius: 2px; position: relative; overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease);
}
.btn::after {
  content: ""; position: absolute; inset: 0; background: #fff; opacity: 0;
  transition: opacity .25s var(--ease);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 10px 26px rgba(255, 176, 31, .4); }
.btn:hover::after { opacity: .18; }
.btn--sm { padding: 10px 18px; font-size: 14px; flex: none; }
.btn--big { padding: 19px 42px; font-size: 18px; }
.btn--ghost {
  background: transparent; color: var(--cream);
  box-shadow: inset 0 0 0 2px rgba(255, 249, 237, .45);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--gold), 0 10px 26px rgba(0, 0, 0, .18); }
.btn.is-off { opacity: .55; cursor: default; pointer-events: none; }

/* ── орнамент ──────────────────────────────────── */

.ornament {
  height: 34px;
  background-image: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='34' viewBox='0 0 240 34'><rect width='240' height='34' fill='%232b201a'/><rect x='0' y='0' width='40' height='34' fill='%23b8402c'/><path d='M4 24l8-13 8 13zM22 24l8-13 8 13z' fill='%23fff3dc'/><rect x='40' y='0' width='40' height='34' fill='%2356683a'/><circle cx='60' cy='17' r='9' fill='none' stroke='%23fff3dc' stroke-width='3'/><circle cx='60' cy='17' r='2.5' fill='%23ffb01f'/><rect x='80' y='0' width='40' height='34' fill='%23ffb01f'/><path d='M84 8h32M84 17h32M84 26h32' stroke='%232b201a' stroke-width='3'/><rect x='120' y='0' width='40' height='34' fill='%23fff3dc'/><rect x='128' y='7' width='24' height='20' fill='none' stroke='%2356683a' stroke-width='3'/><rect x='135' y='13' width='10' height='8' fill='%23b8402c'/><rect x='160' y='0' width='40' height='34' fill='%231e6e9e'/><path d='M164 26l8-18 8 18z' fill='none' stroke='%23fff3dc' stroke-width='3'/><path d='M186 10v14' stroke='%23fff3dc' stroke-width='3'/><rect x='200' y='0' width='40' height='34' fill='%234a3c31'/><circle cx='210' cy='11' r='3' fill='%23ffb01f'/><circle cx='222' cy='11' r='3' fill='%23ffb01f'/><circle cx='210' cy='23' r='3' fill='%23fff3dc'/><circle cx='222' cy='23' r='3' fill='%23fff3dc'/></svg>");
  background-repeat: repeat-x;
  background-size: auto 34px;
}

/* ── герой ─────────────────────────────────────── */

.hero {
  position: relative; background: var(--ink); color: var(--cream);
  padding: 122px 0 0; overflow: hidden;
}
.hero__pattern {
  position: absolute; inset: 0;
  background:
    radial-gradient(120% 80% at 78% 30%, rgba(255, 176, 31, .22), transparent 62%),
    radial-gradient(90% 70% at 10% 90%, rgba(24, 134, 142, .18), transparent 60%);
  pointer-events: none;
}
.hero__in {
  position: relative; display: grid; grid-template-columns: 1.15fr .85fr;
  gap: 40px; align-items: center; padding-bottom: 58px;
}

.hero__badge {
  display: inline-block; margin: 0 0 22px;
  font-family: var(--head); font-size: 13px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--gold); border: 1px solid rgba(255, 176, 31, .5); padding: 8px 16px; border-radius: 2px;
}
.hero__title { margin: 0 0 20px; }
.hero__t1, .hero__t2 { display: block; text-transform: uppercase; color: var(--cream); }
.hero__t1 { font-size: clamp(42px, 7.4vw, 92px); letter-spacing: .01em; }
.hero__t1 .dash { color: var(--gold); padding: 0 .12em; }
.hero__t2 {
  font-size: clamp(19px, 2.5vw, 32px); letter-spacing: .16em; color: var(--gold);
  margin-top: 6px;
}
.hero__lead { font-size: 19px; color: rgba(255, 249, 237, .8); margin: 0 0 28px; max-width: 30em; }

.hero__facts { list-style: none; display: flex; gap: 40px; margin: 0 0 32px; padding: 0; flex-wrap: wrap; }
.hero__facts li { display: flex; flex-direction: column; }
.hero__facts b { font-family: var(--head); font-size: 25px; color: var(--cream); letter-spacing: .02em; }
.hero__facts span { font-size: 13.5px; color: rgba(255, 249, 237, .6); }

.hero__cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 30px; }

.count { margin-bottom: 0; }
.count__lbl {
  font-family: var(--head); font-size: 12px; letter-spacing: .2em; text-transform: uppercase;
  color: rgba(255, 249, 237, .55);
}
.count__row { display: flex; gap: 10px; margin-top: 10px; }
.count__cell {
  background: rgba(255, 249, 237, .07); border: 1px solid rgba(255, 249, 237, .12);
  padding: 10px 4px; min-width: 72px; text-align: center; border-radius: 2px;
}
.count__cell b {
  display: block; font-family: var(--head); font-size: 27px; color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.count__cell i { font-style: normal; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 249, 237, .55); }

.hero__art { position: relative; }
.hero__mask {
  position: relative; z-index: 2; width: 100%; max-width: 400px; margin-left: auto;
  filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .45));
}
/* положение по вертикали задаётся через top, а transform оставлен скрипту
   под параллакс — иначе одно затирало бы другое */
.hero__wing {
  position: absolute; right: -18%; top: -10%; width: 96%; z-index: 1; opacity: .85;
  pointer-events: none; will-change: transform;
}
.hero__mask { will-change: transform; }

/* ── секции ────────────────────────────────────── */

.sec { padding: 96px 0; }
.sec--cream { background: var(--cream-2); }
.sec--dark { background: var(--ink); color: rgba(255, 249, 237, .78); }
.sec--dark h2, .sec--dark h3 { color: var(--cream); }

.head { max-width: 780px; margin-bottom: 52px; }
.head__kick {
  font-family: var(--head); font-size: 12.5px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 12px;
}
.sec--dark .head__kick { color: var(--gold); }
.head__h { font-size: clamp(28px, 4vw, 46px); text-transform: uppercase; letter-spacing: .01em; }
.head__note { margin: 18px 0 0; font-size: 16px; opacity: .82; }

.sub {
  font-size: clamp(20px, 2.4vw, 26px); text-transform: uppercase; letter-spacing: .08em;
  margin: 60px 0 26px;
}

.lead { font-size: 20px; color: var(--ink); }

.about { display: grid; grid-template-columns: 1.4fr 1fr; gap: 54px; align-items: start; }
.about__text p { margin: 0 0 18px; }

.stats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 2px; background: var(--line); }
.stats li { background: var(--cream); padding: 26px 20px; display: flex; flex-direction: column; gap: 4px; }
.sec--cream .stats li { background: var(--cream-2); }
.stats b { font-family: var(--head); font-size: 46px; color: var(--gold); line-height: 1; }
.stats span { font-size: 14px; }

.value { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.value li { border-top: 3px solid var(--ink); padding-top: 18px; }
.value__n { font-family: var(--head); font-size: 14px; letter-spacing: .16em; color: var(--terra); }
.value p { margin: 8px 0 0; font-size: 16px; }

/* ── направления ───────────────────────────────── */

.tracks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.track {
  background: rgba(255, 249, 237, .05); border: 1px solid rgba(255, 249, 237, .12);
  padding: 30px 26px 26px; border-radius: 3px;
  transition: transform .35s var(--ease), background .35s var(--ease), border-color .35s var(--ease);
}
.track:hover { transform: translateY(-6px); background: rgba(255, 249, 237, .09); border-color: rgba(255, 176, 31, .5); }
.track__ico { display: block; width: 46px; height: 46px; color: var(--gold); margin-bottom: 20px; }
.track__ico svg { width: 100%; height: 100%; }
.track h3 { font-size: 21px; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 12px; }
.track p { margin: 0 0 18px; font-size: 15.5px; }
.track__link {
  font-family: var(--head); font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gold); text-decoration: none; border-bottom: 1px solid rgba(255, 176, 31, .4);
  padding-bottom: 3px; cursor: pointer;
}
.track__link:hover { border-color: var(--gold); }

/* ── программа ─────────────────────────────────── */

.tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 34px; }
.tab {
  font-family: var(--head); font-size: 15px; letter-spacing: .05em; text-transform: uppercase;
  background: transparent; color: var(--ink-2); border: 1px solid var(--line);
  padding: 12px 22px; cursor: pointer; border-radius: 2px;
  transition: all .25s var(--ease);
}
.tab:hover { border-color: var(--ink); color: var(--ink); }
.tab.is-on { background: var(--ink); color: var(--cream); border-color: var(--ink); }

.panel { display: none; }
.panel.is-on { display: block; animation: fade .45s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

.events { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.events li {
  counter-increment: e; position: relative;
  padding: 26px 0 26px 76px; border-bottom: 1px solid var(--line);
}
.events li::before {
  content: counter(e, decimal-leading-zero);
  position: absolute; left: 0; top: 26px;
  font-family: var(--head); font-size: 30px; color: var(--gold); line-height: 1;
}
.events h3 { font-size: 20px; margin-bottom: 8px; letter-spacing: .01em; }
.events p { margin: 0 0 12px; font-size: 16px; }

.tag {
  display: inline-block; font-family: var(--head); font-size: 12px; letter-spacing: .12em;
  text-transform: uppercase; padding: 6px 12px; border-radius: 2px;
  background: rgba(24, 134, 142, .12); color: var(--teal);
}
.tag--reg { background: rgba(255, 176, 31, .2); color: #8a5a00; }

.panel__note { margin-top: 22px; font-size: 15px; opacity: .75; font-style: italic; }

.prog-cta {
  margin-top: 46px; padding: 30px 34px; background: var(--ink); color: var(--cream);
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  border-radius: 3px;
}
.prog-cta p { margin: 0; font-family: var(--head); font-size: 21px; letter-spacing: .02em; }

/* ── гости ─────────────────────────────────────── */

.guests { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.guests li {
  background: var(--cream); padding: 24px 24px 24px 26px; border-radius: 3px;
  position: relative; overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.guests li::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--gold); transform: scaleY(0); transform-origin: top;
  transition: transform .35s var(--ease);
}
.guests li:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(74, 60, 49, .14); }
.guests li:hover::before { transform: scaleY(1); }
.guests b { display: block; font-family: var(--head); font-size: 19px; color: var(--ink); margin-bottom: 6px; }
.guests span { font-size: 15px; }

/* ── площадки ──────────────────────────────────── */

.places { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.place { background: var(--cream-2); border-radius: 3px; overflow: hidden; }
.place img { aspect-ratio: 3 / 2; object-fit: cover; width: 100%; transition: transform .6s var(--ease); }
.place:hover img { transform: scale(1.05); }
.place__txt { padding: 22px 24px 26px; }
.place h3 { font-size: 20px; text-transform: uppercase; letter-spacing: .04em; margin-bottom: 10px; }
.place p { margin: 0; font-size: 15.5px; }

/* ── галерея ───────────────────────────────────── */

.gal { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gal figure { margin: 0; }
.gal img {
  aspect-ratio: 4 / 3; object-fit: cover; width: 100%; border-radius: 3px;
  transition: transform .5s var(--ease), filter .5s var(--ease);
  filter: saturate(.92);
}
.gal figure:hover img { transform: scale(1.03); filter: saturate(1.1); }
.gal figcaption { margin-top: 10px; font-size: 13.5px; color: rgba(255, 249, 237, .6); }

/* ── регистрация ───────────────────────────────── */

.reg {
  background: linear-gradient(120deg, var(--gold) 0%, var(--gold-2) 55%, #ffd166 100%);
  color: var(--ink); padding: 88px 0;
  position: relative; overflow: hidden;
}
.reg::before {
  content: ""; position: absolute; right: -80px; top: -60px; width: 420px; height: 420px;
  border-radius: 50%; border: 44px solid rgba(43, 32, 26, .07);
}
.reg__in { position: relative; display: grid; grid-template-columns: 1.25fr .75fr; gap: 54px; align-items: start; }
.reg .head__kick { color: var(--ink); opacity: .65; }
.reg__txt p { font-size: 17px; max-width: 46em; }
.reg__hint {
  font-family: var(--head); font-size: 15px; letter-spacing: .03em;
  background: rgba(43, 32, 26, .1); padding: 12px 18px; border-radius: 2px; display: inline-block;
}
.reg .btn { background: var(--ink); color: var(--cream); }
.reg .btn:hover { box-shadow: 0 12px 30px rgba(43, 32, 26, .35); }
.reg__side { background: rgba(43, 32, 26, .08); padding: 28px 30px; border-radius: 3px; }
.reg__side h3 { font-size: 19px; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 16px; }
.reg__side ul { margin: 0; padding-left: 20px; }
.reg__side li { margin-bottom: 12px; font-size: 15.5px; }

/* ── организаторы и подвал ─────────────────────── */

.orgs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.org { background: var(--cream); padding: 30px 28px; border-radius: 3px; border-top: 4px solid var(--teal); }
.org h3 { font-size: 19px; margin-bottom: 12px; }
.org p { margin: 0 0 14px; font-size: 15.5px; }
.org__data { color: var(--ink); }
.org__data a { color: var(--ink-2); }

.foot { background: var(--ink); color: rgba(255, 249, 237, .6); padding: 54px 0 40px; }
.foot__in { display: grid; gap: 26px; }
.foot__brand b { display: block; font-family: var(--head); font-size: 19px; color: var(--cream); letter-spacing: .04em; text-transform: uppercase; }
.foot__brand span { font-size: 14px; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 22px; }
.foot__nav a { font-size: 14.5px; text-decoration: none; }
.foot__nav a:hover { color: var(--gold); }
.foot__note { margin: 0; font-size: 13.5px; opacity: .6; border-top: 1px solid rgba(255, 249, 237, .12); padding-top: 22px; }

/* ── появление при скролле ─────────────────────── */
/* Прячем блоки только если скрипт успел включить анимацию. Без JS
   (или если что-то отвалилось) страница остаётся полностью читаемой. */

.js-anim .reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js-anim .reveal.in { opacity: 1; transform: none; }

/* ── движение при прокрутке ────────────────────── */

/* полоса прочитанного — тонкая золотая нить поверх шапки */
.progress {
  position: fixed; left: 0; top: 0; height: 3px; width: 100%; z-index: 60;
  background: linear-gradient(90deg, var(--terra), var(--gold) 45%, var(--teal));
  transform: scaleX(0); transform-origin: left; will-change: transform;
}

/* заголовки разделов выезжают по словам из-под невидимой линии */
.js-anim .head__h .w { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; }
.js-anim .head__h .w > i {
  display: inline-block; font-style: normal; transform: translateY(110%);
  transition: transform .75s var(--ease);
}
.js-anim .head.in .head__h .w > i { transform: none; }

/* фотографии открываются цветной шторкой и доезжают из лёгкого зума */
.shot { display: block; position: relative; }
.js-anim .shot { overflow: hidden; }
.js-anim .shot::after {
  content: ""; position: absolute; inset: 0; z-index: 2; background: var(--gold);
  transform-origin: right; transition: transform .85s var(--ease);
}
.js-anim .in .shot::after { transform: scaleX(0); }
.gal .shot::after { background: var(--terra); }
.places .place:nth-child(3n+2) .shot::after { background: var(--teal); }
.places .place:nth-child(3n) .shot::after { background: var(--olive); }

.shot img { transform: scale(var(--z, 1)); transition: transform 1.1s var(--ease); }
.js-anim .shot img { --z: 1.09; }
.js-anim .in .shot img { --z: 1; }
.place:hover .shot img, .gal figure:hover .shot img { --z: 1.05; }

/* лента африканских стран — едет сама и ускоряется от прокрутки */
.belt {
  margin: 54px 0 6px; overflow: hidden; border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 18px 0; user-select: none;
}
.belt__lbl {
  font-family: var(--head); font-size: 12px; letter-spacing: .22em; text-transform: uppercase;
  color: var(--teal); margin: 0 0 14px;
}
.belt__row { display: flex; width: max-content; will-change: transform; }
.belt__row span {
  font-family: var(--head); font-size: clamp(26px, 3.6vw, 44px); text-transform: uppercase;
  letter-spacing: .04em; color: var(--ink); opacity: .34; white-space: nowrap; padding-right: 34px;
  display: flex; align-items: center; gap: 34px;
}
.belt__row span::after {
  content: ""; width: 11px; height: 11px; flex: none; border-radius: 50%;
  background: var(--gold);
}

/* солнце из орнамента — медленно поворачивается на фоне тёмного блока */
.sun {
  position: absolute; right: -140px; top: 50%; width: 520px; height: 520px;
  margin-top: -260px; opacity: .1; color: var(--gold); pointer-events: none;
  will-change: transform;
}
.sun svg { width: 100%; height: 100%; }
.sec--dark { position: relative; overflow: hidden; }
.sec--dark .wrap { position: relative; z-index: 1; }

/* карточки направлений подъезжают со сдвигом и лёгким масштабом */
.js-anim .track.reveal { transform: translateY(34px) scale(.965); }
.js-anim .track.reveal.in { transform: none; }

/* ── адаптив ───────────────────────────────────── */

@media (max-width: 1080px) {
  .tracks { grid-template-columns: 1fr 1fr; }
  .value { grid-template-columns: 1fr 1fr; }
  .guests, .places, .orgs { grid-template-columns: 1fr 1fr; }
  .gal { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; gap: 0;
    background: rgba(43, 32, 26, .98); padding: 10px 24px 22px;
    transform: translateY(-130%); transition: transform .4s var(--ease);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .3);
  }
  .nav.is-open { transform: none; }
  .nav a { padding: 14px 0; border-bottom: 1px solid rgba(255, 249, 237, .1); font-size: 16px; }
  .nav a::after { display: none; }

  .burger {
    display: flex; flex-direction: column; justify-content: center; gap: 5px;
    width: 42px; height: 42px; background: transparent; border: 0; cursor: pointer; padding: 0 8px;
    margin-left: auto;
  }
  .burger span { display: block; height: 2px; background: var(--cream); transition: transform .3s var(--ease), opacity .3s var(--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); }
  .top .btn--sm { display: none; }
  .top .brand { margin-right: auto; }

  /* на узких экранах шапка плотная всегда — из-под неё выезжает меню */
  .top { background: var(--ink); }

  .hero { padding-top: 108px; }
  .hero__in { grid-template-columns: 1fr; gap: 0; }
  .hero__art { min-height: 0; margin-top: 20px; }
  .hero__mask { max-width: 320px; margin: 0 auto; }
  .hero__wing { display: none; }

  .about { grid-template-columns: 1fr; gap: 34px; }
  .reg__in { grid-template-columns: 1fr; gap: 34px; }
  .sec { padding: 70px 0; }

  .sun { width: 340px; height: 340px; margin-top: -170px; right: -110px; }
  .belt { margin: 40px 0 4px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .wrap { padding: 0 18px; }
  .tracks, .value, .guests, .places, .orgs { grid-template-columns: 1fr; }
  .gal { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stats { grid-template-columns: 1fr 1fr; }
  .hero__facts { gap: 26px; }
  .count__cell { min-width: 0; flex: 1; }
  .events li { padding-left: 0; padding-top: 56px; }
  .events li::before { top: 22px; }
  .prog-cta { flex-direction: column; align-items: flex-start; }
  .btn { width: 100%; }
  .top .btn--sm { width: auto; }
}
