/* ==========================================================================
   V3 — hero photo bg, olive offer, gallery, realistic torn edge, premium footer
   ========================================================================== */

/* ---------- hero background photo (Bangkok blur) ---------- */
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  filter: blur(7px) saturate(1.1) brightness(.62);
  transform: scale(1.08);
}
.hero::after {
  /* тёмная вуаль поверх фото, чтобы текст читался */
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(28,24,20,.72) 0%, rgba(28,24,20,.82) 60%, rgba(28,24,20,.95) 100%);
}
.hero__inner { position: relative; z-index: 3; }

/* ---------- olive paper (offer) ---------- */
.paper-olive {
  background-color: #6f6a30;
  background-image: var(--paper-kraft);
  background-size: 900px;
  background-blend-mode: multiply;
  color: var(--c-cream);
}

/* offer bullets: plus instead of cross */
.offer__list--plus li::before { content: "+"; color: var(--c-amber); }

/* ---------- carefree guest → stamp watermark (не линовка) ---------- */
.chat-stage[data-theme="carefree"] .stage-guest {
  background: none;
  background-image: url("../assets/stamp/stamp-cream.svg");
  background-repeat: no-repeat;
  background-position: right -50px bottom -50px;
  background-size: 260px;
  opacity: .12;
}

/* ---------- gallery ---------- */
.gallery-section { position: relative; }
.gallery {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 200px;
  gap: 12px;
}
.gallery__item {
  margin: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  background: rgba(241,232,213,.05);
  border: 1px solid rgba(241,232,213,.12);
}
.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .8s var(--ease);
  filter: saturate(1.05) contrast(1.03);
}
.gallery__item:hover img { transform: scale(1.06); }
.gallery__item--tall { grid-row: span 2; }
.gallery__item--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: dashed;
  border-color: rgba(241,232,213,.22);
}
.gallery__item--empty span {
  font-family: "JetBrains Mono", monospace;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(241,232,213,.4);
  text-align: center;
  line-height: 1.5;
}

@media (max-width: 720px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--tall { grid-row: span 2; }
}

/* ==========================================================================
   REALISTIC TORN PAPER EDGE (SVG displacement)
   ========================================================================== */
.tear {
  position: relative;
  height: clamp(56px, 8vw, 90px);
  margin-top: -1px;
  background-color: var(--c-dark);
  background-image: var(--paper-dark);
  background-size: 900px;
  overflow: hidden;
}
.tear__svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* ==========================================================================
   PREMIUM FOOTER
   ========================================================================== */
.footer {
  display: block;
  position: relative;
  overflow: hidden;
  padding: clamp(3rem, 7vw, 5rem) 0 2.4rem;
  opacity: 1;
}
.footer__wordmark {
  position: absolute;
  left: 50%;
  bottom: -3.2vw;
  transform: translateX(-50%);
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: 22vw;
  line-height: .8;
  letter-spacing: .02em;
  color: rgba(241,232,213,.05);
  pointer-events: none;
  white-space: nowrap;
  z-index: 0;
}
.footer__inner {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.2fr 1fr;
  gap: 1.6rem 2rem;
  align-items: start;
}
.footer__col { display: flex; flex-direction: column; gap: .55rem; }
.footer__col a, .footer__col span {
  font-family: "JetBrains Mono", monospace;
  font-size: .78rem;
  letter-spacing: .02em;
  color: rgba(241,232,213,.75);
}
.footer__col a { text-decoration: none; transition: color .2s; width: fit-content; }
.footer__col a:hover { color: var(--c-amber); }
.footer__label {
  font-size: .64rem !important;
  letter-spacing: .12em !important;
  text-transform: uppercase;
  color: rgba(241,232,213,.4) !important;
  margin-bottom: .2rem;
}
.footer__logo { width: 120px; margin-bottom: .3rem; }
.footer__tag {
  font-family: "Manrope", sans-serif;
  font-size: .82rem;
  line-height: 1.55;
  color: rgba(241,232,213,.6);
  margin: 0;
}
.footer__base {
  position: relative;
  z-index: 2;
  margin-top: clamp(2.5rem, 6vw, 4rem);
  padding-top: 1.4rem;
  border-top: 1px solid rgba(241,232,213,.12);
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.footer__base span {
  font-family: "JetBrains Mono", monospace;
  font-size: .7rem;
  letter-spacing: .04em;
  color: rgba(241,232,213,.45);
}

@media (max-width: 720px) {
  .footer__inner { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
  .footer__wordmark { font-size: 34vw; bottom: -4vw; }
}

/* ==========================================================================
   V3.1 — glow dots (перекличка с огоньками логотипа), автор, отзывы
   ========================================================================== */

.glow-dot {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--c-amber);
  box-shadow: 0 0 0 5px rgba(244, 166, 35, .16), 0 0 18px 2px rgba(244, 166, 35, .5);
  animation: glowPulse 2.6s ease-in-out infinite;
  pointer-events: none;
  z-index: 1;
}
.glow-dot--d1 { animation-delay: .5s; width: 8px; height: 8px; }
.glow-dot--d2 { animation-delay: 1.1s; width: 7px; height: 7px; }
.glow-dot--d3 { animation-delay: 1.7s; width: 9px; height: 9px; }
@keyframes glowPulse {
  0%, 100% { transform: scale(1); opacity: .9; }
  50% { transform: scale(1.45); opacity: .45; }
}

/* онлайн-индикатор в шапке чата */
.online-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--c-amber);
  margin-right: .5em;
  box-shadow: 0 0 8px 1px rgba(244, 166, 35, .6);
  animation: glowPulse 2.2s ease-in-out infinite;
  vertical-align: 1px;
}

/* ---------- цифры (конкретика) ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-top: clamp(1.8rem, 4vw, 2.6rem);
  padding: 1.4rem 0;
  border-top: 1px solid rgba(28, 24, 20, .14);
  border-bottom: 1px solid rgba(28, 24, 20, .14);
}
.stat { text-align: left; }
.stat b {
  display: block;
  font-family: "Unbounded", sans-serif;
  font-weight: 800;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  color: var(--c-terracotta);
  line-height: 1.1;
}
.stat span {
  font-family: "JetBrains Mono", monospace;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
  opacity: .6;
}
@media (max-width: 640px) {
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.2rem 1rem; }
}

/* ---------- слоты отзывов ---------- */
.reviews {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin-top: 1.6rem;
}
.review {
  border-radius: var(--radius);
  padding: 1.4rem 1.5rem;
}
.review--slot {
  border: 1px dashed rgba(28, 24, 20, .3);
  background: rgba(28, 24, 20, .03);
}
.review--slot p {
  margin: 0;
  font-family: "Neucha", cursive;
  font-size: 1.05rem;
  line-height: 1.5;
  color: rgba(28, 24, 20, .55);
}
@media (max-width: 640px) {
  .reviews { grid-template-columns: 1fr; }
}
