:root{
  --bg: #0f1115;
  --surface: #171a21d0;
  --surface-2: #1d212bea;
  --border: rgba(255,255,255,.08);
  --text: #f5f7fb;
  --muted: rgba(245,247,251,.68);
  --accent: #d96b7b;
  --accent-hover: #c85c6d;
  --shadow: 0 8px 30px rgba(0,0,0,.18);
}

*{
  box-sizing: border-box;
}

html, body{
  height: 100%;
}

body{

  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  background-image: url("assets/bg2.jpg");
  background-size: 100% cover;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;    
}

.wrap{
  width: min(980px, 100%);
  height: 90%;
  margin: 65px auto 24px auto;
}

.card{
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);

}

.topbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: transparent;
}

.brand{
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .2px;
}

.dot{
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--accent);
}

.hint{
  color: var(--muted);
  font-size: 13px;
}

.content{
  padding: 24px;
}

.hero{
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 18px;

}

@media (max-width: 860px){
  .hero{
    grid-template-columns: 1fr;
  
  }
}

.panel{
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 18px;
}

h1, h2{
  margin: 0 0 12px;
  line-height: 1.1;
  font-weight: 700;
}

h1{
  font-size: 36px;
}

p{
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.65;
  font-size: 15px;
}

.badge{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 11px;
  margin-bottom: 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--muted);
  font-size: 13px;
}

.gallery{
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 10px;
}

.img{
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: #11141a;
  position: relative;

  opacity: 0;
  transform: translateY(40px) scale(.96);
  animation: photoReveal .9s ease forwards;
}

.img::after{
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0,0,0,.18),
    rgba(0,0,0,.04) 45%,
    rgba(255,255,255,.03)
  );
  pointer-events: none;
  transition: opacity .35s ease;
}

.img img{
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(.95);
  transform: scale(1.02);
  transition: transform .6s ease, filter .4s ease;
}

.img:hover{
  transform: translateY(-6px) scale(1.01);
  box-shadow: 0 18px 40px rgba(0,0,0,.28);
}

.img:hover img{
  transform: scale(1.08);
  filter: saturate(1.05) brightness(1.03);
}

.img:hover::after{
  opacity: .6;
}
.span-7{ grid-column: span 7; height: 220px; }
.span-5{ grid-column: span 5; height: 220px; }
.span-6{ grid-column: span 6; height: 180px; }

@media (max-width: 860px){
  .span-7, .span-5, .span-6{
    grid-column: span 3;
    height: 100px;
  }
}

.longtext{
  white-space: pre-line;
  color: var(--text);
  background: rgba(255,255,255,.02);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 16px;
  line-height: 1.7;
  font-size: 15px;
}

.actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

button,
a.btn{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  color: white;
  background: var(--accent);
  transition: background .18s ease, transform .08s ease, border-color .18s ease;
}

button:hover,
a.btn:hover{
  background: var(--accent-hover);
}

button:active,
a.btn:active{
  transform: translateY(1px);
}

.btn.ghost{
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}

.btn.ghost:hover{
  background: rgba(255,255,255,.04);
}

.footer{
  margin-top: 16px;
  color: var(--muted);
  font-size: 12px;
}

/* Фоновую картинку делаем почти незаметной */
.bg-photo{
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .06;
  pointer-events: none;
}

.bg-overlay{
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.08);
  pointer-events: none;
}

/* Оверлей музыки */
.music-overlay{
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(0,0,0,.45);
  backdrop-filter: blur(4px);
  z-index: 9999;
}

.music-box{
  width: min(520px, 100%);
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 16px;
  padding: 18px;
  box-shadow: var(--shadow);
}

.music-box h3{
  margin: 0 0 8px;
  font-size: 18px;
}

.music-box p{
  margin: 0 0 12px;
}

/* Конфетти */
#confetti,
#confettiCanvas{
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}
@keyframes photoReveal{
  0%{
    opacity: 0;
    transform: translateY(40px) scale(.96);
  }
  60%{
    opacity: 1;
    transform: translateY(-6px) scale(1.01);
  }
  100%{
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Появление по очереди */
.gallery .img:nth-child(1){
  animation-delay: 1.15s;
}

.gallery .img:nth-child(2){
  animation-delay: 1.35s;
}

.gallery .img:nth-child(3){
  animation-delay: 1.55s;
}

.gallery .img:nth-child(4){
  animation-delay: 1.75s;
}