/* Faces2Faces «Скоро запуск»: первый экран основного сайта (стена, коллажи на магнитах) */
:root {
  --ink: #171513;
  --text: #f6f3ef;
  --muted: rgba(246, 243, 239, 0.78);
  --line: rgba(255, 255, 255, 0.42);
  --violet: #8a3cf5;
  --magenta: #f033b5;
  --orange: #f57200;
  --grad: linear-gradient(100deg, var(--violet), var(--magenta) 52%, var(--orange));
  --f-display: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  --f-body: Manrope, -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --gutter-l: max(16px, env(safe-area-inset-left, 0px));
  --gutter-r: max(16px, env(safe-area-inset-right, 0px));
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  background: var(--ink);
  color: var(--text);
  font: 16px/1.6 var(--f-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; -webkit-user-drag: none; }
a { color: inherit; }
h1, p { margin: 0; }
:focus-visible { outline: 2px solid #fff; outline-offset: 3px; border-radius: 6px; }
.wrap {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding-left: var(--gutter-l);
  padding-right: var(--gutter-r);
}
.spacer { flex: 1; }

/* шапка */
.top { position: absolute; inset: 0 0 auto; z-index: 20; }
.top .wrap { display: flex; align-items: center; gap: 16px; padding-block: 18px; }
.logo { height: 30px; width: auto; display: block; }

/* первый экран на стене */
.hero {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  background: #6f6863 url(img/wall.jpg) center 38% / cover no-repeat;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(18, 16, 14, 0.38), rgba(18, 16, 14, 0.08) 35%, rgba(18, 16, 14, 0.2) 70%, var(--ink));
  pointer-events: none;
}
.hero-in {
  position: relative;
  z-index: 2;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 96px;
  padding-bottom: 48px;
  text-align: center;
}
.col { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.soon {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 36px;
  padding: 0 18px;
  border-radius: 999px;
  background: rgba(22, 20, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  font: 700 13px/1 var(--f-body);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.soon i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 0 rgba(240, 51, 181, 0.6);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  70% { box-shadow: 0 0 0 9px rgba(240, 51, 181, 0); }
  100% { box-shadow: 0 0 0 0 rgba(240, 51, 181, 0); }
}
.eyebrow {
  font: 600 12px/1.3 var(--f-body);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font: 500 clamp(40px, 6.4vw, 84px) / 1.04 var(--f-display);
  letter-spacing: -0.01em;
  text-wrap: balance;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.25);
}
.hero h1 em {
  font-style: italic;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding: 0 0.06em 0 0.02em;
  text-shadow: none;
}
.hero h1 .hl {
  display: inline-block;
  padding: 0.02em 0.2em 0.1em;
  margin: 0 0.04em;
  border-radius: 0.22em;
  background: rgba(22, 20, 18, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.lead {
  max-width: 680px;
  font-size: clamp(16px, 1.5vw, 19px);
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.35);
}
.note { font: 500 italic clamp(22px, 2.4vw, 30px) / 1.2 var(--f-display); }
.contact { font-size: 15px; color: var(--muted); }
.contact a { color: #fff; font-weight: 600; text-underline-offset: 3px; }

/* коллажи (те же шаблоны в мм, что в конструкторе) */
.track { position: relative; width: 100%; height: var(--th, 420px); }
.track .collage { position: absolute; top: 0; }
.collage {
  --mm: 1px;
  position: relative;
  width: calc(var(--w) * var(--mm));
  height: calc(var(--h) * var(--mm));
  border-radius: calc(8 * var(--mm));
  background: rgba(150, 142, 136, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: 0 calc(3 * var(--mm)) calc(14 * var(--mm)) rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35);
  backdrop-filter: blur(10px) saturate(0.9);
  -webkit-backdrop-filter: blur(10px) saturate(0.9);
}
.cell {
  position: absolute;
  left: calc(var(--x) * var(--mm));
  top: calc(var(--y) * var(--mm));
  width: calc(var(--cw) * var(--mm));
  height: calc(var(--ch) * var(--mm));
  overflow: hidden;
  border-radius: calc(3 * var(--mm));
  cursor: pointer;
}
.tile {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  overflow: hidden;
  background: #2a2725;
}
.tile img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.tile::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 max(1px, calc(1.6 * var(--mm))) rgba(255, 255, 255, 0.85);
  pointer-events: none;
}
.tile.out { animation: out 0.55s cubic-bezier(0.5, 0, 0.9, 0.5) forwards; }
.tile.in { animation: in 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes out { to { transform: translateY(105%); opacity: 0.6; } }
@keyframes in { from { transform: translateY(-105%); } to { transform: none; } }
.collage.boot .tile { animation: drop 0.8s cubic-bezier(0.2, 1.25, 0.4, 1) both; animation-delay: var(--d, 0s); }
@keyframes drop { from { transform: translateY(-30%) scale(0.94); opacity: 0; } to { transform: none; opacity: 1; } }
.cell:hover .tile { filter: brightness(1.06); }

/* подвал */
footer { background: #100e0d; font-size: 13px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; padding-block: 22px; }
footer .logo { height: 22px; }

@media (max-width: 700px) {
  .top .wrap { gap: 10px; }
  .logo { height: 24px; }
  .hero-in { padding-top: 88px; gap: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
