/* ===== RESET ===== */
* { box-sizing: border-box; }

/* ===== BASE ===== */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  overflow-x: hidden;
  background: radial-gradient(circle at top, #0b1d33, #02040a 70%);
  color: #f5f7fa;
  font-family: "Montserrat", sans-serif;
}

/* ===== SNOW ===== */
#snow {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.snowflake {
  position: absolute;
  top: -10px;
  color: #fff;
  text-shadow: 0 0 10px rgba(255,255,255,.8);
  opacity: 0.8;
  animation: fall linear forwards;
}

@keyframes fall {
  0% { transform: translate(0, 0); }
  50% { transform: translate(30px, 50vh); }
  100% { transform: translate(-30px, 110vh); opacity: 0; }
}

/* ===== FLOATING DECOR (HERO) ===== */
.decor {
  position: fixed;
  top: 110vh;
  font-size: 2.6rem;
  opacity: 0.55;
  animation: decorFloat linear infinite;
  z-index: 0;
}

@keyframes decorFloat {
  from { transform: translateY(0) rotate(0deg); }
  to   { transform: translateY(-220vh) rotate(360deg); }
}

/* ===== SECTIONS ===== */
section {
  min-height: 100vh;
  padding: 110px 8%;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
}

/* ===== HERO ===== */
.hero {
  justify-content: center;
  text-align: center;
}

.hero h1 {
  font-size: clamp(3.2rem, 6vw, 5.4rem);
  text-shadow: 0 0 30px rgba(150,200,255,.6);
}

/* ===== STORY ===== */
.story {
  display: flex;
  flex-direction: column;
}

/* ===== MAIN ROW ===== */
.story-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  margin: 80px 0;
}

.story-row.reverse {
  grid-template-columns: 1fr 1fr;
}

.story-text p {
  font-size: 1.8rem;
  font-weight: 600;
  line-height: 1.7;
}

/* ===== HORIZONTAL PHOTO PAIR ===== */
.photo-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
}

.photo {
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  overflow: hidden;
  box-shadow:
    0 0 0 2px rgba(255,255,255,.12),
    0 0 30px rgba(2, 49, 107, 0.35);
  animation: glow 5s ease-in-out infinite alternate;
}

.photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@keyframes glow {
  from { box-shadow: 0 0 25px rgba(120,180,255,.3); }
  to   { box-shadow: 0 0 45px rgba(200,220,255,.7); }
}

/* ===== MOBILE ===== */
@media (max-width: 900px) {
  section {
    padding: 90px 6%;
  }

  .story-row {
    grid-template-columns: 1fr;
    margin: 60px 0;
  }

  .photo-pair {
    grid-template-columns: 1fr;
  }

  .story-text p {
    font-size: 1.3rem;
  }

  .decor {
    font-size: 1.9rem;
  }
}

.final {
  flex-direction: column;
  align-items: stretch;
  gap: 0;
}

/* Заголовок — отдельный смысловой блок */
.final-header {
  min-height: 35vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.final-header h2 {
  font-size: clamp(2.4rem, 4vw, 3.4rem);
  text-shadow: 0 0 25px rgba(150,200,255,.5);
}

/* Галерея — отдельная «глава» */
.final-gallery {
  padding-top: 40px;
  margin: auto;
}