:root {
  --bg-0: #050509;
  --bg-1: #07070d;
  --ink: rgba(242, 242, 246, 0.92);
  --ink-dim: rgba(242, 242, 246, 0.72);
  --blood: rgba(170, 26, 26, 0.28);
  --ash: rgba(200, 200, 210, 0.08);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  background: radial-gradient(1200px 800px at 50% 45%, var(--bg-1), var(--bg-0));
  color: var(--ink);
  font-family:
    "Cinzel",
    ui-serif,
    "Iowan Old Style",
    "Palatino Linotype",
    Palatino,
    serif;
  text-rendering: geometricPrecision;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-user-select: none;
  user-select: none;
}

#bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: url("./SK.jpg");
  background-size: cover;
  background-position: 50% 42%;
  background-repeat: no-repeat;
}

#bg::before,
#bg::after {
  content: none;
}

#fog {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
  --fog-x1: 0px;
  --fog-y1: 0px;
  --fog-x2: 0px;
  --fog-y2: 0px;
}

#fog::before,
#fog::after {
  content: "";
  position: absolute;
  inset: -28%;
  background:
    radial-gradient(720px 520px at 28% 40%, rgba(230, 230, 240, 0.235), transparent 56%),
    radial-gradient(820px 560px at 68% 42%, rgba(230, 230, 240, 0.198), transparent 58%),
    radial-gradient(920px 660px at 52% 72%, rgba(230, 230, 240, 0.162), transparent 60%),
    radial-gradient(620px 420px at 58% 28%, rgba(230, 230, 240, 0.144), transparent 54%);
  filter: blur(14px) contrast(1.24);
  opacity: 0.52;
  mix-blend-mode: screen;
  transform: translate3d(var(--fog-x1), var(--fog-y1), 0) scale(1.10);
  will-change: transform, opacity;
}

#fog::before {
  opacity: 0.56;
}

#fog::after {
  inset: -32%;
  opacity: 0.41;
  filter: blur(18px) contrast(1.18);
  background:
    radial-gradient(980px 640px at 40% 46%, rgba(230, 230, 240, 0.18), transparent 62%),
    radial-gradient(760px 560px at 78% 62%, rgba(230, 230, 240, 0.153), transparent 64%),
    radial-gradient(1200px 780px at 55% 34%, rgba(230, 230, 240, 0.126), transparent 66%),
    radial-gradient(640px 520px at 18% 62%, rgba(230, 230, 240, 0.108), transparent 60%);
  transform: translate3d(var(--fog-x2), var(--fog-y2), 0) scale(1.16);
}

.hero {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: grid;
  place-items: center;
  padding: 22px;
  transform: translateY(0.5vh);
}

.hero__frame {
  position: relative;
  padding: 46px 54px;
  text-align: center;
  border: none;
  border-radius: 18px;
  background: transparent;
  box-shadow: none;
}

.hero__glow {
  position: absolute;
  inset: -2px;
  border-radius: 18px;
  background:
    radial-gradient(700px 240px at 50% 0%, rgba(170, 26, 26, 0.20), transparent 70%),
    radial-gradient(700px 260px at 50% 120%, rgba(255, 255, 255, 0.05), transparent 70%);
  filter: blur(14px);
  opacity: 0.75;
  z-index: -1;
  display: none;
}

.hero__title {
  margin: 0;
  font-size: clamp(34px, 4.4vw, 64px);
  line-height: 1.05;
  letter-spacing: 0.08em;
  font-weight: 600;
  color: rgba(232, 232, 238, 0.78);
  text-shadow:
    0 0 6px rgba(255, 255, 255, 0.10),
    0 0 10px rgba(170, 26, 26, 0.12);
}

.hero__divider {
  height: 1px;
  width: min(520px, 74vw);
  margin: 18px auto 16px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  opacity: 0.75;
}

.hero__subtitle {
  margin: 0;
  font-size: clamp(12px, 1.5vw, 16px);
  letter-spacing: 0.42em;
  padding-left: 0.42em;
  color: rgba(232, 232, 238, 0.58);
  text-shadow: 0 0 5px rgba(255, 255, 255, 0.08);
  text-transform: uppercase;
}

/* фон без эффектов: без анимаций/оверлеев/фильтров */

/* туман двигается только параллаксом (JS) */

@media (max-width: 520px) {
  .hero__frame {
    padding: 34px 28px;
    border-radius: 16px;
  }

  .hero__glow {
    border-radius: 16px;
  }

  .hero__divider {
    margin: 16px auto 14px;
  }
}

