:root {
  --vph-bg: #10110f;
  --vph-bg-2: #171815;
  --vph-text: #f7f3ea;
  --vph-muted: #c8c1b4;
  --vph-subtle: #9b9489;
  --vph-line: rgba(255, 255, 255, 0.14);
  --vph-line-strong: rgba(255, 255, 255, 0.26);
  --vph-panel: rgba(255, 255, 255, 0.08);
  --vph-cyan: #69d7cf;
  --vph-green: #9fdc7b;
  --vph-gold: #ffd36e;
  --vph-coral: #ff8a75;
  --vph-shadow: 0 26px 70px rgba(0, 0, 0, 0.4);
  --vph-radius: 18px;
  --vph-cube-size: clamp(210px, 54vw, 360px);
}

html {
  overflow-x: hidden;
}

body:has(.vph) {
  margin: 0;
  background: var(--vph-bg);
}

body:has(.vph) .wp-site-blocks {
  padding-block: 0;
}

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

.vph {
  min-height: 100vh;
  min-height: 100svh;
  overflow-x: hidden;
  color: var(--vph-text);
  font-family: Ubuntu, Inter, "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background:
    radial-gradient(circle at 18% 16%, rgba(105, 215, 207, 0.14), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(255, 211, 110, 0.11), transparent 26%),
    radial-gradient(circle at 50% 88%, rgba(255, 138, 117, 0.1), transparent 32%),
    linear-gradient(180deg, #111210 0%, #171815 56%, #0f100e 100%);
}

.vph a {
  color: inherit;
  text-decoration: none;
}

.vph-skip {
  position: fixed;
  left: 14px;
  top: 14px;
  z-index: 100;
  transform: translateY(-150%);
  padding: 10px 12px;
  border-radius: 12px;
  background: #ffffff;
  color: #10110f;
  font-weight: 900;
}

.vph-skip:focus {
  transform: translateY(0);
}

.vph-shell {
  width: min(1120px, 100%);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  align-content: start;
  gap: clamp(18px, 4vw, 34px);
  margin: 0 auto;
  padding: clamp(14px, 4vw, 30px) clamp(14px, 4vw, 28px) 28px;
}

.vph-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.vph-brand {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 11px;
}

.vph-logo {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(105, 215, 207, 0.25), rgba(255, 211, 110, 0.15));
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

.vph-logo img {
  width: 72%;
  height: 72%;
  object-fit: contain;
}

.vph-brand-copy {
  min-width: 0;
}

.vph-brand-name,
.vph-brand-sub {
  display: block;
  line-height: 1.08;
}

.vph-brand-name {
  font-size: 17px;
  font-weight: 950;
}

.vph-brand-sub {
  margin-top: 4px;
  color: var(--vph-muted);
  font-size: 12px;
  font-weight: 800;
}

.vph-badge {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(255, 211, 110, 0.32);
  border-radius: 999px;
  padding: 7px 11px;
  color: var(--vph-gold);
  background: rgba(255, 211, 110, 0.08);
  font-size: 12px;
  font-weight: 950;
}

.vph-intro {
  max-width: 740px;
  margin-inline: auto;
  text-align: center;
}

.vph-kicker {
  margin: 0 0 10px;
  color: var(--vph-cyan);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.vph h1 {
  margin: 0;
  color: var(--vph-text);
  font-size: clamp(42px, 10vw, 92px);
  line-height: 0.95;
  font-weight: 950;
  letter-spacing: 0;
}

.vph-lead {
  max-width: 650px;
  margin: 16px auto 0;
  color: rgba(247, 243, 234, 0.78);
  font-size: clamp(15px, 2.5vw, 19px);
  line-height: 1.55;
}

.vph-cube-section {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.vph-cube-wrap {
  display: none;
  width: min(100%, calc(var(--vph-cube-size) + 84px));
  min-height: calc(var(--vph-cube-size) + 84px);
  place-items: center;
  perspective: 980px;
  touch-action: none;
}

.vph-cube-ready .vph-cube-wrap {
  display: grid;
}

.vph-cube {
  --vph-rotate-x: -18deg;
  --vph-rotate-y: 28deg;
  position: relative;
  width: var(--vph-cube-size);
  height: var(--vph-cube-size);
  outline: none;
  transform-style: preserve-3d;
  transform: rotateX(var(--vph-rotate-x)) rotateY(var(--vph-rotate-y));
  transition: transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.vph-cube:focus-visible {
  outline: 3px solid rgba(255, 211, 110, 0.58);
  outline-offset: 20px;
}

.vph-face {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.055)),
    rgba(18, 20, 18, 0.88);
  box-shadow: inset 0 0 44px rgba(255, 255, 255, 0.04), var(--vph-shadow);
  color: var(--vph-text);
  text-align: center;
  backface-visibility: hidden;
  user-select: none;
  -webkit-user-select: none;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.vph-face:hover,
.vph-face:focus-visible,
.vph-face.is-active {
  border-color: rgba(105, 215, 207, 0.54);
  background:
    linear-gradient(145deg, rgba(105, 215, 207, 0.2), rgba(255, 211, 110, 0.08)),
    rgba(19, 21, 19, 0.94);
  box-shadow: inset 0 0 54px rgba(105, 215, 207, 0.08), 0 28px 80px rgba(0, 0, 0, 0.44);
}

.vph-face-marker {
  min-width: 48px;
  min-height: 40px;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 12px;
  color: var(--vph-gold);
  background: rgba(0, 0, 0, 0.18);
  font-size: 13px;
  font-weight: 950;
}

.vph-face strong {
  max-width: 100%;
  color: var(--vph-text);
  font-size: clamp(22px, 4vw, 34px);
  line-height: 1.04;
  font-weight: 950;
}

.vph-face small {
  max-width: 18ch;
  color: rgba(247, 243, 234, 0.76);
  font-size: 14px;
  line-height: 1.28;
  font-weight: 800;
}

.vph-face-front {
  transform: translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-face-back {
  transform: rotateY(180deg) translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-face-right {
  transform: rotateY(90deg) translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-face-left {
  transform: rotateY(-90deg) translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-face-top {
  transform: rotateX(90deg) translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-face-bottom {
  transform: rotateX(-90deg) translateZ(calc(var(--vph-cube-size) / 2));
}

.vph-cube-meta {
  width: min(100%, 620px);
  display: grid;
  gap: 10px;
  text-align: center;
}

.vph-active-caption {
  min-height: 82px;
  padding: 14px;
  border: 1px solid var(--vph-line);
  border-radius: var(--vph-radius);
  background: rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(16px);
}

.vph-active-caption span {
  display: block;
  color: var(--vph-text);
  font-size: 18px;
  font-weight: 950;
}

.vph-active-caption p,
.vph-help,
.vph-note {
  margin: 6px 0 0;
  color: var(--vph-muted);
  font-size: 13px;
  line-height: 1.42;
}

.vph-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 760px);
  margin: 0 auto;
}

.vph-action-card {
  min-height: 82px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--vph-line);
  border-radius: var(--vph-radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.04)),
    rgba(19, 20, 18, 0.76);
  color: var(--vph-text);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
  transition: transform 170ms ease, border-color 170ms ease, background 170ms ease;
}

.vph-action-card:hover,
.vph-action-card:focus-visible {
  border-color: rgba(105, 215, 207, 0.42);
  background: rgba(105, 215, 207, 0.1);
  transform: translateY(-2px);
}

.vph-action-marker {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border: 1px solid var(--vph-line);
  border-radius: 12px;
  color: var(--vph-gold);
  background: rgba(0, 0, 0, 0.18);
  font-size: 12px;
  font-weight: 950;
}

.vph-action-card strong,
.vph-action-card small {
  display: block;
}

.vph-action-card strong {
  color: var(--vph-text);
  font-size: 15px;
  font-weight: 950;
}

.vph-action-card small {
  margin-top: 3px;
  color: var(--vph-muted);
  font-size: 12px;
  line-height: 1.28;
}

.vph-note {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 12px 14px;
  border: 1px solid var(--vph-line);
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.16);
  text-align: center;
}

.vph a:focus-visible,
.vph button:focus-visible {
  outline: 3px solid rgba(255, 211, 110, 0.58);
  outline-offset: 3px;
}

@media (min-width: 760px) {
  .vph-shell {
    align-content: center;
  }

  .vph-action-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  :root {
    --vph-cube-size: min(74vw, 280px);
  }

  .vph-brand-sub {
    display: none;
  }

  .vph-cube-wrap {
    min-height: calc(var(--vph-cube-size) + 54px);
  }

  .vph-action-grid {
    grid-template-columns: 1fr;
  }

  .vph-face {
    padding: 18px;
  }
}

@supports not (transform-style: preserve-3d) {
  .vph-cube-wrap {
    display: none !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .vph *,
  .vph *::before,
  .vph *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .vph-cube-wrap {
    display: none !important;
  }

  .vph-help::after {
    content: " Доступна сетка сценариев ниже.";
  }
}
