/* ===== ЧАЖЕМТО — cold Siberian premium ===== */
:root {
  --ink: #05121a;
  --ink-2: #081c26;
  --cyan: #8fdcec;
  --cyan-dim: rgba(143, 220, 236, 0.35);
  --text: #e8f2f5;
  --text-dim: rgba(232, 242, 245, 0.65);
  --serif: 'Cormorant', 'Playfair Display', serif;
  --sans: 'Inter', -apple-system, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }
body {
  background: var(--ink);
  color: var(--text);
  font-family: var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img, video { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== Preloader ===== */
.preloader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--ink);
  display: flex; align-items: center; justify-content: center;
  transition: opacity 0.8s ease, visibility 0.8s;
}
.preloader.done { opacity: 0; visibility: hidden; }
.preloader-inner { text-align: center; }
.preloader-inner span {
  font-family: var(--serif); font-size: 1.4rem; letter-spacing: 0.5em;
  color: var(--cyan); display: block; margin-top: 24px;
}
.preloader-drop {
  width: 14px; height: 14px; margin: 0 auto;
  background: var(--cyan); border-radius: 50% 50% 50% 0;
  transform: rotate(-45deg);
  animation: dropPulse 1.2s ease-in-out infinite;
}
@keyframes dropPulse {
  0%, 100% { opacity: 0.3; transform: rotate(-45deg) scale(0.85); }
  50% { opacity: 1; transform: rotate(-45deg) scale(1.1); }
}

/* ===== Nav ===== */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; justify-content: space-between; align-items: center;
  padding: 26px 48px;
  background: linear-gradient(to bottom, rgba(5, 18, 26, 0.75), transparent);
}
.nav-logo {
  font-family: var(--serif); font-weight: 600;
  letter-spacing: 0.35em; font-size: 1.1rem; color: var(--text);
}
.nav-links { display: flex; gap: 36px; }
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--text-dim); transition: color 0.3s;
}
.nav-links a:hover { color: var(--cyan); }

/* ===== Hero ===== */
.hero {
  position: relative; height: 100vh; min-height: 640px;
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img {
  width: 100%; height: 100%; object-fit: cover; object-position: center;
}
#rippleCanvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  display: none;
}
#rippleCanvas.active { display: block; }
.hero-vignette {
  position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(to bottom, rgba(5,18,26,0.55) 0%, transparent 30%, transparent 55%, var(--ink) 100%),
    linear-gradient(to right, rgba(5,18,26,0.55), transparent 45%);
}
.hero-content {
  position: absolute; z-index: 3;
  left: 7vw; top: 50%; transform: translateY(-55%);
  max-width: 720px; pointer-events: none;
}
.hero-content a { pointer-events: auto; }
.hero-title {
  font-family: var(--serif); font-weight: 600; color: #fff;
  font-size: clamp(3rem, 6.35vw, 5.8rem);
  line-height: 1.03; letter-spacing: 0.04em;
  text-shadow: 0 4px 40px rgba(0, 0, 0, 0.5);
}
.hero-title .line { display: block; }
.hero-title .line-2 { font-size: 0.78em; font-weight: 500; }
.hero-sub {
  margin-top: 26px;
  font-size: clamp(0.7rem, 1vw, 0.85rem);
  letter-spacing: 0.32em; color: var(--text-dim);
}
.hero-note {
  margin-top: 18px;
  max-width: 520px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.55vw, 1.35rem);
  line-height: 1.45;
  color: rgba(232, 242, 245, 0.78);
}
.hero-actions { margin-top: 42px; display: flex; gap: 26px; align-items: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 16px 34px; border-radius: 999px;
  border: 1px solid var(--cyan-dim);
  background: rgba(8, 32, 40, 0.55);
  backdrop-filter: blur(8px);
  font-size: 0.72rem; letter-spacing: 0.24em;
  color: var(--text); transition: all 0.35s;
}
.btn-primary:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 34px rgba(143, 220, 236, 0.25);
}
.btn-play { font-size: 0.6rem; color: var(--cyan); }
.btn-ghost {
  font-size: 0.72rem; letter-spacing: 0.24em; color: var(--text-dim);
  border-bottom: 1px solid transparent; padding-bottom: 4px;
  transition: all 0.3s;
}
.btn-ghost:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.btn-secondary {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 16px 30px; border-radius: 999px;
  border: 1px solid rgba(232, 242, 245, 0.28);
  background: rgba(5, 18, 26, 0.18);
  backdrop-filter: blur(8px);
  font-size: 0.68rem; letter-spacing: 0.22em;
  color: var(--text-dim); transition: all 0.35s;
}
.btn-secondary:hover {
  color: var(--text);
  border-color: var(--cyan-dim);
  box-shadow: 0 0 26px rgba(143, 220, 236, 0.16);
}
.hero-scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%);
  width: 1px; height: 56px; overflow: hidden; z-index: 3;
  background: rgba(232, 242, 245, 0.12);
}
.hero-scroll-hint span {
  position: absolute; left: 0; top: -40%;
  width: 100%; height: 40%;
  background: var(--cyan);
  animation: scrollHint 2.2s ease-in-out infinite;
}
@keyframes scrollHint { 0% { top: -40%; } 100% { top: 110%; } }

/* ===== Depth ===== */
.depth {
  position: relative; padding: 18vh 7vw;
  background:
    radial-gradient(1200px 600px at 80% 40%, rgba(20, 60, 76, 0.25), transparent 60%),
    var(--ink);
}
.depth-inner {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8vw;
  max-width: 1280px; margin: 0 auto; align-items: center;
}
.depth-number {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(5rem, 11vw, 9.5rem); line-height: 1;
  background: linear-gradient(180deg, #dfeef2 20%, rgba(143, 220, 236, 0.25));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.depth-unit { letter-spacing: 0.5em; font-size: 1rem; color: var(--text-dim); margin-top: 8px; font-family: var(--serif); }
.depth-divider { width: 56px; height: 1px; background: var(--cyan-dim); margin: 40px 0; }
.depth-title {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.4rem, 2.4vw, 2rem); letter-spacing: 0.12em;
}
.depth-text { margin-top: 20px; max-width: 380px; color: var(--text-dim); font-weight: 300; line-height: 1.7; font-size: 0.95rem; }

.depth-scale { position: relative; height: 64vh; min-height: 420px; display: flex; }
.depth-beam {
  width: 3px; margin-left: 20%;
  height: 100%;
  background: linear-gradient(180deg, transparent, var(--cyan) 30%, #4cc3dd);
  box-shadow: 0 0 24px rgba(143, 220, 236, 0.5), 0 0 80px rgba(76, 195, 221, 0.3);
  transform-origin: top; transform: scaleY(0);
  border-radius: 2px;
}
.depth-marks { position: absolute; inset: 0; left: calc(20% + 30px); }
.depth-marks .mark {
  position: absolute; left: 0; transform: translateY(-50%);
  font-size: 0.75rem; letter-spacing: 0.18em; color: var(--text-dim);
  opacity: 0; padding-left: 22px;
}
.depth-marks .mark::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 12px; height: 1px; background: var(--cyan-dim);
}
.depth-marks .mark[data-d="500"] { top: 18%; }
.depth-marks .mark[data-d="1000"] { top: 33%; }
.depth-marks .mark[data-d="1500"] { top: 48%; }
.depth-marks .mark[data-d="2000"] { top: 63%; }
.depth-marks .mark[data-d="2500"] { top: 78%; }
.depth-marks .mark[data-d="2770"] { top: 94%; }
.mark-final {
  font-family: var(--serif); font-size: 1.5rem !important;
  color: #fff !important; letter-spacing: 0.1em !important;
}
.mark-final::before { background: var(--cyan) !important; box-shadow: 0 0 12px var(--cyan); }

/* ===== Source Cinema Hall ===== */
.hall { position: relative; background: #030c12; }
.hall-pin { height: 100vh; overflow: hidden; }
.hall-scene {
  position: relative; height: 100%;
  perspective: 1100px; perspective-origin: 50% 46%;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(28, 78, 96, 0.5), transparent 72%),
    radial-gradient(100% 40% at 50% 100%, rgba(14, 36, 46, 0.6), transparent 70%),
    #030c12;
}
.hall-depth-layer {
  position: absolute; inset: -5%;
  background:
    radial-gradient(45% 38% at 50% 46%, rgba(76, 195, 221, 0.12), transparent 70%);
}
/* stone side walls */
.hall-side-wall {
  position: absolute; top: 0; bottom: 0; width: 26vw; z-index: 2;
  background:
    linear-gradient(115deg, rgba(16, 40, 52, 0.9), rgba(6, 18, 26, 0.95)),
    repeating-linear-gradient(100deg, rgba(140, 190, 205, 0.12) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(10deg, rgba(0, 0, 0, 0.4) 0 3px, transparent 3px 34px);
  background-blend-mode: normal, screen, normal;
}
.hall-side-wall.left {
  left: 0;
  transform: perspective(900px) rotateY(38deg);
  transform-origin: left center;
  box-shadow: inset -60px 0 90px rgba(0, 0, 0, 0.75);
}
.hall-side-wall.right {
  right: 0;
  transform: perspective(900px) rotateY(-38deg);
  transform-origin: right center;
  box-shadow: inset 60px 0 90px rgba(0, 0, 0, 0.75);
}
/* ceiling light strips */
.hall-ceiling-lights {
  position: absolute; top: 0; left: 15%; right: 15%; height: 20vh; z-index: 2;
  display: flex; justify-content: space-between;
  transform: perspective(900px) rotateX(46deg);
  transform-origin: top center;
}
.hall-ceiling-lights i {
  width: 2px; height: 100%;
  background: linear-gradient(180deg, var(--cyan), transparent);
  opacity: 0.5;
  box-shadow: 0 0 18px rgba(143, 220, 236, 0.7);
}
/* moss islands */
.hall-moss {
  position: absolute; bottom: 4vh; width: 22vw; height: 16vh; z-index: 3;
  border-radius: 50% 50% 10% 10% / 90% 90% 10% 10%;
  filter: blur(2px);
  background:
    radial-gradient(60% 80% at 50% 100%, rgba(38, 74, 48, 0.85), rgba(14, 32, 24, 0.9) 70%, transparent),
    radial-gradient(30% 40% at 30% 70%, rgba(70, 120, 70, 0.35), transparent);
}
.hall-moss.left { left: -6vw; transform: rotate(4deg); }
.hall-moss.right { right: -6vw; transform: rotate(-5deg); }

.hall-title {
  position: absolute; top: 11vh; left: 0; right: 0; z-index: 5;
  text-align: center;
}
.hall-title h2 {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(1.6rem, 3vw, 2.6rem); letter-spacing: 0.3em; color: #fff;
}
.hall-title p {
  margin-top: 10px; font-size: 0.72rem; letter-spacing: 0.3em;
  color: var(--text-dim); text-transform: uppercase;
}

/* central screen */
.hall-screen-frame {
  position: absolute; z-index: 4;
  left: 50%; top: 50%;
  width: min(58vw, 96vh * 1.7777);
  aspect-ratio: 16 / 9;
  transform: translate(-50%, -47%);
  border-radius: 6px; overflow: hidden;
  border: 1px solid rgba(143, 220, 236, 0.22);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.6),
    0 30px 90px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(76, 195, 221, 0.12);
  background: #02070a;
}
.hall-screen-frame video {
  width: 100%; height: 100%;
  object-fit: contain;
  background: #02070a;
}
.hall-screen-glow {
  position: absolute; inset: -40%; z-index: -1; pointer-events: none;
  background: radial-gradient(50% 50% at 50% 50%, rgba(76, 195, 221, 0.35), transparent 70%);
  opacity: 0.25;
}
.hall-screen-reflection {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, rgba(255, 255, 255, 0.07), transparent 30%);
}
.hall-play {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 84px; height: 84px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(5, 18, 26, 0.45);
  backdrop-filter: blur(6px);
  color: #fff; font-size: 1.1rem; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.35s;
}
.hall-play span { margin-left: 4px; }
.hall-play:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 40px rgba(143, 220, 236, 0.35);
  transform: translate(-50%, -50%) scale(1.06);
}
.hall-play.hidden { opacity: 0; pointer-events: none; }

/* echo text clusters (noth.in-style) */
.hall-echo {
  position: absolute; z-index: 5; pointer-events: none;
  display: flex; flex-direction: column; gap: 4px;
  font-size: 0.86rem; letter-spacing: 0.14em;
  color: rgba(220, 238, 244, 0.8);
  text-shadow: 0 0 14px rgba(143, 220, 236, 0.35);
}
.hall-echo .scatter-letter { will-change: transform, opacity; }
/* эхо-строки затухают, как на референсе; держатся на стенах, НЕ на экране */
.hall-echo span:nth-child(2) { opacity: 0.55; }
.hall-echo span:nth-child(3) { opacity: 0.28; }
.hall-echo.echo-1 { left: 5vw; top: 24vh; }
.hall-echo.echo-2 { left: 5vw; bottom: 12vh; }
.hall-echo.echo-3 { right: 5vw; top: 24vh; text-align: right; }
.hall-typer {
  position: absolute; z-index: 5; pointer-events: none;
  right: 5vw; bottom: 12vh; max-width: 220px; text-align: right;
  font-size: 0.92rem; line-height: 1.65; font-weight: 300;
  color: rgba(232, 242, 245, 0.9);
}

/* plaques */
.hall-plaque {
  position: absolute; top: 58%; z-index: 5;
  font-size: 0.62rem; letter-spacing: 0.26em; color: var(--text-dim);
  display: flex; flex-direction: column; gap: 10px;
}
.plaque-line { width: 34px; height: 1px; background: var(--cyan-dim); }
.hall-plaque.left-plaque { left: 8vw; }
.hall-plaque.right-plaque { right: 8vw; text-align: right; align-items: flex-end; }

/* floor reflection + mist */
.hall-floor-reflection {
  position: absolute; left: 0; right: 0; bottom: 0; height: 26vh; z-index: 3;
  background:
    radial-gradient(50% 90% at 50% 0%, rgba(76, 195, 221, 0.14), transparent 65%),
    linear-gradient(180deg, rgba(10, 30, 40, 0.35), #02080c);
  filter: blur(1px);
}
.hall-mist-overlay {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  opacity: 0.15;
  background:
    radial-gradient(70% 30% at 30% 92%, rgba(160, 200, 210, 0.16), transparent 70%),
    radial-gradient(60% 26% at 75% 96%, rgba(160, 200, 210, 0.13), transparent 70%);
}
.hall-caption {
  position: absolute; bottom: 6vh; left: 0; right: 0; z-index: 7;
  text-align: center;
  font-size: 0.66rem; letter-spacing: 0.34em; color: var(--text-dim);
}

/* ===== Product ===== */
.product {
  position: relative; padding: 16vh 7vw 12vh;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 50% 60%, rgba(18, 52, 66, 0.35), transparent 65%),
    var(--ink);
  text-align: center;
}
.product-inner {
  display: grid; grid-template-columns: 1fr auto 1fr;
  align-items: center; gap: 4vw; max-width: 1200px; margin: 0 auto;
}
.product-bottle { position: relative; width: min(300px, 26vw); margin: 0 auto; }
.product-bottle img { position: relative; z-index: 2; filter: drop-shadow(0 30px 50px rgba(0,0,0,0.6)); }

/* орбитальная галерея объёмов */
.bottle-orbit { height: min(560px, 60vh); cursor: pointer; }
.orbit-item {
  position: absolute; inset: 0;
  display: flex; align-items: flex-end; justify-content: center;
  will-change: transform, opacity, filter;
}
.orbit-item img { max-height: 100%; width: auto; }
.orbit-item:not(.active) { z-index: 1; }
.orbit-item.active { z-index: 3; }
.orbit-item[data-volume="1,5 л"] img { transform: scale(1.06); transform-origin: bottom center; }
.orbit-dots { display: flex; gap: 10px; justify-content: center; margin-top: 26px; }
.orbit-dot {
  width: 9px; height: 9px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--cyan-dim); background: transparent;
  padding: 0; transition: all 0.3s;
}
.orbit-dot.active { background: var(--cyan); box-shadow: 0 0 10px rgba(143, 220, 236, 0.6); }
.bottle-glow {
  position: absolute; inset: -30% -60%; z-index: 1;
  background: radial-gradient(45% 45% at 50% 55%, rgba(76, 195, 221, 0.3), transparent 70%);
}
.bottle-floor {
  position: absolute; left: 8%; right: 8%; bottom: -26px; height: 40px; z-index: 0;
  background: radial-gradient(50% 100% at 50% 0%, rgba(143, 220, 236, 0.4), transparent 70%);
  filter: blur(6px);
}
.product-fact { font-family: var(--serif); }
.fact-value { font-size: clamp(1.5rem, 2.6vw, 2.3rem); letter-spacing: 0.14em; color: #f2f8fa; }
.fact-value.small { font-size: clamp(1.2rem, 2vw, 1.7rem); }
.fact-divider { width: 44px; height: 1px; background: var(--cyan-dim); margin: 22px auto; }
.fact-label { font-family: var(--sans); font-size: 0.66rem; letter-spacing: 0.3em; color: var(--text-dim); text-transform: uppercase; margin-top: 10px; }
.product-tags {
  list-style: none; display: flex; justify-content: center; flex-wrap: wrap;
  gap: 18px 54px; margin-top: 14vh;
}
.daily-water {
  margin: 7vh auto 0;
  max-width: 620px;
  text-align: center;
}
.daily-water h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(1.35rem, 2.2vw, 1.9rem);
  letter-spacing: 0.16em;
  color: #fff;
  text-transform: uppercase;
}
.daily-water p {
  margin-top: 18px;
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1.45vw, 1.28rem);
  line-height: 1.55;
  color: rgba(232, 242, 245, 0.72);
}
.product-tags li {
  font-family: var(--serif); font-size: clamp(0.95rem, 1.5vw, 1.25rem);
  letter-spacing: 0.22em; color: var(--text-dim);
}

/* ===== Final ===== */
.final {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: flex-start;
  overflow: hidden; text-align: left;
}
@media (max-width: 900px) {
  .final { justify-content: center; text-align: center; }
}
.final-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(to bottom, var(--ink) 0%, transparent 30%, rgba(3, 10, 14, 0.72) 100%),
    url('../assets/final-bg.jpg') 82% center / cover no-repeat;
  filter: saturate(0.85) brightness(0.6);
}
.final-content { position: relative; z-index: 2; padding: 10vh 7vw; }
.final-title {
  font-family: var(--serif); font-weight: 500; color: #fff;
  font-size: clamp(2.4rem, 5.5vw, 4.6rem); line-height: 1.1; letter-spacing: 0.08em;
  text-shadow: 0 6px 40px rgba(0, 0, 0, 0.6);
}
.final-title .line { display: block; }
.final-title .line-2 { font-size: 0.82em; font-weight: 400; }
.final-sub {
  margin: 30px 0 44px; font-size: 0.78rem; letter-spacing: 0.28em;
  line-height: 2; color: var(--text-dim);
}
.final-actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.footer {
  padding: 34px; text-align: center; background: #02080c;
  font-size: 0.62rem; letter-spacing: 0.3em; color: rgba(232, 242, 245, 0.35);
}

/* reveal helper */
.reveal { opacity: 0; transform: translateY(46px); }

/* scatter letters (noth.in-style) */
.scatter-letter { display: inline-block; will-change: transform, opacity; }

/* ===== Mobile ===== */
@media (max-width: 900px) {
  .nav { padding: 20px 22px; }
  .nav-links { display: none; }
  .hero-content { left: 6vw; right: 6vw; }
  .hero-title { letter-spacing: 0.03em; }
  .hero-sub { letter-spacing: 0.22em; line-height: 1.8; }
  .hero-actions { flex-direction: column; align-items: flex-start; gap: 20px; }
  .depth-inner { grid-template-columns: 1fr; gap: 60px; }
  .depth-scale { height: 46vh; }

  /* simplified hall: no perspective walls / pin */
  .hall-pin { height: auto; padding: 14vh 6vw; overflow: visible; }
  .hall-scene { perspective: none; background: #030c12; }
  .hall-side-wall, .hall-ceiling-lights, .hall-moss,
  .hall-plaque, .hall-depth-layer, .hall-floor-reflection,
  .hall-echo, .hall-typer { display: none; }
  .hall-title { position: static; margin-bottom: 40px; }
  .hall-screen-frame {
    position: relative; left: auto; top: auto; transform: none !important;
    width: 100%; margin: 0 auto;
  }
  .hall-caption { position: static; margin-top: 36px; }
  .hall-mist-overlay { opacity: 0.25 !important; }

  .product-inner { grid-template-columns: 1fr; gap: 60px; }
  .product-bottle { width: min(240px, 60vw); }
  .bottle-orbit { overflow: hidden; }
  .daily-water { margin-top: 4vh; }
  .product-tags { gap: 14px 30px; margin-top: 8vh; }
  .final-actions { justify-content: center; }
}
