* {
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}

.success {
  position: absolute;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  width: 320px;
  padding: 12px;
  flex-direction: row;
  align-items: center;
  display: none;
  background: rgba(132, 214, 90, 0.9);
  border-radius: 8px;
  z-index: 2;
  backdrop-filter: blur(2px);
  box-shadow: 0px 0px 5px -3px #111;
  transform: translateY(30px);
  margin-top: auto;
  bottom: 20px;
}

btn::-moz-focus-inner {
  border: 0;
}


.success__icon {
  width: 20px;
  height: 20px;
  transform: translateY(-2px);
  margin-right: 8px;
}

.success__icon path {
  fill: #393A37;
}

.success__title {
  font-weight: 500;
  font-size: 14px;
  color: #393A37;
}

.success__close {
  width: 20px;
  height: 20px;
  cursor: pointer;
  margin-left: auto;
}

.success__close path {
  fill: #393A37;
}

.success.show {
  display: flex;
  animation: dropIn 0.5s forwards;
}

.success.hide {
  animation: dropOut 0.5s forwards;
}

@keyframes dropIn {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }
  60% {
    opacity: 1;
    transform: translateY(-10px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes dropOut {
  0% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(30px);
  }
}

canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 0;
  pointer-events: auto;
}

body {
  background: #202020;
  font-family: "Krub", sans-serif;
  width: 100vw;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  flex-direction: column;
}



/* Анимация появления */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}


* {
  outline: none !important;
}

/* === Кнопки */
.btn {
  background: rgba(41,218,135, 0.1);
  color: #61ffbe;
  border: 1.5px solid #3dc8854d;
  border-radius: 12px;
  padding: 5px 11px;
  font-weight: 300;
  letter-spacing: 0.05em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  user-select: none;
  text-align: center;
  display: inline-block;
  min-width: 30px;
  box-shadow: 0 2px 8px rgba(30, 218, 135, 0.3);
  backdrop-filter: blur(6px);
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover {
  background: #29da87;
  color: #202224;
  border-color: #25b772;
  box-shadow: 0 5px 20px rgba(30, 218, 135, 0.7);
  outline: none;
}

.btn:focus {outline:none;}

.btn:active {
  outline: none;
  transform: scale(0.97);
  transition: transform 0.1s ease;
  outline: none;
}
.btn-secondary {
  background: rgba(232,221,125,0.12);
  color: #e9e26a;
  border-color: #e9e26a33;
  box-shadow: 0 2px 8px rgba(232, 221, 125, 0.25);
}
.btn-secondary:hover {
  background: #e8dd7d;
  color: #3a3a0a;
  border-color: #d1ca2e;
  box-shadow: 0 5px 20px rgba(232, 221, 125, 0.7);
}


/* === Текстовые стили */
.text-center { text-align: center; }
.text-muted { color: rgba(237,239,242,0.6); }
.text-bold { font-weight: 700; }
.text-small { font-size: 0.85em; color: rgba(237,239,242,0.7); }

/* === Списки */
.list {
  padding-left: 1.3em;
  margin: 0;
  color: #edeff2;
}
.list li {
  margin-bottom: 8px;
  line-height: 1.4;
  position: relative;
  padding-left: 14px;
}
.list li::before {
  content: '•';
  position: absolute;
  left: 0;
  top: 0;
  color: #61ffbe;
  transform: scale(1.3);
}

/* === Заголовки */
.h1, h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); margin-bottom: 12px; color: #e7e7ee; font-weight: 700; }
.h2, h2 { font-size: clamp(1.4rem, 3vw, 2.2rem); margin-bottom: 10px; color: #d1d2d7; font-weight: 600; margin-top: 5%; }
.h3, h3 { font-size: clamp(1.2rem, 2vw, 1.6rem); margin-bottom: 8px; font-weight: 600; color: #c1c3c8; }



/* === Дополнительно — плавный fadeIn при загрузке */
.fade-in {
  animation: fadeInUp 0.7s cubic-bezier(.7, .2, .18, 1) both;
  opacity: 0;
  transform: translateY(12px);
}

/* === Полезные утилиты */
.mt-1 { margin-top: 8px; }
.mt-2 { margin-top: 16px; }
.mb-1 { margin-bottom: 8px; }
.mb-2 { margin-bottom: 16px; }
.p-1 { padding: 8px; }
.p-2 { padding: 16px; }



.event-wrapper > .event-wrapper-inp {
  display: none;
}

.event-wrapper {
  margin: 10px;
  position: fixed;
  top: 0;
  right: 0;

  background-color: rgba(40,42,44,0.17);
  border-radius: 16px;
  border: 1.5px solid rgba(170,170,180,0.10);
  box-shadow: 0 4px 20px rgba(30,34,38, .13);
  backdrop-filter: blur(7px);

  display: none;
  align-items: center;
  justify-content: center;
  height: 54px;
  width: 54px;
  transition: all 0.3s;
  z-index: 3;
}

.bar {
  display: flex;
  height: auto;
  width: 40%;
  flex-direction: column;
  gap: 3px;
}

.bar-list {
  --transform: -25%;
  display: block;
  width: 100%;
  height: 3px;

  border-radius: 50px;
  background-color: white;
  transition: all 0.4s;
  position: relative;
  justify-content: center;
}

.event-wrapper-inp:checked ~ .bar > .top {
  transform-origin: top right;
  transform: translateX(-20%) translateY(var(--transform)) rotate(-45deg);
}

.event-wrapper-inp:checked ~ .bar > .middle {
  transform: translateX(-50%);
  opacity: 0;
}

.event-wrapper-inp:checked ~ .bar > .bottom {
  transform-origin: bottom right;
  transform: translateX(-20%) translateY(calc(var(--transform) * -1)) rotate(45deg);
}


.menu-container {
  position: fixed;
  left: 50%;
  top: 0;
  transform: translate(-50%, -100%);
  width: 300px;
  height: auto;
  background: rgba(40, 42, 44, 0.1);
  border-radius: 16px;
  border: 1.5px solid rgba(170, 170, 180, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 4px 20px rgba(30, 34, 38, 0.13);
  color: white;
  padding: 15px;
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 3;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Активное состояние — меню сдвигается вниз и становится видимым */
.menu-container.active {
  transform: translate(-50%, 10px); /* чуть ниже верхнего края */
  opacity: 1;
}

/* Пункты меню */

.menu-list {
  position: relative;
  padding: 10px 16px;
  margin-bottom: 8px;
  border-radius: 12px;
  color: white;
  cursor: pointer;
  z-index: 3;
  transition:
    transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
    box-shadow 0.25s ease,
    background-color 0.25s ease,
    color 0.25s ease;
  user-select: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}

.menu-list:hover {
  transform: scale(1.03); /* слабое увеличение */
  background-color: rgba(255, 255, 255, 0.07);
  box-shadow:
    0 6px 12px rgba(255, 255, 255, 0.12),
    0 0 6px rgba(255, 255, 255, 0.15);
  z-index: 3;
}

/* Полноэкранный блюр-оверлей */
.screen-blur {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(30, 30, 30, 0.25);
  backdrop-filter: blur(7px);
  -webkit-backdrop-filter: blur(7px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
  z-index: 2;
}

/* Активный overlay - видимый */
.screen-blur.active {
  opacity: 1;
  pointer-events: auto;
}

.particles-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
  z-index: 1; /* на заднем плане относительно меню */
}

/* Стили частиц */

.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  background-color: rgba(255, 255, 255, 0.3);
  opacity: 1;
  will-change: transform, opacity;
  animation: particleFly 2s forwards;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.7));
  mix-blend-mode: screen; /* для красивого смешивания */
}

@keyframes particleFly {
  from {
    transform: translate(0, 0) scale(1);
    opacity: 1;
  }
  to {
    transform: translate(var(--dx), var(--dy)) scale(0);
    opacity: 0;
  }
}

.menu-list.active {
  background-color: rgba(255, 255, 255, 0.15);
  color: #ddd;
  font-weight: 600;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  cursor: default;
  pointer-events: none;
  transition: none;
}

.menu-list.active:hover {
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.3);
  color: #ddd;
}

a {
  text-decoration: none;
  -webkit-tap-highlight-color: rgba(255, 255, 255, 0);
  -webkit-tap-highlight-color: transparent;
}

/* Кнопка .btn-link */
.btn-link {
  display: flex;
  align-items: center;
  gap: 8px;
  left: 0;
  background: rgba(40, 42, 44, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  border: 1.2px solid rgba(170, 170, 180, 0.15);
  border-radius: 12px;

  padding: 6px 12px;

  font-size: clamp(12px, 1.2vw, 14px);
  color: #edeff2;
  font-family: inherit;

  cursor: pointer;
  user-select: none;

  box-shadow: 0 0 8px rgba(255, 255, 255, 0.1);

  transition:
    background-color 0.3s ease,
    box-shadow 0.3s ease,
    transform 0.2s ease;

}

.btn-link::before {
backdrop-filter: blur(8px);
position: absolute;
} 

.btn-link:hover, .btn-link:focus {
  background: rgba(40, 42, 44, 0.6);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
  outline: none;
}

/* Иконка внутри кнопки */
.btn-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: drop-shadow(0 0 1px rgba(0,0,0,0.6));
  display: block;
  object-fit: contain;
  margin: 0;
  border: none;
}



.btn-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.round {
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

#nav {
  position: static;
  background: rgba(40, 42, 44, 0.1);
  border-radius: 16px;
  border: 1.5px solid rgba(170, 170, 180, 0.10);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 1;
  height: 54px;
  width: 80vw;
  margin-top: 10px;
  margin: 10px auto;
  display: flex;
  justify-content: space-between;
  padding-left: 10px;
  padding-right: 10px;
  text-align: center;
}

#nav > .menu-list {
  display: flex;
  width: auto;
  margin: auto;
  font-size: large;
  flex: 1;
  z-index: 1;
  margin-left: 10px;
  margin-right: 10px;
  text-align: center;
  justify-content: center;
  align-items: center;  
}

/* Ключевая анимация fadeInUp */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.card-buttons {
  margin-top: auto;
  transform: translateX(-50%);
  display: flex;
  gap: 12px;
  z-index: 1;
  max-width: 300px;

  left: 0;
  bottom: 0;
  
  animation: fadeInUp 0.8s ease forwards;
  opacity: 0;
  flex-wrap: wrap-reverse;
}

/* Анимация появления - переопределяем transform чтобы учесть translateX */
.card-buttons.fade-in {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
  backdrop-filter: blur(8px);
}

.content {
  width: 100%;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  justify-content: center;
  max-width: 900px;
  position: fixed;
  display: flex; 
  gap: 16px;
}

/* === Адаптивность */
@media (max-width: 900px) {
  .container {
    padding: 15px 10vw;
  }
  .content {
    flex-direction: column;
    gap: 40px;
    margin: auto;
  }
    .event-wrapper {
    display: flex;
  }
  #nav {
    display: none;
  }
  .card-buttons {
    flex-wrap: wrap;
    height: auto;
    max-width: 100vw;
    justify-content:center;
  }
  .card {
    max-width: 90vw;
    padding: 20px 22px;
    margin: auto;
  }
  .btn {
    padding: 9px 18px;
    min-width: 100px;
  }
}
@media (max-width: 600px) {
  .container {
    padding: 16px 3vw;
  }
  .card {
    padding: 16px 18px;
  }
  .btn {
    padding: 8px 14px;
    min-width: 120px;
  }
}
@media (max-width: 1200px) {
  #nav {
    width: 95vw;
    font-size: medium;
  }
}

/* === Карточки с контентом — центрируются горизонтально */
.card {

  z-index: 1;
  box-sizing: border-box;
  width: 90%;
  height: 90%;
  background: rgba(40,42,44,0.17);
  border-radius: 16px;
  border: 1.5px solid rgba(170,170,180,0.10);
  padding: 16px 16px 0;
  max-width: 500px;
  box-shadow: 0 4px 20px rgba(30,34,38, .13);
  backdrop-filter: blur(7px);
   
  flex-grow: 1;
  height: auto;
   
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #edeff2;
  font-size: clamp(15px, 2vw, 20px);

  gap: 16px;
   
  margin-bottom: -20px;  

  animation: fadeInUp .6s ease forwards;
  opacity: 0;
  transform: translateY(18px);
  outline: none;
}
.card .img {
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}

video {
  max-width: 100%;
  border-radius: 12px;
  object-fit: cover;
}