/* Дополнения к Tailwind: атмосфера и движение */
:root {
  --ink: #1c2421;
  --water: #2f5f62;
  --water-deep: #1d3f42;
  --sand: #c4a574;
}

body {
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(196, 165, 116, 0.18), transparent 55%),
    radial-gradient(900px 500px at 100% 0%, rgba(47, 95, 98, 0.14), transparent 50%),
    linear-gradient(180deg, #f7faf8 0%, #f3f6f4 40%, #eef3f0 100%);
}

.hero-zoom {
  animation: hero-zoom 14s ease-out forwards;
}

.hero-rise {
  animation: rise 0.9s ease both;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.float-max {
  animation: pulse-soft 2.8s ease-in-out infinite;
}

@keyframes hero-zoom {
  from { transform: scale(1.08); }
  to { transform: scale(1); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes pulse-soft {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

.gallery[hidden] {
  display: none !important;
}

.gallery {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.gallery__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 20, 19, 0.82);
}

.gallery__dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 920px);
  max-height: calc(100vh - 2rem);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 22px;
  background: #f7faf8;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.gallery__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.gallery__title {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.5rem;
  color: var(--ink);
}

.gallery__close {
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(28, 36, 33, 0.08);
  color: var(--ink);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.gallery__stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 280px;
  background: #e4ebe7;
  border-radius: 16px;
  overflow: hidden;
}

.gallery__image {
  max-width: 100%;
  max-height: min(68vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
}

.gallery__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 2.75rem;
  height: 2.75rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--water-deep);
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.16);
}

.gallery__nav--prev { left: 0.75rem; }
.gallery__nav--next { right: 0.75rem; }

.gallery__counter {
  margin: 0;
  text-align: center;
  color: #5f6d67;
  font-size: 0.95rem;
}
