/* Архитектура Порядка 2.0 — превью: структура как kimi, палитра ближе к фирменному тёмному стилю */
:root {
  --bg-deep: #0a0e14;
  --bg-mid: #0f1419;
  --card: #151d28;
  --card-border: rgba(212, 175, 116, 0.12);
  --text: #f4f1eb;
  --muted: #b6c2d4;
  --accent: #d4af6a;
  --accent-strong: #e8c97c;
  --accent-2: #c45c5c;
  --green: #34d399;
  --blue-glow: rgba(56, 101, 168, 0.15);
  --radius: 14px;
  --font: "Inter", system-ui, sans-serif;
  --perspective: 1100px;
  --tilt: 6deg;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: #030208;
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  perspective: var(--perspective);
  perspective-origin: 50% 0%;
}

/* —— Космический 3D фон —— */
.cosmos-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  background: #030208;
}

.cosmos-bg__stage {
  position: absolute;
  left: -12%;
  top: -12%;
  width: 124%;
  height: 124%;
  transform-style: preserve-3d;
  transform-origin: 50% 45%;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

.cosmos-bg__void {
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 100% 80% at 50% -15%, #1e3a5f 0%, #0d1525 28%, #060814 55%, #030208 100%);
  transform: translateZ(-600px) scale(1.5);
}

.cosmos-bg__grid {
  position: absolute;
  inset: -5%;
  background-image: linear-gradient(rgba(212, 175, 116, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 116, 0.04) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: rotateX(72deg) translateZ(-180px) scale(2.2);
  transform-origin: 50% 70%;
  mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 55% at 50% 45%, black 0%, transparent 72%);
  opacity: 0.45;
  animation: cosmos-grid-drift 80s linear infinite;
}

@keyframes cosmos-grid-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 0 400px, 400px 0;
  }
}

.cosmos-bg__aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.cosmos-bg__aurora--a {
  width: 55vw;
  height: 55vw;
  max-width: 720px;
  max-height: 720px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45) 0%, rgba(30, 58, 95, 0.2) 50%, transparent 70%);
  top: -8%;
  right: -5%;
  transform: translateZ(-120px) rotate(12deg);
  animation: cosmos-aurora-a 28s ease-in-out infinite;
}
.cosmos-bg__aurora--b {
  width: 50vw;
  height: 50vw;
  max-width: 640px;
  max-height: 640px;
  background: radial-gradient(circle, rgba(212, 175, 116, 0.28) 0%, rgba(139, 92, 246, 0.12) 45%, transparent 65%);
  bottom: -12%;
  left: -8%;
  transform: translateZ(-200px);
  animation: cosmos-aurora-b 34s ease-in-out infinite;
  animation-delay: -6s;
}

@keyframes cosmos-aurora-a {
  0%,
  100% {
    transform: translateZ(-120px) rotate(12deg) translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translateZ(-95px) rotate(12deg) translate3d(20px, -24px, 35px) scale(1.05);
  }
}

@keyframes cosmos-aurora-b {
  0%,
  100% {
    transform: translateZ(-200px) translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translateZ(-170px) translate3d(-18px, 16px, 28px) scale(1.06);
  }
}

.cosmos-bg__stars {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
  background-repeat: repeat;
  opacity: 0.85;
}

.cosmos-bg__stars--far {
  transform: translateZ(-420px) scale(1.35);
  background-image: radial-gradient(1px 1px at 8% 12%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 32% 78%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 67% 23%, rgba(232, 201, 124, 0.4), transparent),
    radial-gradient(1px 1px at 91% 56%, rgba(255, 255, 255, 0.3), transparent),
    radial-gradient(1.2px 1.2px at 45% 41%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 15% 88%, rgba(255, 255, 255, 0.25), transparent),
    radial-gradient(1px 1px at 78% 91%, rgba(200, 220, 255, 0.35), transparent),
    radial-gradient(1px 1px at 52% 8%, rgba(255, 255, 255, 0.4), transparent);
  background-size: 380px 380px;
  animation: cosmos-star-drift 220s linear infinite, cosmos-twinkle-slow 6s ease-in-out infinite;
}

.cosmos-bg__stars--mid {
  transform: translateZ(-220px) scale(1.15);
  background-image: radial-gradient(1.2px 1.2px at 18% 28%, rgba(255, 255, 255, 0.75), transparent),
    radial-gradient(1px 1px at 55% 62%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1.5px 1.5px at 72% 18%, rgba(232, 201, 124, 0.6), transparent),
    radial-gradient(1px 1px at 38% 85%, rgba(255, 255, 255, 0.45), transparent),
    radial-gradient(1px 1px at 88% 38%, rgba(180, 200, 255, 0.5), transparent),
    radial-gradient(1.2px 1.2px at 6% 48%, rgba(255, 255, 255, 0.55), transparent),
    radial-gradient(1px 1px at 94% 72%, rgba(255, 255, 255, 0.35), transparent),
    radial-gradient(1px 1px at 42% 12%, rgba(255, 255, 255, 0.4), transparent),
    radial-gradient(1.3px 1.3px at 63% 94%, rgba(232, 201, 124, 0.45), transparent);
  background-size: 260px 260px;
  background-position: 30px 50px;
  animation: cosmos-star-drift-rev 160s linear infinite, cosmos-twinkle 4s ease-in-out infinite;
  animation-delay: 0s, -1.5s;
}

.cosmos-bg__stars--near {
  transform: translateZ(-80px);
  background-image: radial-gradient(1.5px 1.5px at 22% 35%, rgba(255, 255, 255, 0.95), transparent),
    radial-gradient(1.2px 1.2px at 76% 22%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(2px 2px at 48% 58%, rgba(232, 201, 124, 0.85), transparent),
    radial-gradient(1px 1px at 12% 68%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.4px 1.4px at 85% 78%, rgba(200, 220, 255, 0.75), transparent),
    radial-gradient(1.2px 1.2px at 58% 14%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1.6px 1.6px at 33% 91%, rgba(255, 255, 255, 0.65), transparent);
  background-size: 200px 200px;
  background-position: 17px 23px;
  animation: cosmos-star-drift 100s linear infinite;
  opacity: 0.65;
}

.cosmos-bg__dust {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(ellipse 80% 50% at 50% 50%, transparent 0%, rgba(3, 2, 8, 0.4) 100%);
  transform: translateZ(20px);
  pointer-events: none;
}

/* Метеориты */
.cosmos-bg__meteors {
  position: absolute;
  inset: 0;
  transform: translateZ(-50px);
  pointer-events: none;
  overflow: hidden;
}

.meteor {
  position: absolute;
  width: 2px;
  height: 2px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 
    0 0 4px 1px rgba(255, 255, 255, 0.9),
    0 0 8px 2px rgba(232, 201, 124, 0.6),
    0 0 12px 3px rgba(212, 175, 116, 0.4);
  opacity: 0;
  animation: meteor-fall linear forwards;
}

.meteor::before {
  content: '';
  position: absolute;
  top: 50%;
  right: 2px;
  width: 0;
  height: 1px;
  background: linear-gradient(90deg, 
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.8) 20%,
    rgba(232, 201, 124, 0.6) 40%,
    rgba(212, 175, 116, 0.3) 70%,
    transparent 100%);
  transform: translateY(-50%);
  animation: meteor-tail linear forwards;
}

@keyframes meteor-fall {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(-45deg);
  }
  5% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--meteor-x), var(--meteor-y)) rotate(-45deg);
  }
}

@keyframes meteor-tail {
  0% {
    width: 0;
  }
  10% {
    width: 40px;
  }
  90% {
    width: 60px;
  }
  100% {
    width: 0;
  }
}

/* Вариации метеоритов */
.meteor--small {
  width: 1.5px;
  height: 1.5px;
}

.meteor--small::before {
  animation-duration: inherit;
}

.meteor--large {
  width: 3px;
  height: 3px;
  box-shadow: 
    0 0 6px 2px rgba(255, 255, 255, 1),
    0 0 12px 3px rgba(232, 201, 124, 0.8),
    0 0 18px 4px rgba(212, 175, 116, 0.6);
}

.meteor--large::before {
  animation-duration: inherit;
}

.meteor--golden::before {
  background: linear-gradient(90deg, 
    rgba(232, 201, 124, 0) 0%,
    rgba(232, 201, 124, 0.9) 20%,
    rgba(212, 175, 116, 0.7) 40%,
    rgba(184, 146, 74, 0.4) 70%,
    transparent 100%);
}

.meteor--blue::before {
  background: linear-gradient(90deg, 
    rgba(99, 102, 241, 0) 0%,
    rgba(99, 102, 241, 0.8) 20%,
    rgba(56, 101, 168, 0.6) 40%,
    rgba(30, 58, 95, 0.3) 70%,
    transparent 100%);
}

.cosmos-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.32;
  mix-blend-mode: screen;
}
.cosmos-bg__orb--g1 {
  --orb-z: -40px;
  width: 480px;
  height: 480px;
  background: rgba(212, 175, 116, 0.35);
  top: -100px;
  right: -60px;
  animation: cosmos-orb-drift 24s ease-in-out infinite;
}
.cosmos-bg__orb--g2 {
  --orb-z: -60px;
  width: 360px;
  height: 360px;
  background: rgba(56, 101, 168, 0.35);
  bottom: 5%;
  left: -80px;
  animation: cosmos-orb-drift 20s ease-in-out infinite reverse;
  animation-delay: -3s;
}
.cosmos-bg__orb--g3 {
  --orb-z: -100px;
  width: 280px;
  height: 280px;
  background: rgba(196, 92, 92, 0.22);
  bottom: -60px;
  right: 18%;
  animation: cosmos-orb-drift 30s ease-in-out infinite;
  animation-delay: -9s;
}

@keyframes cosmos-orb-drift {
  0%,
  100% {
    transform: translate3d(0, 0, var(--orb-z)) scale(1);
  }
  33% {
    transform: translate3d(22px, -16px, calc(var(--orb-z) + 30px)) scale(1.06);
  }
  66% {
    transform: translate3d(-14px, 14px, calc(var(--orb-z) - 18px)) scale(0.97);
  }
}

@keyframes cosmos-star-drift {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 800px 400px;
  }
}

@keyframes cosmos-star-drift-rev {
  from {
    background-position: 30px 50px;
  }
  to {
    background-position: -570px -250px;
  }
}

@keyframes cosmos-twinkle {
  0%,
  100% {
    opacity: 0.72;
  }
  50% {
    opacity: 0.95;
  }
}

@keyframes cosmos-twinkle-slow {
  0%,
  100% {
    opacity: 0.55;
  }
  50% {
    opacity: 0.82;
  }
}

/* Облегчённый фон на экранах 2K+ (≥2560px): без blur, 3D-parallax и метеоров */
@media (min-width: 2560px) {
  html,
  body {
    perspective: none !important;
  }

  .cosmos-bg__stage {
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    transform: none !important;
    transform-style: flat;
    will-change: auto;
    transition: none;
  }

  .cosmos-bg__void {
    transform: none;
    background: radial-gradient(
      ellipse 120% 85% at 50% -8%,
      #1e3a5f 0%,
      #0d1525 32%,
      #060814 58%,
      #030208 100%
    );
  }

  .cosmos-bg__grid,
  .cosmos-bg__meteors,
  .cosmos-bg__stars--mid,
  .cosmos-bg__stars--near,
  .cosmos-bg__orb--g3 {
    display: none !important;
  }

  .cosmos-bg__aurora {
    filter: none !important;
    mix-blend-mode: normal;
    opacity: 0.28;
    animation: none !important;
    transform: none !important;
  }

  .cosmos-bg__aurora--a {
    width: min(42vw, 680px);
    height: min(42vw, 680px);
    top: -6%;
    right: 0;
  }

  .cosmos-bg__aurora--b {
    width: min(38vw, 560px);
    height: min(38vw, 560px);
    bottom: -8%;
    left: 0;
  }

  .cosmos-bg__stars--far {
    transform: none;
    opacity: 0.45;
    animation: none !important;
  }

  .cosmos-bg__orb {
    filter: none !important;
    animation: none !important;
    opacity: 0.18;
    transform: none !important;
  }

  .cosmos-bg__dust {
    transform: none;
    opacity: 0.65;
  }
}

html.display-2k-lite .cosmos-bg__stage {
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
  transform-style: flat;
  will-change: auto;
  transition: none;
}

html.display-2k-lite .cosmos-bg__grid,
html.display-2k-lite .cosmos-bg__meteors,
html.display-2k-lite .cosmos-bg__stars--mid,
html.display-2k-lite .cosmos-bg__stars--near,
html.display-2k-lite .cosmos-bg__orb--g3 {
  display: none !important;
}

.wrap {
  position: relative;
  z-index: 1;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* nav */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(10, 14, 20, 0.85);
  backdrop-filter: blur(16px);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.35s ease;
}
header.site-header:hover {
  box-shadow: 0 8px 36px rgba(0, 0, 0, 0.35);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 0;
  flex-wrap: wrap;
}
.logo {
  font-weight: 800;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  display: inline-block;
  transform-style: preserve-3d;
  transition: transform 0.3s ease;
}
.logo:hover {
  transform: perspective(400px) rotateY(-6deg) translateZ(6px);
}
.logo span {
  color: var(--accent);
}
.site-nav .site-nav__list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav .site-nav__list a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  transition: color 0.2s;
}
.site-nav .site-nav__list a:hover {
  color: var(--accent-strong);
}

.nav-phone {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  display: inline-block;
  margin-left: auto;
  text-align: right;
}
.nav-phone:hover {
  color: #fff;
}

.nav-mobile-phone {
  display: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.35rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s, background 0.2s;
}
.btn-primary {
  background: linear-gradient(145deg, var(--accent-strong), var(--accent) 45%, #b8924a);
  color: #1a1510;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.2), 0 12px 32px rgba(212, 175, 116, 0.28);
}
.btn-primary:hover {
  transform: translateY(-4px) translateZ(10px) rotateX(4deg);
  box-shadow: 0 10px 0 rgba(0, 0, 0, 0.15), 0 20px 48px rgba(212, 175, 116, 0.4);
}
.btn-primary:active {
  transform: translateY(1px) translateZ(0) rotateX(0);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25), 0 8px 24px rgba(212, 175, 116, 0.2);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: rgba(212, 175, 116, 0.08);
  transform: translateY(-3px) translateZ(8px) rotateX(3deg);
}
.btn-ghost:active {
  transform: translateY(1px) translateZ(0);
}

/* hero */
.hero {
  position: relative;
  padding: 0.375rem 0 1.75rem;
  text-align: center;
  transform-style: preserve-3d;
  width: 100%;
  min-height: calc(100vh - 72px);
  min-height: calc(100dvh - 72px);
  display: flex;
  align-items: stretch;
}
.hero > .wrap,
.hero > .wrap.hero__layout {
  position: relative;
  z-index: 1;
  max-width: 100%;
  width: 100%;
  display: grid;
  grid-template-rows: minmax(3rem, 16vh) auto;
  gap: 0.5rem;
  min-height: calc(100vh - 72px - 2.125rem);
  min-height: calc(100dvh - 72px - 2.125rem);
}
.hero-content {
  width: 100%;
}
.scene-3d .wrap {
  transform-style: preserve-3d;
}
.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1rem;
}
.hero .hero-lead {
  font-size: clamp(1.75rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  margin: 0 0 1rem;
  background: linear-gradient(135deg, #fff 0%, var(--accent-strong) 55%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 0, 0, 0.4)) drop-shadow(0 4px 12px rgba(212, 175, 116, 0.15));
  transform-style: preserve-3d;
  animation: hero-title-3d 10s ease-in-out infinite;
}

@keyframes hero-title-3d {
  0%,
  100% {
    transform: perspective(600px) rotateX(2deg) translateZ(0);
  }
  50% {
    transform: perspective(600px) rotateX(-1deg) translateZ(8px);
  }
}
.hero .quote {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 36rem;
  margin: 0 auto 1.75rem;
  font-style: italic;
}
.hero-bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.5rem;
  margin-bottom: 2rem;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-bullets li {
  list-style: none;
  position: relative;
  padding-left: 1.1rem;
}
.hero-bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.hero-landings {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  align-content: center;
  align-self: center;
  gap: 0.5rem;
  width: 100%;
  max-width: 52rem;
  margin: 0 auto;
  padding: 0 1rem;
}
.hero-landing-card {
  --landing-accent: #e8c97c;
  --landing-glow: rgba(232, 201, 124, 0.1);
  flex: 0 1 9.75rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
  min-height: 0;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  opacity: 0;
  transform: translateY(20px) scale(0.92);
  pointer-events: none;
  border: 1px solid color-mix(in srgb, var(--landing-accent) 22%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--landing-accent) 9%, rgba(8, 12, 22, 0.28)),
    rgba(6, 10, 18, 0.22)
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow:
    0 6px 18px rgba(0, 0, 0, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  text-decoration: none;
  text-align: left;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.25s ease;
}
.hero-landing-card.is-visible {
  animation: hero-landing-reveal 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: auto;
}
@keyframes hero-landing-reveal {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.92);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .hero-landing-card.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
.hero-landing-card.is-visible:hover,
.hero-landing-card.is-visible:focus-visible {
  border-color: color-mix(in srgb, var(--landing-accent) 42%, transparent);
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--landing-accent) 14%, rgba(8, 12, 22, 0.38)),
    rgba(6, 10, 18, 0.32)
  );
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.22),
    0 0 20px var(--landing-glow);
  transform: translateY(-2px);
}
.hero-landing-card.is-visible:focus-visible {
  outline: 2px solid var(--landing-accent);
  outline-offset: 2px;
}
.hero-landing-card--where-money {
  --landing-accent: #facc15;
  --landing-glow: rgba(250, 204, 21, 0.18);
}
.hero-landing-card--make-work-easier {
  --landing-accent: #06b6d4;
  --landing-glow: rgba(6, 182, 212, 0.18);
}
.hero-landing-card--anticrisis {
  --landing-accent: #ff4d6d;
  --landing-glow: rgba(255, 77, 109, 0.18);
}
.hero-landing-card--exit-operations {
  --landing-accent: #10b981;
  --landing-glow: rgba(16, 185, 129, 0.18);
}
.hero-landing-card__icon {
  font-size: 1.1rem;
  line-height: 1;
}
.hero-landing-card__title {
  color: var(--landing-accent);
  font-size: clamp(0.68rem, 0.85vw, 0.78rem);
  font-weight: 700;
  line-height: 1.25;
}

@media (max-width: 900px) {
  .hero-landings {
    max-width: 22rem;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.45rem;
  }
  .hero-landing-card {
    flex: none;
    width: auto;
  }
}

/* pyramid quick nav */
.pyramid-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.5rem;
  transform-style: preserve-3d;
  perspective: 800px;
}
.pyramid-nav a {
  padding: 0.58rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  color: #8b95a8;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(26, 34, 48, 0.85);
  transform-style: preserve-3d;
  transition: color 0.35s ease, border-color 0.35s ease, background 0.35s ease,
    box-shadow 0.35s ease, transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.25);
}
.pyramid-nav a:hover {
  color: var(--accent-strong);
  border-color: rgba(212, 175, 116, 0.45);
  transform: translateZ(6px) rotateX(2deg);
}
.pyramid-nav a.is-lit {
  color: var(--accent-strong);
  border-color: var(--accent-strong);
  background: rgba(212, 175, 116, 0.08);
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.22), 0 0 12px rgba(212, 175, 116, 0.12),
    0 6px 0 rgba(0, 0, 0, 0.2);
  transform: translateZ(9px) scale(1.02) rotateX(2deg);
}
.pyramid-nav a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.pyramid-split {
  margin: 2.25rem auto 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 0.7rem;
  width: 50%;
  min-width: 560px;
}
.pyramid-split__item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 0.75rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(18, 27, 45, 0.78);
  text-align: left;
  min-height: 92px;
  cursor: pointer;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.pyramid-split__item:hover,
.pyramid-split__item:focus-visible,
.pyramid-split__item.is-active {
  border-color: rgba(232, 201, 124, 0.7);
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.25), 0 10px 24px rgba(0, 0, 0, 0.25);
  background: rgba(20, 32, 55, 0.92);
}
.method-highlight {
  border-color: rgba(232, 201, 124, 0.75) !important;
  box-shadow: 0 0 0 2px rgba(232, 201, 124, 0.38), 0 0 28px rgba(232, 201, 124, 0.28);
  transition: box-shadow 0.25s ease, border-color 0.25s ease;
}
.pyramid-split__icon {
  position: absolute;
  top: 0.45rem;
  right: 0.55rem;
  font-size: 0.88rem;
  opacity: 0.9;
  filter: drop-shadow(0 0 4px rgba(232, 201, 124, 0.25));
}
.pyramid-split__item h3 {
  margin: 0 1.2rem 0.3rem 0;
  font-size: 0.95rem;
  color: var(--accent-strong);
}

.pyramid-split__number {
  position: absolute;
  top: -1.5rem;
  right: -0.8rem;
  font-size: 10rem;
  font-weight: 800;
  color: #ff0000; /* Ярко-красный для проверки */
  opacity: 0.3;
  line-height: 0.5;
  pointer-events: none;
  font-family: var(--font);
  user-select: none;
  z-index: 0;
  transition: opacity 0.3s ease, color 0.3s ease;
}

.pyramid-split__item:hover .pyramid-split__number {
  opacity: 0.4;
}

.pyramid-split__item h3, 
.pyramid-split__item p {
  position: relative;
  z-index: 1;
}
.pyramid-split__item p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.35;
}

.site-main {
  position: relative;
  z-index: 1;
  transform-style: preserve-3d;
}

section {
  padding: 4rem 0;
}

.section-3d {
  transform-style: preserve-3d;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}
html.enhanced .section-3d {
  opacity: 0;
  transform: translate3d(0, 26px, -24px) rotateX(4deg);
  transition: opacity 1.05s cubic-bezier(0.22, 1, 0.36, 1),
    transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: calc(var(--reveal-delay, 0) * 45ms);
  will-change: opacity, transform;
}
html.enhanced .section-3d.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0) rotateX(0deg);
}
section.hero {
  opacity: 1;
  transform: none;
}
.section-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent);
  margin-bottom: 0.5rem;
}
section h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 800;
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.sub {
  color: var(--muted);
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* cards grid */
.grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.25rem;
  perspective: var(--perspective);
  transform-style: preserve-3d;
}
.card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transform-style: preserve-3d;
  transition: transform 0.45s cubic-bezier(0.34, 1.3, 0.64, 1), border-color 0.25s,
    box-shadow 0.35s;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
}
.card:hover {
  transform: translateY(-6px) scale(1.03);
  border-color: rgba(212, 175, 116, 0.4);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.4), 0 16px 0 rgba(0, 0, 0, 0.08);
}
.card.card--pyramid-glow {
  border-color: rgba(212, 175, 116, 0.55);
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.2), 0 10px 24px rgba(212, 175, 116, 0.08);
}
.card-num {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}
.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}
.card .role {
  font-size: 0.8rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.75rem;
}
.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

/* stats */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.stat {
  text-align: center;
  padding: 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(212, 175, 116, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.35s;
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.1);
}
.stat:hover {
  transform: translateY(-4px) scale(1.02);
  box-shadow: 0 20px 36px rgba(0, 0, 0, 0.25);
}
.stat .num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--accent-strong);
  line-height: 1.1;
}
.stat .num.green {
  color: var(--green);
}
.stat p {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* cases */
.case-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 50px;
}
.case-tab {
  padding: 0.5rem 1rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: 0.85rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transition: transform 0.25s ease, background 0.2s, border-color 0.2s, color 0.2s,
    box-shadow 0.25s;
  box-shadow: 0 3px 0 rgba(0, 0, 0, 0.15);
}
.case-tab:hover {
  transform: translateY(-2px) scale(1.02);
}
.case-tab.active,
.case-tab:hover {
  background: rgba(212, 175, 116, 0.15);
  border-color: var(--accent);
  color: var(--text);
}
.case-tab.active {
  transform: translateY(-3px) scale(1.03);
  box-shadow: 0 6px 0 rgba(0, 0, 0, 0.12), 0 0 20px rgba(212, 175, 116, 0.12);
}
.case-panel {
  display: none;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.case-panel.active {
  display: block;
  max-height: 2500px;
  opacity: 1;
  transform: translateY(0);
}

@keyframes panel-rise-3d {
  from {
    opacity: 0;
    transform: perspective(900px) rotateX(8deg) translate3d(0, 16px, -30px);
  }
  to {
    opacity: 1;
    transform: perspective(900px) rotateX(0) translate3d(0, 0, 0);
  }
}
.case-inner {
  display: grid;
  gap: 1.5rem;
}
@media (min-width: 768px) {
  .case-inner {
    grid-template-columns: 1fr 1fr;
  }
}
.case-block h4 {
  margin: 0 0 0.5rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-block ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.case-quote {
  grid-column: 1 / -1;
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 3px solid var(--accent);
  background: rgba(212, 175, 116, 0.06);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-style: italic;
  color: var(--text);
}

.case-cta-wrap {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.45rem;
}

.case-cta-btn {
  min-width: 260px;
}

.case-cta-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.case-catalog {
  margin-top: 1.2rem;
}
.case-catalog h3 {
  margin: 0 0 0.45rem;
}
.case-catalog .sub {
  margin: 0 0 0.9rem;
}
.case-catalog__links {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.6rem;
}
.case-catalog__links a {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.8rem;
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.02);
  transition: border-color 0.2s ease, background 0.2s ease;
}
.case-catalog__links a:hover {
  border-color: rgba(232, 201, 124, 0.55);
  background: rgba(232, 201, 124, 0.08);
}

.case-page {
  min-height: calc(100vh - 140px);
}
.case-page__wrap {
  max-width: 920px;
}
.case-page__meta {
  margin-bottom: 1rem;
}
.case-page__meta p {
  margin: 0 0 0.35rem;
}
.case-page__meta p:last-child {
  margin-bottom: 0;
}
.case-page__results {
  margin-bottom: 1rem;
}
.case-page__cta {
  margin-top: 1.25rem;
  justify-content: flex-start;
}

/* Hero на внутренних лендингах (/kanon/, /partners/): один столбец по центру */
.case-page .hero .wrap {
  text-align: center;
}
.case-page .hero .hero-lead {
  text-align: center;
  animation: none;
  transform: none;
}
.case-page .hero .sub {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.case-page .hero .hero-cta.case-page__cta {
  justify-content: center;
}

.case-page #founder .case-page__cta {
  justify-content: center;
}

/* страница книги: оглавление */
.book-toc {
  text-align: left;
}
.book-toc details {
  margin-bottom: 0.75rem;
  border: 1px solid var(--card-border);
  border-radius: var(--radius);
  background: var(--card);
  padding: 0.75rem 1.1rem;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.1);
}
.book-toc summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--accent-strong);
  list-style: none;
  font-size: 0.95rem;
  line-height: 1.35;
}
.book-toc summary::-webkit-details-marker {
  display: none;
}
.book-toc details[open] {
  border-color: rgba(212, 175, 116, 0.35);
}
.book-toc .book-toc__sub {
  margin: 0.75rem 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.book-toc h3,
.book-toc .book-toc__chapter {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--text);
  margin: 1rem 0 0.4rem;
}
.book-toc h3:first-child,
.book-toc .book-toc__chapter:first-of-type {
  margin-top: 0.5rem;
}
.book-toc ul {
  margin: 0.25rem 0 0.5rem 0.2rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.45;
}
.book-toc p.em {
  font-style: italic;
  color: var(--muted);
  font-size: 0.88rem;
  margin: 0.25rem 0 0.5rem;
}

/* case photos */
.case-photos {
  margin: 1.25rem 0 1.15rem;
}
.case-photos__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.85rem;
}
.case-photo {
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
}
.case-photo img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  aspect-ratio: 16 / 10;
}
.case-photo figcaption {
  padding: 0.55rem 0.65rem;
  color: var(--muted);
  font-size: 0.82rem;
}

.customers-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 1rem;
  margin-top: 1.35rem;
  align-items: stretch;
}

.customers-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 5.75rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

.customers-grid__item img {
  max-width: 100%;
  max-height: 4.25rem;
  width: auto;
  height: auto;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.customers-grid__item:hover img {
  opacity: 1;
  transform: scale(1.02);
}

.founder-profile {
  background: linear-gradient(145deg, rgba(212, 175, 116, 0.08), rgba(255, 255, 255, 0.02));
  color: var(--text);
  border-top: 1px solid var(--card-border);
  border-bottom: 1px solid var(--card-border);
}
.founder-profile__wrap {
  display: grid;
  grid-template-columns: minmax(280px, 420px) 1fr;
  gap: 1.4rem;
  align-items: start;
}
.founder-profile__media img {
  width: 100%;
  border-radius: 26px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.3);
}
.founder-profile__content h3 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
  color: var(--text);
  font-family: Georgia, "Times New Roman", serif;
}
.founder-profile__subtitle {
  margin: -0.15rem 0 0.9rem !important;
  font-size: 0.8rem;
  color: var(--muted) !important;
}
.founder-profile__content p {
  margin: 0 0 0.32rem;
  color: var(--muted);
  line-height: 1.28;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.96rem;
}
.founder-profile__content hr {
  border: 0;
  border-top: 2px solid rgba(21, 35, 58, 0.35);
  width: 72px;
  margin: 0.9rem 0;
}
.founder-profile__content ul,
.founder-profile__list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  color: var(--muted);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.95rem;
  line-height: 1.28;
}
.founder-profile__content li {
  margin-bottom: 0.18rem;
  padding-left: 0.8rem;
  position: relative;
  font-style: italic;
}
.founder-profile__content li::before {
  content: "-";
  position: absolute;
  left: 0;
  color: var(--muted);
}
.founder-profile__content li:last-child::before {
  content: "•";
}
.founder-profile__socials {
  margin-top: 0.9rem;
  display: flex;
  gap: 0.35rem;
}
.founder-profile__socials a {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(78, 102, 211, 0.18);
  overflow: hidden;
}
.founder-profile__socials a:hover {
  filter: brightness(1.07);
}
.social-icon {
  width: 14px;
  height: 14px;
  object-fit: contain;
  display: block;
}
.social-icon--max {
  width: 15px;
  height: 15px;
  mix-blend-mode: multiply;
  filter: contrast(1.25) brightness(1.05);
}
.social-icon--email {
  width: 13px;
  height: 13px;
}
.deep-diagnostic {
  padding-top: 1.6rem;
}
.deep-diagnostic .wrap {
  display: flex;
  justify-content: center;
}
.deep-diagnostic__card {
  width: min(100%, 760px);
  border-radius: var(--radius);
  border: 1px solid rgba(232, 201, 124, 0.45);
  background: linear-gradient(145deg, rgba(212, 175, 116, 0.2), rgba(255, 255, 255, 0.04));
  padding: 1rem 1.2rem;
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.2), 0 10px 26px rgba(212, 175, 116, 0.2),
    0 8px 0 rgba(0, 0, 0, 0.2);
}
.deep-diagnostic__card h3 {
  margin: 0 0 0.4rem;
  color: var(--accent-strong);
  font-size: clamp(1.05rem, 1.7vw, 1.35rem);
  text-shadow: 0 0 10px rgba(232, 201, 124, 0.25);
}
.deep-diagnostic__card p {
  margin: 0;
  color: #f7f9ff;
  font-size: 1rem;
  line-height: 1.5;
  max-width: 52rem;
}
.founder-profile__intro-card {
  margin: 0 auto 90px;
}
@media (max-width: 860px) {
  .founder-profile__wrap {
    grid-template-columns: 1fr;
  }
  .founder-profile__media {
    max-width: 460px;
    margin: 0 auto;
  }
  .deep-diagnostic {
    padding-top: 1.2rem;
  }
  .deep-diagnostic__card {
    padding: 0.85rem 0.95rem;
  }
  .deep-diagnostic__card p {
    font-size: 0.93rem;
  }
  .founder-profile__intro-card {
    margin: 0 auto 90px;
  }
}

.case-dashboards {
  grid-column: 1 / -1;
  margin-top: 0.75rem;
}
.case-dashboards h4 {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.case-dashboards__kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.case-kpi {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 0.6rem 0.7rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.2rem 0.6rem;
  align-items: center;
}
.case-kpi span {
  grid-column: 1 / -1;
  color: var(--muted);
  font-size: 0.74rem;
}
.case-kpi em {
  color: #9aa9bd;
  font-style: normal;
  font-size: 0.68rem;
}
.dash-num {
  color: #ff8181;
  font-weight: 800;
  font-size: 1.05rem;
  justify-self: end;
}
.dash-num--after {
  color: #5ad084;
}
.kpi-track {
  grid-column: 1 / -1;
  height: 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-top: 0.3rem;
}
.dash-fill {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff8c8c, #ff6969);
}
.dash-fill--profit {
  background: linear-gradient(90deg, #ffd177, #e8c97c);
}
.dashboard-chart {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 0.85rem;
  background: rgba(255, 255, 255, 0.02);
}
.dashboard-chart h5 {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  color: #e6edf7;
}
.chart-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(80px, 1fr));
  gap: 0.8rem;
  align-items: end;
}
.chart-col {
  text-align: center;
}
.chart-col span {
  display: block;
  margin-top: 0.45rem;
  color: var(--muted);
  font-size: 0.72rem;
}
.bars {
  height: 150px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 0.3rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chart-bar {
  width: 18px;
  height: 0;
  border-radius: 6px 6px 0 0;
}
.chart-bar--before {
  background: #df7a83;
}
.chart-bar--after {
  background: #59c778;
}
@media (max-width: 800px) {
  .chart-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .bars {
    height: 120px;
  }
}
@media (max-width: 520px) {
  .chart-grid {
    grid-template-columns: 1fr;
  }
  .bars {
    justify-content: flex-start;
    padding-left: 0.65rem;
  }
}

/* pricing */
.price-card {
  margin-bottom: 1.5rem;
}
.price-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.price {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-strong);
}
.premium {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(255, 255, 255, 0.1);
}
.premium-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--accent-2);
  margin-bottom: 0.5rem;
}

/* team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  perspective: var(--perspective);
  transform-style: preserve-3d;
}
.team-card {
  transform-style: preserve-3d;
  transition: transform 0.4s cubic-bezier(0.34, 1.3, 0.64, 1), box-shadow 0.35s;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.1);
}
.team-card:hover {
  transform: translateY(-6px) scale(1.02);
  box-shadow: 0 22px 44px rgba(0, 0, 0, 0.35);
}
.team-card .avatar {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  color: #1a1510;
  margin-bottom: 0.75rem;
  transform-style: preserve-3d;
  transition: transform 0.35s ease;
  overflow: hidden;
}
.team-card .avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.team-card:hover .avatar {
  transform: scale(1.05);
}

/* faq */
.faq-item {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  margin-bottom: 0.75rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.02);
  transform-style: preserve-3d;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08);
}
.faq-item.open {
  transform: translateY(-2px) scale(1.01);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.2);
}
.faq-q {
  width: 100%;
  text-align: left;
  padding: 1rem 1.25rem;
  font-family: inherit;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq-q::after {
  content: "+";
  font-size: 1.25rem;
  color: var(--accent);
  flex-shrink: 0;
}
.faq-item.open .faq-q::after {
  content: "−";
}
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.faq-a-inner {
  padding: 0 1.25rem 1.25rem;
  color: var(--muted);
  font-size: 0.9rem;
}
.faq-item.open .faq-a {
  max-height: 800px;
}

/* footer cta */
.footer-cta {
  text-align: center;
  padding: 4rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  transform-style: preserve-3d;
  scroll-margin-top: 96px;
}
.footer-cta .wrap {
  transform-style: preserve-3d;
  animation: footer-glow-3d 8s ease-in-out infinite;
}

@keyframes footer-glow-3d {
  0%,
  100% {
    transform: perspective(800px) translateZ(0);
  }
  50% {
    transform: perspective(800px) translateZ(6px);
  }
}
.footer-cta h2 {
  margin-bottom: 1rem;
}
.contacts {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.5rem;
}
.contacts a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.contacts a:hover {
  text-decoration: underline;
}
.city {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

footer.legal {
  padding: 2.5rem 0 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.35) 100%);
}
footer.legal .site-footer-sitemap {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem 2.5rem;
  width: 100%;
  max-width: 100%;
  padding-bottom: 2rem;
  margin-bottom: 1.75rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  text-align: left;
}
footer.legal .site-footer-sitemap__col {
  min-width: 0;
}
.site-footer-sitemap__title {
  margin: 0 0 0.85rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
}
.site-footer-sitemap__list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.site-footer-sitemap__list a {
  color: rgba(226, 232, 240, 0.88);
  text-decoration: none;
  font-size: 0.88rem;
  line-height: 1.35;
  transition: color 0.2s ease;
}
.site-footer-sitemap__list a:hover {
  color: var(--accent-strong);
}
.site-footer-sitemap__list a:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-radius: 2px;
}
.legal__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
}
.legal__copy {
  margin: 0;
  color: var(--text);
}
.legal__nav a {
  color: var(--accent-strong);
  text-decoration: none;
}
.legal__nav a:hover {
  text-decoration: underline;
}
.legal__sep {
  margin: 0 0.35rem;
  opacity: 0.5;
}
.legal__soon {
  display: block;
  max-width: 28rem;
  font-size: 0.75rem;
  opacity: 0.85;
}
.legal__disclaimer {
  margin: 0.15rem auto 0;
  max-width: 46rem;
  font-size: 0.76rem;
  line-height: 1.45;
  color: var(--muted);
}
.legal__disclaimer a {
  color: var(--accent-strong);
  text-decoration: none;
}
.legal__disclaimer a:hover {
  text-decoration: underline;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 100;
  padding: 0.65rem 1rem;
  background: var(--accent-strong);
  color: #1a1510;
  font-weight: 700;
  text-decoration: none;
  border-radius: var(--radius);
  transform: translateY(-160%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--accent-strong));
  pointer-events: none;
  transition: width 0.08s linear;
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}
.nav-toggle__bar {
  display: block;
  width: 22px;
  height: 2px;
  margin: 0 auto;
  background: var(--text);
  border-radius: 1px;
  transition: transform 0.25s ease, opacity 0.2s;
}
.site-header.is-open .nav-toggle__bar:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.site-header.is-open .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}
.site-header.is-open .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

.site-nav-backdrop {
  display: none;
}

body.nav-open,
body.modal-open,
html.modal-open {
  overflow: hidden;
}

html.modal-open body {
  perspective: none !important;
}

@media (max-width: 900px) {
  /* Иначе position:fixed у .site-nav позиционируется относительно шапки и «вылезает» в полоску */
  header.site-header {
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .cosmos-bg__aurora,
  .cosmos-bg__orb,
  .cosmos-bg__meteors {
    display: none !important;
  }
  .cosmos-bg__stars--near {
    opacity: 0.35;
  }
  .cosmos-bg__stars--mid {
    opacity: 0.4;
  }
  .nav-toggle {
    display: flex;
  }
  .site-nav-backdrop {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 45;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
  }
  .site-header.is-open .site-nav-backdrop {
    opacity: 1;
    pointer-events: auto;
  }
  .site-nav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(100%, 320px);
    height: 100vh;
    height: 100dvh;
    z-index: 48;
    background: rgba(12, 16, 24, 0.97);
    border-left: 1px solid rgba(212, 175, 116, 0.15);
    padding: 5rem 1.25rem 2rem;
    transform: translate3d(100%, 0, 0);
    pointer-events: none;
    transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
    overflow-y: auto;
  }
  .site-header.is-open .site-nav {
    transform: translate3d(0, 0, 0);
    pointer-events: auto;
  }
  .site-nav__list {
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .site-nav__list a {
    display: block;
    padding: 1rem 0.75rem;
    min-height: 48px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }
  .nav-inner nav.site-nav {
    order: unset;
  }
  .nav-inner {
    position: relative;
  }
  .logo {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    width: max-content;
    max-width: calc(100% - 96px);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .nav-phone {
    display: block !important;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: auto;
    bottom: 0.2rem;
    margin-left: 0;
    text-align: center;
    color: var(--accent-strong);
    font-size: 1.02rem;
    line-height: 1.1;
  }
  .nav-mobile-phone {
    display: none !important;
  }
  .nav-inner {
    padding-bottom: 1.15rem;
  }
}

/* Мобильный performance-режим: меньше подвисаний и мягче переходы */
@media (max-width: 900px) {
  html,
  body {
    perspective: none !important;
  }

  .cosmos-bg__grid,
  .cosmos-bg__stars--far,
  .cosmos-bg__stars--mid,
  .cosmos-bg__stars--near,
  .footer-cta .wrap {
    animation: none !important;
  }

  .section-3d,
  .card,
  .team-card,
  .stat,
  .case-tab,
  .btn,
  .faq-item {
    transform: none !important;
  }

  .card,
  .team-card,
  .stat,
  .case-tab,
  .faq-item,
  .btn {
    transition-duration: 0.2s !important;
  }

  .case-panel {
    transition: opacity 0.28s ease, transform 0.28s ease, max-height 0.28s ease !important;
  }
}

/* если js выставил mobile-lite — выключаем лишнюю декоративную нагрузку полностью */
html.mobile-lite .cosmos-bg__aurora,
html.mobile-lite .cosmos-bg__orb,
html.mobile-lite .cosmos-bg__meteors,
html.mobile-lite .cosmos-bg__dust {
  display: none !important;
}

@media (max-width: 900px) {
  .site-footer-sitemap {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding-bottom: 1.5rem;
    margin-bottom: 1.25rem;
  }
  .site-footer-sitemap__col--cases .site-footer-sitemap__list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 1rem;
    row-gap: 0.45rem;
  }
}

@media (max-width: 1200px) {
  .card:hover,
  .team-card:hover,
  .stat:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(0, 0, 0, 0.22);
  }
}

.title-block {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.pyramid-infographic {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  margin: 0 0 2.5rem;
  padding: 1.5rem;
  border-radius: var(--radius);
  border: 1px solid rgba(212, 175, 116, 0.12);
  background: rgba(255, 255, 255, 0.02);
}
.pyramid-infographic__svg {
  width: min(280px, 85vw);
  height: auto;
  flex-shrink: 0;
}
.pyramid-infographic__legend {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.pyramid-infographic__legend li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-bottom: 0.5rem;
  transition: color 0.3s ease, text-shadow 0.3s ease;
}
.pyramid-infographic__n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.65rem;
  height: 1.65rem;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 800;
  background: rgba(212, 175, 116, 0.2);
  color: var(--accent-strong);
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.pyramid-infographic__legend li.is-active {
  color: var(--text);
  text-shadow: 0 0 6px rgba(232, 201, 124, 0.22);
}
.pyramid-infographic__legend li.is-active .pyramid-infographic__n {
  background: rgba(212, 175, 116, 0.34);
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.35), 0 0 8px rgba(212, 175, 116, 0.14);
  transform: scale(1.06);
}
.pyramid-infographic__svg path {
  transition: stroke 0.4s ease, fill 0.4s ease, opacity 0.4s ease, filter 0.4s ease;
}
#pyramid[data-active-step="0"] .pyramid-infographic__svg path:nth-of-type(4),
#pyramid[data-active-step="1"] .pyramid-infographic__svg path:nth-of-type(3),
#pyramid[data-active-step="2"] .pyramid-infographic__svg path:nth-of-type(2),
#pyramid[data-active-step="3"] .pyramid-infographic__svg path:nth-of-type(1) {
  opacity: 0.95;
  stroke: rgba(232, 201, 124, 0.95);
  fill: rgba(232, 201, 124, 0.16);
  filter: drop-shadow(0 0 5px rgba(232, 201, 124, 0.25));
}

.trust-strip {
  margin: 0 0 1.75rem;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(212, 175, 116, 0.08), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(212, 175, 116, 0.12);
}
.trust-strip__label {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
  color: var(--text);
}
.trust-strip__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
  color: var(--muted);
}
.trust-strip__stats strong {
  color: var(--accent-strong);
  font-size: 1.05rem;
}

.case-compare {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
@media (max-width: 600px) {
  .hero {
    min-height: calc(100vh - 64px);
    min-height: calc(100dvh - 64px);
    padding-top: 1.5rem;
    padding-bottom: 2rem;
    align-items: flex-start;
  }
  .hero > .wrap.hero__layout {
    min-height: 0;
    grid-template-rows: auto auto;
    gap: 0.425rem;
  }
  .eyebrow {
    text-align: center;
    margin-bottom: 0.7rem;
    font-size: 0.65rem;
    letter-spacing: 0.12em;
    line-height: 1.35;
  }
  .hero .hero-lead {
    text-align: center;
    margin-bottom: 0.85rem;
  }
  .hero .quote {
    text-align: center;
    margin-bottom: 1.2rem;
    max-width: 19rem;
    margin-left: auto;
    margin-right: auto;
    font-size: 0.9rem;
    line-height: 1.38;
  }
  .hero-bullets {
    max-width: 22rem;
    margin: 30px auto 1.2rem;
    display: grid;
    gap: 0.55rem;
    font-size: 0.66rem;
    line-height: 1.28;
  }
  .hero-bullets li {
    padding-left: 0;
    display: grid;
    grid-template-columns: 0.6rem 1fr;
    align-items: start;
    gap: 0.55rem;
    text-align: center;
    font-size: inherit;
  }
  .hero-bullets li::before {
    position: static;
    margin-top: 0.45em;
  }
  .hero-cta {
    justify-content: center;
  }
  .hero-cta .btn-ghost {
    display: none;
  }
  .hero-cta .btn-primary {
    margin-left: auto;
    margin-right: auto;
  }
  /* On case pages keep both CTA buttons visible */
  .case-page .hero-cta .btn-ghost {
    display: inline-flex;
  }
  .case-page .hero-cta .btn-primary {
    margin-left: 0;
    margin-right: 0;
  }
  .pyramid-nav {
    width: 100%;
    max-width: 360px;
    margin-inline: auto;
    gap: 0.45rem;
    margin-top: 2.1rem;
  }
  .pyramid-nav a {
    flex: 0 0 calc(50% - 0.3rem);
    text-align: center;
    justify-content: center;
    min-height: 42px;
    display: inline-flex;
    align-items: center;
    font-size: 0.95rem;
  }
  .case-compare {
    grid-template-columns: 1fr;
  }
  .pyramid-split {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
    margin-top: 1.65rem;
    width: 100%;
    min-width: 0;
  }
  .pyramid-split__item {
    min-height: 84px;
    padding: 0.65rem 0.7rem;
  }
  .pyramid-split__item h3 {
    font-size: 0.9rem;
  }
  .pyramid-split__item p {
    font-size: 0.76rem;
  }
  .pyramid-split__icon {
    display: none;
  }
}
.case-compare__col {
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.case-compare__col--before {
  background: rgba(196, 92, 92, 0.08);
}
.case-compare__col--after {
  background: rgba(52, 211, 153, 0.08);
}
.case-compare__tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  color: var(--accent-strong);
}
.case-compare__text {
  margin: 0;
  font-size: 0.9rem;
  color: var(--text);
}

.section-3d--tight {
  padding: 2.5rem 0;
}
#lead.section-3d--tight {
  padding: 1.25rem 0;
}
.lead-magnet__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}
.lead-magnet > .wrap {
  max-width: 100%;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}
.lead-magnet__grid--single {
  grid-template-columns: 1fr;
}
.lead-magnet__card {
  padding: 1.5rem;
}
.lead-magnet__grid--single .lead-magnet__card {
  width: 100%;
  min-height: 420px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 2.25rem 2rem;
  border: 1px solid rgba(232, 201, 124, 0.45);
  background: linear-gradient(135deg, rgba(23, 35, 58, 0.95), rgba(16, 24, 40, 0.96));
  box-shadow: 0 0 0 1px rgba(232, 201, 124, 0.2), 0 18px 48px rgba(0, 0, 0, 0.45),
    0 0 40px rgba(232, 201, 124, 0.14);
}
.lead-magnet__grid--single .lead-magnet__card .title-block {
  font-size: clamp(1.2rem, 2.2vw, 1.45rem);
  line-height: 1.25;
  margin-bottom: 0.6rem;
  max-width: 46rem;
}
.lead-magnet__grid--single .lead-magnet__card .sub {
  font-size: 1rem;
  max-width: 46rem;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1rem !important;
}
.lead-magnet__grid--single .lead-magnet__proof span {
  font-size: 0.78rem;
  padding: 0.35rem 0.6rem;
}
.lead-magnet__grid--single #lead-quiz-start {
  margin-top: 0.8rem;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 900px) {
  .lead-magnet__grid--single .lead-magnet__card {
    min-height: 300px;
    padding: 1.45rem 1.2rem;
  }
}

.lead-magnet__proof {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 0.9rem;
}
.lead-magnet__proof span {
  font-size: 0.78rem;
  color: var(--text);
  border: 1px solid rgba(212, 175, 116, 0.25);
  border-radius: 999px;
  padding: 0.35rem 0.6rem;
  background: rgba(255, 255, 255, 0.02);
}

.lead-quiz-modal[hidden] {
  display: none !important;
}
.lead-quiz-modal:not([hidden]) {
  position: fixed;
  inset: 0;
  z-index: 98;
  display: block;
  overflow: hidden;
  padding: 0;
}
.lead-quiz-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.74);
}
.lead-quiz-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(760px, calc(100vw - 2rem));
  max-width: 760px;
  max-height: min(90vh, calc(100vh - 2rem));
  max-height: min(90dvh, calc(100dvh - 2rem));
  margin: 0;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.lead-quiz-modal__close {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 10px;
  font-size: 1.5rem;
  color: var(--text);
  background: rgba(255, 255, 255, 0.08);
  cursor: pointer;
}
.lead-quiz-step {
  padding-top: 1.5rem;
}

.lead-quiz-progress__meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.35rem;
  color: var(--muted);
  font-size: 0.85rem;
}
.lead-quiz-progress__track {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  margin-bottom: 1rem;
  overflow: hidden;
}
.lead-quiz-progress__track i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffd700, #1a237e);
  transition: width 0.35s ease;
}

.lead-quiz-question__title {
  margin: 0 0 0.8rem;
}
.lead-quiz-question__list {
  display: grid;
  gap: 0.55rem;
}
.lead-quiz-option {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
}
.lead-quiz-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.lead-quiz-option__box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
}
.lead-quiz-option input:checked + .lead-quiz-option__box {
  border-color: #ffd700;
  background: rgba(255, 215, 0, 0.15);
}
.lead-quiz-option input:checked + .lead-quiz-option__box::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 2px;
  width: 6px;
  height: 12px;
  border-right: 2px solid #ffd700;
  border-bottom: 2px solid #ffd700;
  transform: rotate(40deg);
}

.lead-quiz-error {
  margin: 0.8rem 0 0;
  color: #ff2f2f;
  background: rgba(255, 47, 47, 0.14);
  border: 1px solid rgba(255, 47, 47, 0.5);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.95rem;
  font-weight: 700;
}
.lead-quiz-actions {
  justify-content: space-between;
  margin-top: 1rem;
}

.lead-quiz-result-card {
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  padding: 1rem;
}
.lead-quiz-result-card__badge {
  display: inline-flex;
  margin-bottom: 0.65rem;
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--diag-color, #8892a6);
}
.lead-quiz-instructions ol {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}

.services-rail {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.services-rail .hero-cta {
  position: relative;
  z-index: 3;
  pointer-events: auto;
}
.services-rail .hero-cta .btn,
.services-rail [data-price-open] {
  position: relative;
  z-index: 4;
  pointer-events: auto;
}
@media (max-width: 768px) {
  .services-rail {
    flex-direction: row;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 1rem;
    padding-bottom: 0.75rem;
    margin-inline: -1rem;
    padding-inline: 1rem;
    -webkit-overflow-scrolling: touch;
  }
  .services-rail .price-card {
    flex: 0 0 min(92vw, 340px);
    scroll-snap-align: start;
  }
}

.contact-form {
  max-width: 32rem;
  margin: 0 auto 0.5rem;
  padding: 1.5rem;
  text-align: left;
  transform: none !important;
  transition: none !important;
}
.contact-form:hover {
  transform: none !important;
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.12);
  border-color: var(--card-border);
}
.footer-cta .wrap {
  animation: none;
  transform: none;
}
.contact-form__note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0 0 1.25rem;
  line-height: 1.5;
}
.contact-form__status {
  margin: 0.85rem 0 0;
  min-height: 1.25rem;
  font-size: 0.9rem;
  color: #9fb0c9;
}
.contact-form__status.is-pending {
  color: #9fb0c9;
}
.contact-form__status.is-success {
  color: #22ff6a;
  text-shadow: 0 0 14px rgba(34, 255, 106, 0.35);
}
.contact-form__status.is-error {
  color: #ff4d4d;
  text-shadow: 0 0 12px rgba(255, 77, 77, 0.3);
}
.form-field {
  margin-bottom: 1rem;
}
.form-field label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--text);
}
.form-field input,
.form-field textarea {
  width: 100%;
  padding: 0.75rem 0.9rem;
  min-height: 48px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: var(--text);
  font-family: inherit;
  font-size: 1rem;
}
.form-field textarea {
  min-height: 120px;
  resize: vertical;
}
.form-field input:focus-visible,
.form-field textarea:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
  border-color: rgba(212, 175, 116, 0.4);
}
.form-field--check {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}
.form-field--check input {
  width: auto;
  min-height: auto;
  margin-top: 0.2rem;
}
.form-field--check label {
  margin: 0;
  font-weight: 500;
}
.req {
  color: var(--accent-2);
}

.link-arrow {
  color: var(--accent-strong);
  font-weight: 600;
  font-size: 0.875rem;
  text-decoration: none;
}
.link-arrow:hover {
  text-decoration: underline;
}

.exit-modal[hidden] {
  display: none !important;
}
.exit-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  overflow: hidden;
  padding: 0;
  pointer-events: none;
}
.exit-modal:not([hidden]) .exit-modal__backdrop,
.exit-modal:not([hidden]) .exit-modal__panel {
  pointer-events: auto;
}
.exit-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  cursor: pointer;
}
.exit-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(400px, calc(100vw - 2rem));
  max-width: 400px;
  max-height: min(90vh, calc(100vh - 2rem));
  margin: 0;
  padding: 1.75rem;
  text-align: center;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.exit-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}
.exit-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.contact-modal[hidden] {
  display: none !important;
}
.contact-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 97;
  overflow: hidden;
  padding: 0;
}
.contact-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}
.contact-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(620px, calc(100vw - 2rem));
  max-width: 620px;
  max-height: min(90vh, calc(100vh - 2rem));
  margin: 0;
  padding: 1.5rem 1.3rem;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.contact-modal__panel .sub {
  margin-bottom: 1rem;
}
.contact-modal__panel .contact-form {
  margin: 0;
  max-width: none;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.contact-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.contact-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.connect-modal[hidden] {
  display: none !important;
}
.connect-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 98;
  overflow: hidden;
  padding: 0;
}
.connect-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}
.connect-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(420px, calc(100vw - 2rem));
  max-width: 420px;
  max-height: min(90vh, calc(100vh - 2rem));
  margin: 0;
  padding: 1.5rem 1.3rem;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.connect-modal__panel .sub {
  margin-bottom: 1.25rem;
}
.connect-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.connect-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.connect-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.connect-modal__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  width: 100%;
}
.connect-modal__icon {
  flex-shrink: 0;
  object-fit: contain;
}
.connect-modal__icon--max {
  mix-blend-mode: multiply;
  filter: contrast(1.25) brightness(1.05);
}

/* Модальные окна: совместимость со старыми браузерами и слабым GPU */
.connect-modal.is-open,
.contact-modal.is-open,
.exit-modal.is-open,
.price-details-modal.is-open,
.team-member-modal.is-open,
.lead-quiz-modal.is-open,
.connect-modal:not([hidden]),
.contact-modal:not([hidden]),
.exit-modal:not([hidden]),
.price-details-modal:not([hidden]),
.team-member-modal:not([hidden]),
.lead-quiz-modal:not([hidden]) {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  overflow: hidden;
}

.connect-modal__backdrop,
.contact-modal__backdrop,
.exit-modal__backdrop,
.price-details-modal__backdrop,
.team-member-modal__backdrop,
.lead-quiz-modal__backdrop {
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 0;
}

.connect-modal__panel,
.contact-modal__panel,
.exit-modal__panel,
.price-details-modal__panel,
.team-member-modal__panel,
.lead-quiz-modal__panel {
  z-index: 2;
  opacity: 1 !important;
  visibility: visible !important;
  position: fixed !important;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
  transform-style: flat !important;
  backface-visibility: visible;
  -webkit-backface-visibility: visible;
  margin: 0 !important;
  max-height: min(90vh, calc(100vh - 2rem)) !important;
  overflow-y: auto;
  background: var(--card);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.55);
}

.contact-modal__panel.card:hover,
.connect-modal__panel.card:hover,
.exit-modal__panel.card:hover,
.price-details-modal__panel.card:hover,
.team-member-modal__panel.card:hover,
.lead-quiz-modal__panel.card:hover {
  transform: translate(-50%, -50%) !important;
  -webkit-transform: translate(-50%, -50%) !important;
}

.price-details-modal[hidden] {
  display: none !important;
}
.price-details-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 95;
  overflow: hidden;
  padding: 0;
}
.price-details-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}
.price-details-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(560px, calc(100vw - 2rem));
  max-width: 560px;
  max-height: min(90vh, calc(100vh - 2rem));
  margin: 0;
  padding: 1.4rem 1.3rem;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.price-details-modal.price-details-modal--wide .price-details-modal__panel {
  width: min(920px, calc(100vw - 2rem));
  max-width: 920px;
}
.price-details-modal__panel .section-label {
  margin-bottom: 0.25rem;
}
.price-details-modal__panel .title-block {
  margin: 0 0 0.45rem;
}
.price-details-modal__panel .sub {
  margin-bottom: 0.75rem;
}
.price-details-modal__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
}
.price-details-modal__list li {
  margin-bottom: 0.35rem;
}
.price-details-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.price-details-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
@media (max-width: 900px) {
  .price-details-modal.price-details-modal--wide .price-details-modal__panel {
    max-width: 560px;
  }
}

.team-member-modal[hidden] {
  display: none !important;
}
.team-member-modal:not([hidden]) {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 96;
  overflow: hidden;
  padding: 0;
}
.team-member-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.68);
  cursor: pointer;
}
.team-member-modal__panel {
  position: fixed;
  top: 50%;
  left: 50%;
  z-index: 2;
  width: min(720px, calc(100vw - 2rem));
  max-width: 720px;
  max-height: min(90vh, calc(100vh - 2rem));
  margin: 0;
  padding: 1.5rem 1.35rem 1.35rem;
  text-align: left;
  transform: translate(-50%, -50%);
  -webkit-transform: translate(-50%, -50%);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.team-member-modal__close {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1;
  cursor: pointer;
}
.team-member-modal__close:hover {
  background: rgba(255, 255, 255, 0.12);
}
.team-member-modal__layout {
  display: flex;
  gap: 1.35rem;
  align-items: flex-start;
}
.team-member-modal__photo-wrap {
  flex-shrink: 0;
}
.team-member-modal__photo {
  width: 200px;
  height: 200px;
  max-width: 40vw;
  max-height: 40vw;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  display: block;
}
.team-member-modal__body .section-label {
  margin-bottom: 0.25rem;
}
.team-member-modal__body .title-block {
  margin: 0 0 0.4rem;
}
.team-member-modal__lead {
  margin: 0 0 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  color: var(--accent-strong);
  line-height: 1.45;
}
.team-member-modal__list {
  margin: 0 0 1rem;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.45;
}
.team-member-modal__list li {
  margin-bottom: 0.4rem;
}
.team-member-modal__actions {
  margin-top: 0.25rem;
  justify-content: flex-start;
}
.team-card[data-team-member] {
  cursor: pointer;
}
.team-card[data-team-member]:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}
@media (max-width: 640px) {
  .team-member-modal__layout {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  .team-member-modal__body {
    width: 100%;
  }
  .team-member-modal__lead,
  .team-member-modal__list {
    text-align: left;
  }
  .team-member-modal__photo {
    width: min(200px, 72vw);
    height: min(200px, 72vw);
    max-width: none;
    max-height: none;
  }
  .team-member-modal__actions {
    justify-content: center;
  }
}

a:focus-visible,
button:focus-visible,
.btn:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 3px;
}

.price-card {
  transition: border-color 0.25s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.price-card:hover {
  border-color: rgba(212, 175, 116, 0.35);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.35);
}

::-webkit-scrollbar {
  width: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-mid);
}
::-webkit-scrollbar-thumb {
  background: #3d4a5c;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cosmos-bg__stage {
    transform: none !important;
    transition: none !important;
  }
  html.enhanced .section-3d,
  html.enhanced .section-3d.is-revealed {
    opacity: 1;
    transform: none;
  }
  body {
    perspective: none;
  }
}

/* —— Страница «Спасибо» (/spasibo/) —— */
.thank-you-page .thank-you-hero {
  padding-top: clamp(2rem, 6vw, 4rem);
  padding-bottom: clamp(2.5rem, 5vw, 3.5rem);
}
.thank-you-hero__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(1.5rem, 4vw, 3rem);
}
.thank-you-hero__content {
  max-width: 42rem;
}
.thank-you-hero__sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  font-weight: 500;
  line-height: 1.55;
  color: var(--muted);
  margin: 0 0 1.5rem;
  max-width: 40rem;
}
.thank-you-hero__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.thank-you-penrose {
  width: min(200px, 28vw);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(212, 175, 116, 0.25));
  animation: thank-you-penrose-float 8s ease-in-out infinite;
}
.thank-you-penrose__side1 {
  fill: #1e293b;
}
.thank-you-penrose__side2 {
  fill: #bfb606;
}
.thank-you-penrose__side3 {
  fill: #64748b;
}
@keyframes thank-you-penrose-float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(2deg);
  }
}
.thank-you-steps {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thank-you-steps__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: start;
  padding: 1.25rem 1.5rem;
  border-radius: var(--radius);
  background: var(--card);
  border: 1px solid var(--card-border);
}
.thank-you-steps__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--accent-strong);
  background: rgba(212, 175, 116, 0.2);
  flex-shrink: 0;
}
.thank-you-steps__body {
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.55;
}
.thank-you-steps__body strong {
  color: var(--text);
  font-weight: 600;
}
.thank-you-warmup__title {
  font-size: clamp(1.25rem, 2.5vw, 1.65rem);
  max-width: 48rem;
}
.thank-you-teasers {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2rem;
}
.thank-you-teaser .title-block {
  font-size: 1.1rem;
}
.thank-you-teaser__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}
.thank-you-levels {
  margin-top: 1.5rem;
}
.thank-you-footer-cta h2 {
  margin-bottom: 1rem;
}
.thank-you-contacts {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  font-size: 1.05rem;
  color: var(--muted);
}
.thank-you-contacts li {
  margin-bottom: 0.65rem;
}
.thank-you-contacts a {
  color: var(--accent-strong);
  text-decoration: none;
  font-weight: 600;
}
.thank-you-contacts a:hover {
  text-decoration: underline;
}
.thank-you-footer-cta__actions {
  margin-top: 0.5rem;
}
@media (max-width: 768px) {
  .thank-you-hero__inner {
    grid-template-columns: 1fr;
  }
  .thank-you-hero__mark {
    order: -1;
    justify-content: flex-start;
  }
  .thank-you-penrose {
    width: 120px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .thank-you-penrose {
    animation: none;
  }
}

/* Bitrix24: кнопка и чат поверх космического фона, модалок и exit-popup */
.bx-livechat,
.b24-widget-button-wrapper,
.b24-widget-button-position-bottom-right,
.b24-widget-button-position-right-bottom,
.b24-widget-button-inner-container,
div[class*="bx-crm-button"],
div[id*="bx-crm-button"],
iframe[src*="bitrix24"] {
  z-index: 2147483000 !important;
  pointer-events: auto !important;
}
