* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Inter', system-ui, sans-serif;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #ff758c, #ff7eb3);
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
}

.container {
  text-align: center;
  padding: 20px;
  max-width: 960px;
  width: 100%;
}

h1 {
  margin-bottom: 20px;
  font-size: clamp(24px, 5vw, 40px);
}

/* ===== ТАЙМЕР ===== */

.timer {
  display: flex;
  justify-content: center;
  gap: 15px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.time-box {
  background: rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  padding: 15px 20px;
  min-width: 100px;
}

.time-box span {
  font-size: 36px;
  font-weight: 700;
}

/* ===== ПЕРЕЛЁТ ===== */

.travel {
  margin-bottom: 30px;
  opacity: 0.9;
  font-size: 15px;
}

/* ===== ГАЛЕРЕЯ ===== */

.gallery-wrapper {
  position: relative;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 22px;

  /* стартовая позиция (хаос) */
  opacity: 0;
  transform: translateY(40px) scale(0.9);
  transition: all 0.9s ease;
}

/* финальное состояние */
.gallery img.show {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* ===== ФРАЗА ===== */

.phrase {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 36px;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
  text-shadow: 0 8px 24px rgba(0,0,0,0.35);
}

.phrase.show {
  opacity: 1;
}

/* ===== ФУТЕР ===== */

.footer {
  margin-top: 30px;
  opacity: 0.9;
}

/* ===== АДАПТИВ ===== */

@media (max-width: 640px) {
  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery img {
    height: 180px;
  }
}
