/* ============================================================
   БАРАБАНДА — школа барабанов
   Тёмная тема + неоновые рамки в стилистике логотипа-штампа
   ============================================================ */

:root {
  --bg-0: #030a06;
  --bg-1: #051009;
  --neon: #3ee85e;
  --neon-soft: rgba(62, 232, 94, .35);
  --neon-dim: rgba(62, 232, 94, .22);
  --pink: #ff7fb1;
  --pink-hot: #ff4f94;
  --ember: #ff7a1a;
  --text: #e9f6ec;
  --muted: #9fb8a6;
  --font-head: 'Unbounded', 'Arial Black', sans-serif;
  --font-body: 'Rubik', 'Segoe UI', Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  background:
    radial-gradient(1200px 600px at 85% -10%, rgba(62, 232, 94, .08), transparent 60%),
    radial-gradient(900px 500px at -10% 35%, rgba(62, 232, 94, .05), transparent 60%),
    radial-gradient(1000px 700px at 110% 85%, rgba(255, 79, 148, .06), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-0) 40%, var(--bg-1));
  background-attachment: fixed;
}

::selection { background: var(--neon); color: #04120a; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #04100a; }
::-webkit-scrollbar-thumb {
  background: #1d5a30;
  border-radius: 6px;
  border: 2px solid #04100a;
}
::-webkit-scrollbar-thumb:hover { background: #2a8746; }

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

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

section { scroll-margin-top: 92px; }

/* якорь на номере телефона: не прячем под фиксированной шапкой */
#phone { scroll-margin-top: 120px; }

/* ---------- ШАПКА ---------- */
.site-header {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(4, 12, 7, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--neon-dim);
  box-shadow: 0 0 22px rgba(62, 232, 94, .12);
}

.header-in {
  display: flex;
  align-items: center;
  gap: 26px;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--text);
}

.brand span {
  font-family: var(--font-head);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .18em;
  color: var(--muted);
}

.nav {
  display: flex;
  gap: 26px;
  margin-left: auto;
}

.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: .04em;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color .25s, border-color .25s, text-shadow .25s;
}

.nav a:hover {
  color: var(--neon);
  border-color: var(--neon);
  text-shadow: 0 0 12px var(--neon-soft);
}

/* бургер */
.burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: 1px solid var(--neon-dim);
  border-radius: 8px;
  padding: 10px 9px;
  cursor: pointer;
}

.burger span {
  width: 22px;
  height: 2px;
  background: var(--neon);
  border-radius: 2px;
  transition: transform .3s, opacity .3s;
  box-shadow: 0 0 6px var(--neon-soft);
}

.burger.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- КНОПКИ ---------- */
.btn {
  display: inline-block;
  font-family: var(--font-head);
  font-size: 14px;
  letter-spacing: .05em;
  text-transform: uppercase;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: 999px;
  border: 2px solid var(--neon);
  color: var(--neon);
  background: rgba(62, 232, 94, .05);
  box-shadow: 0 0 12px var(--neon-soft), inset 0 0 10px rgba(62, 232, 94, .08);
  transition: all .25s ease;
  white-space: nowrap;
}

.btn:hover {
  background: var(--neon);
  color: #04120a;
  box-shadow: 0 0 26px rgba(62, 232, 94, .65), inset 0 0 0 rgba(0, 0, 0, 0);
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, #46f06b, #2cc24e);
  color: #04120a;
  border-color: #7dffa0;
  box-shadow: 0 0 20px rgba(70, 240, 107, .5);
}

.btn-primary:hover {
  background: linear-gradient(180deg, #5dff7c, #36d45a);
  color: #04120a;
  box-shadow: 0 0 34px rgba(70, 240, 107, .8);
}

.btn-ghost { background: transparent; }

.btn-phone { padding: 11px 20px; font-size: 13px; margin-left: 6px; }
.btn-phone .ph-short { display: none; }

/* ---------- ГЛАВНЫЙ ЭКРАН ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 130px 0 190px;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .15;
  pointer-events: none;
}

.blob-1 {
  width: 520px; height: 520px;
  left: -140px; top: -120px;
  background: var(--neon);
  animation: drift 16s ease-in-out infinite alternate;
}

.blob-2 {
  width: 460px; height: 460px;
  right: -120px; bottom: -80px;
  background: var(--pink-hot);
  animation: drift 19s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translate(0, 0) scale(1); }
  to   { transform: translate(60px, 40px) scale(1.15); }
}

.hero-in { position: relative; } /* без z-index: чтобы mix-blend-mode эмблемы работал с фоном */

/* эмблема лежит на собственной плашке цвета фона PNG —
   никаких наложений и прыгающего фона */
.emblem-wrap {
  position: relative;
  max-width: 860px;
  margin: 0 auto 26px;
  background: #050505;
  border-radius: 18px;
  box-shadow: 0 0 40px rgba(62, 232, 94, .12);
}

.emblem {
  width: 100%;
  display: block;
  border-radius: 18px;
}

.hero-sub {
  font-size: clamp(16px, 2.4vw, 21px);
  color: var(--muted);
  margin-bottom: 34px;
  text-shadow: 0 0 18px rgba(62, 232, 94, .15);
}

.hero-cta {
  display: flex;
  gap: 18px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- КОСТЁР ИЗ БАРАБАННЫХ ПАЛОЧЕК ---------- */
.campfire {
  position: absolute;
  right: 4vw;
  bottom: 175px;
  width: 210px;
  z-index: 1;
  pointer-events: none;
}

.fire-glow {
  position: absolute;
  inset: -35% -45%;
  background: radial-gradient(closest-side, rgba(255, 122, 26, .22), rgba(255, 122, 26, .06) 55%, transparent 78%);
  animation: glow-pulse 2.2s ease-in-out infinite alternate;
}

@keyframes glow-pulse {
  from { opacity: .55; transform: scale(.92); }
  to   { opacity: 1;   transform: scale(1.05); }
}

.fire-svg { position: relative; display: block; width: 100%; }

.fire-floor { animation: glow-pulse 2.2s ease-in-out infinite alternate; }

.flames { animation: fire-sway 2.8s ease-in-out infinite alternate; }

@keyframes fire-sway {
  from { transform: rotate(-1.6deg); }
  to   { transform: rotate(1.6deg); }
}

.fl {
  transform-box: view-box;
  transform-origin: 120px 148px;
}

.f1 { animation: flick1 1.1s ease-in-out infinite; }
.f2 { animation: flick2 .85s ease-in-out infinite; }
.f3 { animation: flick3 .7s  ease-in-out infinite; }

/* светящийся ореол пламени */
.f0 { transform-origin: 120px 150px; animation: flame-breath 2s ease-in-out infinite alternate; }

@keyframes flame-breath {
  from { opacity: .4;  transform: scaleY(1); }
  to   { opacity: .68; transform: scaleY(1.08); }
}

/* боковые языки пламени и белое ядро */
.f4 { transform-origin: 101px 146px; animation: flick2 .95s ease-in-out infinite; animation-delay: -.35s; }
.f5 { transform-origin: 139px 146px; animation: flick1 1.05s ease-in-out infinite; animation-delay: -.7s; }
.f6 { transform-origin: 120px 140px; animation: flick3 .58s ease-in-out infinite; }

/* мини-огоньки на кончиках палочек */
.tfl { transform-box: view-box; }

.t1 { transform-origin: 158px 131px; animation: flick3 .55s ease-in-out infinite; }
.t2 { transform-origin: 82px 131px;  animation: flick2 .72s ease-in-out infinite; animation-delay: -.3s; }

@keyframes flick1 {
  0%, 100% { transform: scaleY(1)    skewX(0);     opacity: .92; }
  30%      { transform: scaleY(1.12) skewX(3deg);  opacity: 1; }
  60%      { transform: scaleY(.9)   skewX(-2.5deg); opacity: .85; }
}

@keyframes flick2 {
  0%, 100% { transform: scaleY(1)    skewX(0); }
  40%      { transform: scaleY(1.18) skewX(-3deg); }
  70%      { transform: scaleY(.92)  skewX(2deg); }
}

@keyframes flick3 {
  0%, 100% { transform: scaleY(1)    skewX(0); }
  35%      { transform: scaleY(1.25) skewX(2.5deg); }
  65%      { transform: scaleY(.88)  skewX(-2deg); }
}

.spark {
  transform-box: view-box;
  animation: riseA 2.6s ease-out infinite;
  opacity: 0;
}

.spark.rise-b { animation-name: riseB; animation-duration: 3.1s; }

@keyframes riseA {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: .95; }
  100% { transform: translateY(-74px) translateX(9px); opacity: 0; }
}

@keyframes riseB {
  0%   { transform: translateY(0); opacity: 0; }
  15%  { opacity: .9; }
  100% { transform: translateY(-64px) translateX(-10px); opacity: 0; }
}

/* тлеющие угли */
.ember {
  transform-box: fill-box;
  transform-origin: center;
  animation: ember-flick 1.7s ease-in-out infinite alternate;
}

@keyframes ember-flick {
  from { opacity: .45; transform: scale(.9); }
  to   { opacity: 1;   transform: scale(1.08); }
}

/* дым над огнём */
.smoke {
  transform-box: fill-box;
  transform-origin: center;
  mix-blend-mode: screen;
  opacity: 0;
  animation: smokeRise 5.4s ease-out infinite;
}

.smoke.s2 { animation-duration: 7s; }

@keyframes smokeRise {
  0%   { transform: translate(0, 14px) scale(.55); opacity: 0; }
  30%  { opacity: .16; }
  100% { transform: translate(7px, -30px) scale(1.5); opacity: 0; }
}

/* ---------- БЕГУЩАЯ СТРОКА ---------- */
.ticker {
  border-block: 1px solid var(--neon-dim);
  background: rgba(62, 232, 94, .04);
  overflow: hidden;
  padding: 14px 0;
}

.ticker-in {
  display: flex;
  width: max-content;
  animation: tick 28s linear infinite;
}

.ticker-in span {
  font-family: var(--font-head);
  font-size: 15px;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--neon);
  text-shadow: 0 0 14px var(--neon-soft);
  white-space: nowrap;
}

@keyframes tick { to { transform: translateX(-50%); } }

/* ---------- СЕКЦИИ ---------- */
.section { padding: 96px 0 70px; }

.stamp-title {
  display: inline-block;
  font-family: var(--font-head);
  font-weight: 700;
  font-size: clamp(22px, 3.4vw, 34px);
  text-transform: uppercase;
  letter-spacing: .08em;
  color: var(--neon);
  text-shadow: 0 0 16px var(--neon-soft), 0 0 40px rgba(62, 232, 94, .2);
  padding: 12px 30px;
  margin: 0 0 42px;
  border: 3px solid var(--neon);
  outline: 2px solid rgba(62, 232, 94, .45);
  outline-offset: 6px;
  border-radius: 8px;
  transform: rotate(-1.2deg);
  box-shadow: 0 0 18px var(--neon-soft), inset 0 0 14px rgba(62, 232, 94, .1);
}

.lead {
  font-size: clamp(16px, 2vw, 19px);
  color: var(--muted);
  max-width: 720px;
  margin-bottom: 46px;
}

/* статистика */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 22px;
}

.stat {
  position: relative;
  text-align: center;
  padding: 26px 16px;
  border: 1px solid var(--neon-dim);
  border-radius: 12px;
  background: linear-gradient(160deg, rgba(62, 232, 94, .06), rgba(0, 0, 0, .25));
  box-shadow: inset 0 0 22px rgba(62, 232, 94, .05);
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

.stat:hover {
  transform: translateY(-4px);
  border-color: var(--neon);
  box-shadow: 0 0 22px var(--neon-soft), inset 0 0 22px rgba(62, 232, 94, .08);
}

.stat b {
  display: block;
  font-family: var(--font-head);
  font-size: clamp(28px, 3.6vw, 40px);
  color: var(--neon);
  text-shadow: 0 0 18px var(--neon-soft);
  margin-bottom: 6px;
}

.stat span { color: var(--muted); font-size: 14px; letter-spacing: .05em; }

/* ---------- КАРТОЧКИ ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.card {
  position: relative;
  padding: 28px 24px;
  border: 1px solid rgba(62, 232, 94, .3);
  border-radius: 12px;
  background: linear-gradient(165deg, rgba(62, 232, 94, .06), rgba(2, 8, 5, .4));
  transition: transform .3s, box-shadow .3s, border-color .3s;
}

/* неоновые уголки, раскрывающиеся в рамку при наведении */
.card::before,
.card::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--neon);
  opacity: .85;
  transition: width .35s ease, height .35s ease, opacity .35s ease;
  pointer-events: none;
}

.card::before { top: -2px; left: -2px; border-right: none; border-bottom: none; border-top-left-radius: 12px; }
.card::after  { bottom: -2px; right: -2px; border-left: none; border-top: none; border-bottom-right-radius: 12px; }

.card:hover {
  transform: translateY(-5px);
  border-color: var(--neon);
  box-shadow: 0 0 26px var(--neon-soft), inset 0 0 26px rgba(62, 232, 94, .06);
}

.card:hover::before,
.card:hover::after { width: calc(100% + 4px); height: calc(100% + 4px); opacity: .3; }

.card h3, .card h4 {
  font-family: var(--font-head);
  font-size: 17px;
  letter-spacing: .04em;
  color: var(--neon);
  text-shadow: 0 0 12px var(--neon-soft);
  margin-bottom: 12px;
}

.card h4 { font-size: 15px; }

.card p { color: var(--muted); font-size: 15px; }

.card-ico {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 2px solid var(--neon-dim);
  border-radius: 12px;
  color: var(--neon);
  margin-bottom: 18px;
  box-shadow: 0 0 14px rgba(62, 232, 94, .12), inset 0 0 12px rgba(62, 232, 94, .07);
}

.card-ico svg { width: 30px; height: 30px; }

/* ---------- ГАЛЕРЕЯ ---------- */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 22px;
}

.ph-tile {
  position: relative;
  aspect-ratio: 4 / 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 2px dashed rgba(62, 232, 94, .35);
  border-radius: 14px;
  background:
    repeating-linear-gradient(45deg, rgba(62, 232, 94, .03) 0 12px, transparent 12px 24px),
    rgba(62, 232, 94, .03);
  color: var(--muted);
  font-size: 14px;
  overflow: hidden;
  transition: border-color .3s, box-shadow .3s, color .3s;
}

.ph-tile:hover {
  border-color: var(--pink-hot);
  color: var(--pink);
  box-shadow: 0 0 24px rgba(255, 79, 148, .2);
}

.ph-tile img { width: 100%; height: 100%; object-fit: cover; }

.ph-ico svg { width: 44px; height: 44px; opacity: .8; }

.ph-tile i {
  position: absolute;
  right: 12px;
  bottom: 6px;
  font-family: var(--font-head);
  font-style: normal;
  font-size: 26px;
  color: rgba(62, 232, 94, .18);
}

/* ---------- КОНТАКТЫ ---------- */
.contacts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 24px;
}

.contact-big {
  grid-column: span 2;
  text-align: center;
  padding: 40px 26px;
}

.contact-wide {
  grid-column: span 3;
}

.contact-wide .socials { justify-content: center; }

@media (max-width: 640px) {
  .contact-big { grid-column: span 1; }
  .contact-wide { grid-column: span 1; }
}

.big-phone {
  display: inline-block;
  font-family: var(--font-head);
  font-size: clamp(22px, 4vw, 36px);
  color: var(--neon);
  text-decoration: none;
  text-shadow: 0 0 20px var(--neon-soft);
  letter-spacing: .04em;
  margin: 8px 0 14px;
  transition: text-shadow .3s, transform .3s, color .3s;
}

.big-phone:hover {
  color: var(--pink);
  text-shadow: 0 0 26px rgba(255, 79, 148, .5);
  transform: scale(1.03);
}

.contact-big p { color: var(--muted); }

.socials { display: flex; gap: 12px; flex-wrap: wrap; }

.soc {
  text-decoration: none;
  color: var(--neon);
  border: 1px solid var(--neon-dim);
  border-radius: 999px;
  padding: 8px 18px;
  font-size: 14px;
  transition: all .25s;
}

.soc:hover {
  background: var(--neon);
  color: #04120a;
  box-shadow: 0 0 16px var(--neon-soft);
}

/* ---------- ПОДВАЛ ---------- */
.footer {
  border-top: 1px solid var(--neon-dim);
  padding: 26px 0 150px;
  margin-top: 40px;
}

.footer-in {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 14px;
}

.beat { color: var(--neon); text-shadow: 0 0 10px var(--neon-soft); animation: beat 1s ease-in-out infinite; }

@keyframes beat {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.12); }
}

/* ============================================================
   ГУЛЯЮЩАЯ ПАНТЕРА + БАРАБАН
   ============================================================ */
.walk-scene {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 150px;
  z-index: 90;
  pointer-events: none;
  /* без overflow: hidden — чтобы летящий барабан не обрезался рамкой сцены */
}

/* линия-«пол» */
.walk-scene::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--neon-dim) 10%, var(--neon-dim) 90%, transparent);
  filter: blur(.4px);
  opacity: .8;
}

.walk-scene::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 40px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(62, 232, 94, .08), transparent 70%);
}

.actor {
  position: absolute;
  bottom: 10px;
  left: 0;
  will-change: transform;
}

.panther {
  width: 64px;
  pointer-events: auto; /* клик по пантере: сидеть/идти */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.panther-svg { display: block; width: 100%; height: auto; }

/* походка на двух ногах */
.panther-inner { transform-box: view-box; }

.walking .panther-inner { animation: bob .5s ease-in-out infinite; }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-2px); }
}

.leg, .arm { transform-box: view-box; }

.leg-near { transform-origin: 47px 88px; }
.leg-far  { transform-origin: 55px 88px; }
.arm-near { transform-origin: 55px 52px; }
.arm-far  { transform-origin: 65px 54px; }

.walking .leg-near { animation: legA .5s linear infinite; }
.walking .leg-far  { animation: legB .5s linear infinite; }
.walking .arm-near { animation: legB .5s linear infinite; }
.walking .arm-far  { animation: legA .5s linear infinite; }

@keyframes legA {
  0%, 100% { transform: rotate(-13deg); }
  50%      { transform: rotate(15deg); }
}

@keyframes legB {
  0%, 100% { transform: rotate(15deg); }
  50%      { transform: rotate(-13deg); }
}

/* хвост */
.p-tail {
  transform-box: view-box;
  transform-origin: 34px 94px;
  animation: tail-sway 1.8s ease-in-out infinite;
}

@keyframes tail-sway {
  0%, 100% { transform: rotate(7deg); }
  50%      { transform: rotate(-9deg); }
}

/* моргание */
.p-eye {
  transform-box: view-box;
  transform-origin: 63px 22px;
  animation: blink 4.6s infinite;
}

@keyframes blink {
  0%, 91%, 100% { transform: scaleY(1); }
  94%           { transform: scaleY(.12); }
}

/* удар ногой */
.kick .leg-near { animation: kick-leg .48s cubic-bezier(.4, 0, .2, 1) both; }
.kick .leg-far  { animation: brace .48s ease both; }
.kick .arm-near { animation: kick-arm .48s ease both; }
.kick .panther-inner { animation: lunge .48s ease both; }

@keyframes kick-leg {
  0%   { transform: rotate(0); }
  28%  { transform: rotate(28deg); }
  58%  { transform: rotate(-78deg); }
  78%  { transform: rotate(-58deg); }
  100% { transform: rotate(0); }
}

@keyframes brace {
  30% { transform: rotate(-6deg); }
  60% { transform: rotate(6deg); }
  100% { transform: rotate(0); }
}

@keyframes kick-arm {
  0%   { transform: rotate(0); }
  30%  { transform: rotate(34deg); }
  62%  { transform: rotate(-16deg); }
  100% { transform: rotate(0); }
}

@keyframes lunge {
  0%   { transform: translateX(0) rotate(0); }
  35%  { transform: translateX(-3px) rotate(2deg); }
  62%  { transform: translateX(6px) rotate(-3deg); }
  100% { transform: translateX(0) rotate(0); }
}

/* поза «сидит» — по клику на пантеру */
.panther .leg,
.panther .arm,
.panther .panther-inner,
.panther .p-tail { transition: transform .45s ease; }

.sit .panther-inner {
  animation: none;
  transform: translateY(44px) rotate(-9deg);
  transform-origin: 50px 90px;
}

.sit .leg-near,
.sit .leg-far { transform: rotate(-76deg); }

.sit .arm-near { transform: rotate(-12deg); }

.sit .arm-far  { transform: rotate(-8deg); }

.sit .p-tail {
  animation: none;
  transform: rotate(-14deg);
}

/* барабан */
.drum { width: 52px; }

.drum svg {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 0 8px rgba(62, 232, 94, .75));
}

.drum-rot { transform-box: view-box; will-change: transform; }

.drum-boing { transform-origin: 50% 100%; }

.drum-boing.boing { animation: boing .32s ease-out; }

@keyframes boing {
  0%   { transform: scale(1, 1); }
  35%  { transform: scale(1.14, .8); }
  70%  { transform: scale(.94, 1.07); }
  100% { transform: scale(1, 1); }
}

/* «БАМ!» при ударе */
.burst {
  position: absolute;
  left: 50%;
  top: -34px;
  font-family: var(--font-head);
  font-weight: 900;
  font-size: 20px;
  color: #ffd0e6;
  text-shadow: 0 0 12px rgba(255, 79, 148, .8), 0 0 26px rgba(255, 79, 148, .4);
  transform: translateX(-50%) rotate(-8deg);
  opacity: 0;
  white-space: nowrap;
}

.burst.show { animation: burst-pop .55s ease-out both; }

@keyframes burst-pop {
  0%   { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(.5); }
  20%  { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1.15); }
  60%  { opacity: 1; transform: translateX(-50%) rotate(-8deg) scale(1); }
  100% { opacity: 0; transform: translateX(-50%) rotate(-8deg) scale(1) translateY(-16px); }
}

/* ---------- МИНИ-БАРАБАНЩИК НА ЭМБЛЕМЕ ---------- */
/* всегда стоит на верхней рамке штампа, над надписью */
.drummer-pop {
  position: absolute;
  left: 56%;
  bottom: 86%;
  width: clamp(46px, 10.5%, 86px);
  z-index: 3;
  pointer-events: auto; /* клик по нему — звук тарелки */
  cursor: pointer;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  filter: drop-shadow(0 0 10px rgba(62, 232, 94, .3));
}

.drummer-pop svg { display: block; width: 100%; }

.arm-l, .arm-r, .cymbal { transform-box: view-box; }

.arm-l { transform-origin: 36px 38px; }
.arm-r { transform-origin: 52px 38px; }
.cymbal { transform-box: fill-box; transform-origin: center; }

.drummer-pop .arm-l  { animation: hit-l .14s ease-in-out infinite alternate; }
.drummer-pop .arm-r  { animation: hit-r .14s ease-in-out infinite alternate; animation-delay: -.07s; }
.drummer-pop .cymbal { animation: cym-wiggle .14s ease-in-out infinite alternate; }

/* при клике на кнопки барабанщик играет быстрее */
.drummer-pop.fast .arm-l  { animation-duration: .08s; }
.drummer-pop.fast .arm-r  { animation-duration: .08s; animation-delay: -.04s; }
.drummer-pop.fast .cymbal { animation-duration: .08s; }

/* клик по самому барабанщику — удар по тарелке */
.drummer-pop.crash .arm-r  { animation-duration: .07s; }
.drummer-pop.crash .cymbal {
  animation: cym-crash .28s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(255, 210, 63, .9));
}

@keyframes cym-crash {
  from { transform: rotate(-13deg) scale(1.12); }
  to   { transform: rotate(13deg)  scale(1.12); }
}

@keyframes hit-l {
  from { transform: rotate(-18deg); }
  to   { transform: rotate(12deg); }
}

@keyframes hit-r {
  from { transform: rotate(14deg); }
  to   { transform: rotate(-16deg); }
}

@keyframes cym-wiggle {
  from { transform: rotate(-2.5deg); }
  to   { transform: rotate(2.5deg); }
}

/* ---------- КНОПКА «НАВЕРХ» ---------- */
/* плавность появления/исчезновения управляется из JS по позиции скролла */
.to-top {
  position: fixed;
  right: 20px;
  bottom: 168px; /* над сценой с пантерой */
  z-index: 95;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 2px solid var(--neon);
  background: rgba(4, 12, 7, .85);
  color: var(--neon);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
  opacity: 0;
  transform: translateY(20px);
  pointer-events: none;
  box-shadow: 0 0 14px var(--neon-soft);
  transition: background .25s, color .25s, box-shadow .25s;
  will-change: opacity, transform;
}

.to-top:hover {
  background: var(--neon);
  color: #04120a;
  box-shadow: 0 0 26px rgba(62, 232, 94, .75);
}

.to-top svg { width: 24px; height: 24px; }

@media (max-width: 640px) {
  .to-top { bottom: 132px; right: 14px; width: 46px; height: 46px; }
  .to-top svg { width: 20px; height: 20px; }
}

/* ---------- ПОЯВЛЕНИЕ ПРИ СКРОЛЛЕ ---------- */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}

.reveal.visible { opacity: 1; transform: translateY(0); }

.cards .card:nth-child(2), .stats .stat:nth-child(2), .gallery .ph-tile:nth-child(3n+2) { transition-delay: .1s; }
.cards .card:nth-child(3), .stats .stat:nth-child(3), .gallery .ph-tile:nth-child(3n+3) { transition-delay: .2s; }
.cards .card:nth-child(4), .stats .stat:nth-child(4) { transition-delay: .3s; }

/* ---------- АДАПТИВ ---------- */
@media (max-width: 960px) {
  .nav {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: rgba(4, 12, 7, .96);
    border-bottom: 1px solid var(--neon-dim);
    padding: 10px 20px 18px;
    transform: translateY(-16px);
    opacity: 0;
    visibility: hidden;
    transition: transform .3s, opacity .3s, visibility .3s;
  }

  .nav.open { transform: translateY(0); opacity: 1; visibility: visible; }

  .nav a { padding: 12px 4px; border-bottom: 1px solid rgba(62, 232, 94, .12); font-size: 17px; }

  .burger { display: flex; margin-left: 4px; order: 3; }

  .btn-phone { margin-left: auto; order: 2; }
}

@media (max-width: 640px) {
  .btn-phone .ph-num { display: none; }
  .btn-phone .ph-short { display: inline; }
  .brand span { display: none; }

  /* эмблема выше, hero не растягивается — без пустоты внизу */
  .hero {
    align-items: flex-start;
    min-height: 0;
    padding-top: 108px;
    padding-bottom: 150px;
  }

  /* на мобильном костёр не показываем */
  .campfire { display: none; }

  .section { padding: 70px 0 56px; }

  /* сцена с пантерой компактнее */
  .walk-scene { height: 120px; }
  .panther { width: 48px; }
  .drum { width: 40px; }
  .actor { bottom: 8px; }
  .walk-scene::after { bottom: 7px; }
  .burst { font-size: 15px; top: -26px; }
}

/* ---------- УВАЖЕНИЕ К REDUCED MOTION ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }

  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; }
}
