/* ЮрСфера — landing: Apple clarity + hand-drawn accents */

:root {
  --bg: #f5f5f7;
  --bg-elevated: #ffffff;
  --ink: #1d1d1f;
  --ink-muted: #6e6e73;
  --ink-soft: #86868b;
  --burgundy: #8b1538;
  --burgundy-light: #a91d3a;
  --burgundy-soft: rgba(139, 21, 56, 0.1);
  --line: rgba(0, 0, 0, 0.06);
  --radius: 22px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --hand: "Caveat", "Segoe Print", cursive;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: linear-gradient(135deg, #f5f7fa 0%, #e8ecf1 100%);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  position: relative;
  min-height: 100vh;
}

/* Фон как в сайдбаре CRM */
.page-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.page-bg__liquid {
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(212, 175, 55, 0.18) 0%,
    rgba(139, 21, 56, 0.1) 25%,
    transparent 50%
  );
  will-change: transform;
  animation: liquidMove 20s ease-in-out infinite;
}

.page-bg__sheen {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.55) 0%,
    rgba(255, 255, 255, 0.15) 45%,
    rgba(139, 21, 56, 0.06) 100%
  );
  opacity: 0.85;
}

.page-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 80% 50% at 50% 0%,
    rgba(139, 21, 56, 0.04) 0%,
    transparent 60%
  );
}

@keyframes liquidMove {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  33% {
    transform: translate3d(10%, -10%, 0) rotate(120deg);
  }
  66% {
    transform: translate3d(-10%, 10%, 0) rotate(240deg);
  }
}

.top,
main,
.footer {
  position: relative;
  z-index: 1;
}

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

img, svg {
  display: block;
  max-width: 100%;
}

.shell {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

/* —— Nav —— */
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  background: rgba(245, 245, 247, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.4);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 56px;
  padding: 8px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 17px;
}

.brand-logo {
  width: 36px;
  height: 36px;
  object-fit: contain;
  filter: drop-shadow(0 2px 6px rgba(139, 21, 56, 0.15));
}

.top-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--burgundy);
  padding: 9px 18px;
  border-radius: 999px;
  background: var(--burgundy-soft);
  border: 1px solid rgba(139, 21, 56, 0.12);
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.top-link:hover {
  background: rgba(139, 21, 56, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.12);
}

/* —— Hero —— */
.hero {
  padding: 64px 0 80px;
  position: relative;
  text-align: center;
  overflow: visible;
}

.hero-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

/* Рисованные акценты в hero */
.doodle-float {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: doodle-in 0.8s ease 0.5s forwards, doodle-drift 9s ease-in-out 1.3s infinite;
}

.doodle-float--left {
  top: 10%;
  left: 0;
  width: min(100px, 18vw);
}

.doodle-float--right {
  top: 26%;
  right: 0;
  width: min(88px, 16vw);
}

@keyframes doodle-drift {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  50% { transform: translate(5px, -7px) rotate(2deg); }
}

/* Юридические doodle-иконки */
.legal-doodle {
  position: absolute;
  pointer-events: none;
  z-index: 1;
  opacity: 0;
  animation: doodle-in 0.85s ease forwards, legal-float 10s ease-in-out infinite;
}

@keyframes legal-float {
  0%, 100% { translate: 0 0; }
  50% { translate: 5px -7px; }
}

.legal-doodle--gavel {
  width: min(52px, 10vw);
  top: 6%;
  right: 2%;
  --drift-rot: -6deg;
  animation-delay: 0.2s, 1.1s;
  transform: rotate(-8deg);
}

.legal-doodle--folder {
  width: min(46px, 9vw);
  left: 0;
  bottom: 22%;
  --drift-rot: 5deg;
  animation-delay: 0.35s, 1.4s;
  transform: rotate(6deg);
}

.legal-doodle--scales {
  width: min(58px, 11vw);
  right: 4%;
  bottom: 8%;
  animation-delay: 0.5s, 1.7s;
  transform: rotate(-4deg);
}

.section--cards {
  position: relative;
  overflow: visible;
}

.legal-doodle--stamp {
  width: min(54px, 10vw);
  top: 12%;
  right: 0;
  animation-delay: 0.15s, 0.9s;
  transform: rotate(12deg);
}

.legal-doodle--doc {
  width: min(44px, 8vw);
  left: -2%;
  bottom: 18%;
  animation-delay: 0.3s, 1.2s;
  transform: rotate(-10deg);
}

.hero-wordplay {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  white-space: nowrap;
}

.hero-struck {
  position: relative;
  color: rgba(110, 110, 115, 0.85);
}

.hero-struck::after {
  content: '';
  position: absolute;
  left: -6%;
  right: -6%;
  top: 54%;
  height: 3px;
  background: var(--burgundy);
  border-radius: 2px;
  transform: rotate(-4deg);
  box-shadow: 0 1px 0 rgba(139, 21, 56, 0.25);
}

.hero-insert {
  font-family: var(--hand);
  font-size: clamp(34px, 5.5vw, 52px);
  font-weight: 600;
  color: var(--burgundy);
  letter-spacing: -0.02em;
  transform: rotate(-5deg) translateY(2px);
  line-height: 1;
}

.hero-eyebrow {
  display: inline-block;
  font-family: var(--hand);
  font-size: 24px;
  color: var(--burgundy);
  transform: rotate(-2deg);
  margin: 0 0 18px;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 7vw, 68px);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.03;
}

.hero-lead {
  margin: 22px auto 0;
  max-width: 540px;
  font-size: clamp(18px, 2.5vw, 22px);
  color: var(--ink-muted);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.55;
}

.hero-actions {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.btn-enter {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 600;
  color: var(--burgundy);
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--burgundy-soft);
  border: 1px solid rgba(139, 21, 56, 0.12);
  box-shadow: none;
  transition: background 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-enter:hover {
  background: rgba(139, 21, 56, 0.16);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(139, 21, 56, 0.12);
}

.btn-enter:active {
  transform: translateY(0);
}

.btn-enter--hero {
  font-size: 18px;
  padding: 18px 42px;
  min-width: 240px;
  letter-spacing: -0.01em;
}

.btn-enter--ghost {
  margin-top: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(139, 21, 56, 0.2);
}

.btn-enter--ghost:hover {
  border-color: rgba(139, 21, 56, 0.35);
  background: var(--burgundy-soft);
}

.hero-note {
  margin: 0;
  font-size: 13px;
  color: var(--ink-soft);
}

/* —— Laptop animation —— */
.hero-visual {
  position: relative;
  width: 100%;
  max-width: 480px;
  margin-top: 56px;
  display: flex;
  justify-content: center;
  perspective: 1600px;
  transition: transform 0.2s ease-out;
}

.laptop-scene {
  position: relative;
  z-index: 2;
  width: min(440px, 94vw);
  opacity: 0;
  transform: translateY(56px) scale(0.82);
  transform-style: preserve-3d;
  animation:
    scene-rise 1.05s cubic-bezier(0.34, 1.45, 0.64, 1) 0.05s forwards,
    laptop-float 5.5s ease-in-out 3.4s infinite;
}

.laptop-glow {
  position: absolute;
  left: 50%;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 120%;
  height: 70%;
  background: radial-gradient(ellipse, rgba(139, 21, 56, 0.28) 0%, transparent 68%);
  filter: blur(28px);
  opacity: 0;
  animation:
    glow-pulse 1.6s ease 1.2s forwards,
    glow-breathe 3.2s ease-in-out 3.2s infinite;
  pointer-events: none;
  z-index: 0;
}

.laptop-shadow {
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) scaleX(0.2);
  width: 75%;
  height: 24px;
  background: radial-gradient(ellipse, rgba(0, 0, 0, 0.32) 0%, transparent 72%);
  filter: blur(8px);
  animation:
    shadow-grow 1.4s cubic-bezier(0.34, 1.2, 0.64, 1) 0.35s forwards,
    shadow-breathe 5.5s ease-in-out 3.4s infinite;
  z-index: 0;
}

.laptop {
  position: relative;
  transform-style: preserve-3d;
  z-index: 1;
  animation:
    laptop-settle 2.1s cubic-bezier(0.34, 1.25, 0.64, 1) 0.45s forwards,
    laptop-breathe 4.8s ease-in-out 3s infinite;
  transform: rotateX(12deg) rotateY(-8deg) translateY(16px);
}

.laptop-lid {
  transform-origin: 50% 100%;
  transform: rotateX(94deg);
  transform-style: preserve-3d;
  animation: laptop-open 2.2s cubic-bezier(0.34, 1.55, 0.64, 1) 0.55s forwards;
}

.laptop-bezel {
  background: linear-gradient(180deg, #2c2c2e 0%, #1d1d1f 100%);
  border-radius: 16px 16px 0 0;
  padding: 11px 11px 7px;
  transform: translateZ(1px);
  backface-visibility: visible;
  box-shadow:
    0 -1px 0 rgba(255, 255, 255, 0.08) inset,
    0 0 0 1px rgba(255, 255, 255, 0.04);
}

.laptop-display {
  background: linear-gradient(155deg, #ffffff 0%, #f4f4f6 45%, #ebebef 100%);
  border-radius: 7px;
  min-height: 248px;
  padding: 10px 10px 12px;
  position: relative;
  overflow: hidden;
  transform: translateZ(2px);
  backface-visibility: visible;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.04);
}

.laptop-display::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #fff 0%, #f0f0f5 100%);
  opacity: 1;
  z-index: 4;
  pointer-events: none;
  animation: display-boot 0.75s ease 0.85s forwards;
}

.laptop-display__content {
  position: relative;
  z-index: 2;
  transform: translateZ(3px);
  backface-visibility: visible;
}

.display-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    transparent 38%,
    rgba(255, 255, 255, 0.85) 50%,
    transparent 62%,
    transparent 100%
  );
  transform: translateX(-130%);
  animation: screen-shine-pass 1s ease 1.95s forwards, screen-shine-loop 5s ease-in-out 5.5s infinite;
  pointer-events: none;
  z-index: 3;
}

.display-bar {
  display: flex;
  gap: 5px;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.display-bar span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.4);
  animation: dot-pop 0.4s cubic-bezier(0.34, 1.6, 0.64, 1) backwards forwards;
}

.display-bar span:nth-child(1) { animation-delay: 1.05s; }
.display-bar span:nth-child(2) { animation-delay: 1.14s; }
.display-bar span:nth-child(3) { animation-delay: 1.23s; }

.display-bar span:first-child { background: #ff5f57; }
.display-bar span:nth-child(2) { background: #febc2e; }
.display-bar span:nth-child(3) { background: #28c840; }

/* Мини-интерфейс CRM на экране ноутбука */
.crm-mock {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 8px;
  min-height: 210px;
  border-radius: 6px;
  overflow: hidden;
  background: #f5f5f7;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  opacity: 0;
  transform: scale(0.96) translateY(6px);
  animation: crm-boot 0.65s cubic-bezier(0.34, 1.35, 0.64, 1) 1.72s forwards;
  position: relative;
  z-index: 2;
}

.crm-mock__sidebar {
  background: linear-gradient(180deg, #8b1538 0%, #6b0f2a 100%);
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.crm-mock__brand {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.22);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.15);
  margin-bottom: 4px;
}

.crm-mock__nav {
  width: 28px;
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
}

.crm-mock__nav--on {
  background: rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.35);
  animation: nav-pulse 3s ease-in-out 3.2s infinite;
}

.crm-mock__body {
  padding: 10px 10px 8px 2px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.crm-mock__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.crm-mock__heading {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
}

.crm-mock__chip {
  font-size: 7px;
  font-weight: 600;
  color: var(--burgundy);
  background: var(--burgundy-soft);
  padding: 3px 7px;
  border-radius: 999px;
}

.crm-mock__metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
}

.crm-mock__metric {
  background: #fff;
  border-radius: 6px;
  padding: 6px 5px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  opacity: 0;
  transform: translateY(8px) scale(0.92);
  animation: metric-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) backwards forwards;
}

.crm-mock__metric:nth-child(1) { animation-delay: 1.95s; }
.crm-mock__metric:nth-child(2) { animation-delay: 2.08s; }
.crm-mock__metric:nth-child(3) { animation-delay: 2.21s; }

.crm-mock__metric strong {
  display: block;
  font-size: 11px;
  line-height: 1.1;
  color: var(--ink);
}

.crm-mock__metric span {
  font-size: 6px;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.crm-mock__metric--warn strong { color: var(--burgundy); }
.crm-mock__metric--warn {
  background: rgba(139, 21, 56, 0.06);
  animation:
    metric-pop 0.5s cubic-bezier(0.34, 1.4, 0.64, 1) 2.08s backwards forwards,
    metric-warn-pulse 2.4s ease-in-out 3.2s infinite;
}
.crm-mock__metric--soft strong { color: var(--ink-muted); }

.crm-mock__table {
  background: #fff;
  border-radius: 6px;
  padding: 6px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 5px;
  flex: 1;
}

.crm-mock__row {
  display: grid;
  grid-template-columns: 8px 1fr 28px;
  align-items: center;
  gap: 6px;
  opacity: 0;
  animation: row-in 0.45s cubic-bezier(0.22, 1, 0.36, 1) backwards forwards;
}

.crm-mock__row--head {
  opacity: 0.35;
  animation: none;
}

.crm-mock__row--head span {
  height: 4px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.08);
}

.crm-mock__row--live { animation-delay: 2.32s; }
.crm-mock__row:nth-child(3) { animation-delay: 2.46s; }
.crm-mock__row:nth-child(4) { animation-delay: 2.58s; }

.crm-mock__row--live .crm-mock__dot {
  animation: dot-live 2s ease-in-out 3.1s infinite;
}

.crm-mock__row--live .crm-mock__badge {
  animation: badge-blink 2.8s ease-in-out 3.4s infinite;
}

.crm-mock__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.12);
}

.crm-mock__dot--muted {
  background: #c7c7cc;
  box-shadow: none;
}

.crm-mock__line {
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.07);
}

.crm-mock__line--long { width: 92%; }
.crm-mock__line--short { width: 58%; }

.crm-mock__badge {
  height: 5px;
  border-radius: 999px;
  background: rgba(139, 21, 56, 0.35);
}

.crm-mock__badge--muted {
  background: rgba(0, 0, 0, 0.08);
}

.display-scribble {
  position: absolute;
  bottom: 8px;
  right: 10px;
  font-family: var(--hand);
  font-size: 16px;
  color: var(--burgundy);
  opacity: 0;
  animation: fade-up 0.5s ease 2.85s forwards;
  z-index: 3;
}

.laptop-base {
  margin-top: 2px;
  padding: 12px 14px 16px;
  background: linear-gradient(180deg, #48484a 0%, #2c2c2e 30%, #1d1d1f 100%);
  border-radius: 0 0 16px 16px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.25);
  position: relative;
  z-index: 1;
  opacity: 0;
  transform: translateY(18px) scale(0.98);
  animation: base-slide 0.9s cubic-bezier(0.34, 1.35, 0.64, 1) 0.3s forwards;
}

.laptop-base::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 14%;
  height: 3px;
  background: #3a3a3c;
  border-radius: 0 0 3px 3px;
}

.laptop-keyboard {
  height: 10px;
  border-radius: 4px;
  background: repeating-linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.05) 0px,
    rgba(255, 255, 255, 0.05) 6px,
    transparent 6px,
    transparent 10px
  );
  background-size: 20px 100%;
  margin-bottom: 10px;
  animation: keyboard-flicker 5s ease-in-out 3.5s infinite;
}

.laptop-trackpad {
  width: 34%;
  height: 6px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 5px;
}

.hero-doodle {
  position: absolute;
  opacity: 0;
  animation: doodle-in 0.8s ease 2.5s forwards;
  pointer-events: none;
}

.hero-doodle--left {
  bottom: 20%;
  left: -8%;
  width: 72px;
}

.hero-doodle--right {
  top: 18%;
  right: -6%;
  width: 56px;
}

@keyframes scene-rise {
  0% {
    opacity: 0;
    transform: translateY(56px) scale(0.82);
  }
  72% {
    opacity: 1;
    transform: translateY(-10px) scale(1.025);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes laptop-float {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-11px) scale(1.008); }
}

@keyframes laptop-open {
  0% { transform: rotateX(94deg); }
  28% { transform: rotateX(-32deg); }
  42% { transform: rotateX(-8deg); }
  58% { transform: rotateX(-22deg); }
  72% { transform: rotateX(-13deg); }
  86% { transform: rotateX(-18deg); }
  100% { transform: rotateX(-16deg); }
}

@keyframes laptop-settle {
  0% { transform: rotateX(12deg) rotateY(-8deg) translateY(16px); }
  40% { transform: rotateX(1deg) rotateY(4deg) translateY(-6px); }
  62% { transform: rotateX(7deg) rotateY(-3deg) translateY(3px); }
  100% { transform: rotateX(4deg) rotateY(0deg) translateY(0); }
}

@keyframes laptop-breathe {
  0%, 100% { transform: rotateX(4deg) rotateY(0deg) translateY(0); }
  50% { transform: rotateX(2deg) rotateY(1.5deg) translateY(-5px); }
}

@keyframes base-slide {
  0% {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }
  70% {
    opacity: 1;
    transform: translateY(-3px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shadow-grow {
  0% { transform: translateX(-50%) scaleX(0.2); opacity: 0.3; }
  70% { transform: translateX(-50%) scaleX(1.08); opacity: 1; }
  100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
}

@keyframes shadow-breathe {
  0%, 100% { transform: translateX(-50%) scaleX(1); opacity: 1; }
  50% { transform: translateX(-50%) scaleX(0.92); opacity: 0.75; }
}

@keyframes glow-pulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.7); }
  45% { opacity: 1; transform: translate(-50%, -50%) scale(1.12); }
  100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
}

@keyframes glow-breathe {
  0%, 100% { opacity: 0.65; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.95; transform: translate(-50%, -50%) scale(1.1); }
}

@keyframes display-boot {
  0% { opacity: 1; visibility: visible; }
  55% { opacity: 1; visibility: visible; }
  99% { opacity: 0; visibility: visible; }
  100% { opacity: 0; visibility: hidden; }
}

@keyframes screen-shine-pass {
  to { transform: translateX(140%); }
}

@keyframes screen-shine-loop {
  0%, 78% { transform: translateX(-130%); opacity: 0; }
  82% { opacity: 1; }
  92% { transform: translateX(140%); opacity: 1; }
  96%, 100% { transform: translateX(140%); opacity: 0; }
}

@keyframes dot-pop {
  to { opacity: 1; transform: scale(1); }
}

@keyframes crm-boot {
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

@keyframes metric-pop {
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes metric-warn-pulse {
  0%, 100% { box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
  50% { box-shadow: 0 0 0 2px rgba(139, 21, 56, 0.18); }
}

@keyframes nav-pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 10px rgba(255, 255, 255, 0.35); }
  50% { opacity: 0.75; box-shadow: 0 0 16px rgba(255, 255, 255, 0.55); }
}

@keyframes dot-live {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 3px rgba(139, 21, 56, 0.12); }
  50% { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(139, 21, 56, 0.22); }
}

@keyframes badge-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

@keyframes keyboard-flicker {
  0%, 100% { background-position: 0 0; opacity: 1; }
  8% { background-position: 6px 0; opacity: 0.9; }
  16% { background-position: 0 0; opacity: 1; }
  42% { background-position: -4px 0; opacity: 0.88; }
  50% { background-position: 0 0; opacity: 1; }
}

@keyframes row-in {
  from { opacity: 0; transform: translateX(-16px) scaleX(0.6); }
  to { opacity: 1; transform: translateX(0) scaleX(1); }
}

@keyframes cursor-blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes doodle-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* —— Cards —— */
.section {
  padding: 56px 0;
}

.section-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 14px;
}

.section h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  letter-spacing: -0.03em;
  font-weight: 700;
}

.section-intro {
  margin: 0;
  color: var(--ink-muted);
  font-size: 18px;
  max-width: 680px;
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* —— О нас: хаотичная доска —— */
.about-board {
  position: relative;
  min-height: 620px;
  margin-top: 52px;
  padding: 16px 0 44px;
}

.about-board__desk {
  position: absolute;
  inset: 6% 2% 4%;
  border-radius: 6px;
  background:
    repeating-linear-gradient(
      -12deg,
      transparent,
      transparent 28px,
      rgba(139, 21, 56, 0.025) 28px,
      rgba(139, 21, 56, 0.025) 29px
    ),
    rgba(255, 255, 255, 0.35);
  border: 1px dashed rgba(0, 0, 0, 0.07);
  transform: rotate(-1.2deg);
  pointer-events: none;
}

.about-note {
  --note-tilt: 0deg;
  position: relative;
  z-index: 2;
  padding: 28px 30px 32px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    2px 6px 0 rgba(0, 0, 0, 0.03),
    0 16px 36px rgba(0, 0, 0, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease, z-index 0s;
}

.about-note--tape::before {
  content: '';
  position: absolute;
  top: -9px;
  width: 54px;
  height: 20px;
  background: rgba(255, 228, 170, 0.72);
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  pointer-events: none;
}

.about-note--lead {
  --note-tilt: -1.8deg;
  width: min(94%, 900px);
  margin: 0 auto;
  padding: 36px 38px 40px;
  border-radius: 3px 16px 14px 4px;
  transform: rotate(var(--note-tilt));
  z-index: 4;
}

.about-note--lead.about-note--tape::before {
  left: 38px;
  transform: rotate(-10deg);
}

.about-note--a {
  --note-tilt: -3.2deg;
  position: absolute;
  left: 0;
  top: 34%;
  width: min(52%, 440px);
  border-radius: 2px 14px 14px 2px;
  transform: rotate(var(--note-tilt));
  z-index: 3;
}

.about-note--lined {
  background:
    repeating-linear-gradient(
      transparent,
      transparent 31px,
      rgba(139, 21, 56, 0.07) 31px,
      rgba(139, 21, 56, 0.07) 32px
    ),
    #fff;
  padding-top: 30px;
}

.about-note--b {
  --note-tilt: 2.6deg;
  position: absolute;
  right: 0;
  top: 26%;
  width: min(50%, 420px);
  border-radius: 14px 3px 12px 14px;
  transform: rotate(var(--note-tilt));
  z-index: 5;
}

.about-note--sticky {
  background: linear-gradient(165deg, #fff9c4 0%, #fff3a0 100%);
  border-color: rgba(180, 150, 0, 0.15);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.5) inset,
    2px 5px 0 rgba(180, 150, 0, 0.08),
    0 16px 28px rgba(0, 0, 0, 0.08);
}

.about-note--c {
  --note-tilt: 1.4deg;
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(52%, 440px);
  border-radius: 12px 12px 3px 16px;
  transform: rotate(var(--note-tilt));
  z-index: 3;
  padding-right: 48px;
}

.about-note--c.about-note--tape::before {
  right: 42px;
  left: auto;
  transform: rotate(7deg);
}

.about-note--d {
  --note-tilt: -2.2deg;
  position: absolute;
  right: 0;
  bottom: 8%;
  width: min(48%, 400px);
  border-radius: 14px 4px 14px 14px;
  transform: rotate(var(--note-tilt));
  z-index: 4;
  padding-right: 48px;
}

.about-note--vk {
  background: linear-gradient(165deg, #f5f9ff 0%, #eef4fc 100%);
  border-color: rgba(0, 119, 255, 0.14);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    2px 6px 0 rgba(0, 119, 255, 0.06),
    0 16px 36px rgba(0, 119, 255, 0.08);
}

.about-tag--vk {
  color: #0077ff;
}

.about-vk-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: #0077ff;
  letter-spacing: -0.01em;
  border-bottom: 1px solid rgba(0, 119, 255, 0.25);
  transition: border-color 0.2s, opacity 0.2s;
}

.about-vk-link:hover {
  border-color: #0077ff;
  opacity: 0.85;
}

.about-note:hover {
  transform: rotate(var(--note-tilt)) translateY(-5px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    2px 8px 0 rgba(0, 0, 0, 0.04),
    0 22px 40px rgba(0, 0, 0, 0.1);
  z-index: 8;
}

.about-pin {
  position: absolute;
  top: 14px;
  right: 22px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--burgundy);
  box-shadow: 0 2px 6px rgba(139, 21, 56, 0.35);
}

.about-pin::after {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  width: 1px;
  height: 14px;
  background: rgba(139, 21, 56, 0.25);
  transform: translateX(-50%);
}

.about-lead {
  margin: 0;
  font-size: clamp(22px, 2.8vw, 30px);
  line-height: 1.5;
  letter-spacing: -0.025em;
  font-weight: 600;
  color: var(--ink);
  max-width: 820px;
}

.about-tag {
  display: inline-block;
  margin-bottom: 12px;
  font-family: var(--hand);
  font-size: 32px;
  color: var(--burgundy);
  transform: rotate(-3deg);
  line-height: 1;
}

.about-note p {
  margin: 0;
  font-size: 17px;
  line-height: 1.72;
  color: #48484a;
  letter-spacing: -0.008em;
}

.about-margin-note {
  position: absolute;
  right: -4px;
  bottom: 20px;
  font-family: var(--hand);
  font-size: 26px;
  color: var(--burgundy);
  opacity: 0.55;
  transform: rotate(8deg);
  pointer-events: none;
}

.about-margin-note--small {
  font-size: 18px;
  right: 12px;
  bottom: 10px;
  transform: rotate(-6deg);
}

.section-intro--center {
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

/* —— Promo cards (images in a row) —— */
.section--promo {
  padding-top: 32px;
}

.shell--promo {
  width: min(1240px, calc(100% - 40px));
}

.promo-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
  margin-top: 36px;
}

.promo-pic {
  display: block;
  border-radius: 14px;
  overflow: hidden;
  line-height: 0;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.promo-pic:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(139, 21, 56, 0.12);
}

.promo-pic img {
  width: 100%;
  height: auto;
  display: block;
}

/* —— Mystery —— */
.mystery {
  margin: 24px 0 0;
  padding: 44px 40px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 0% 100%, rgba(139, 21, 56, 0.06), transparent 50%),
    rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--line);
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 32px;
  align-items: center;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.04);
}

.mystery-copy h2 {
  font-size: clamp(26px, 3.5vw, 36px);
  margin: 0 0 14px;
}

.mystery-copy p {
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 1.6;
  max-width: 440px;
}

.mystery-hand {
  font-family: var(--hand);
  font-size: 26px;
  color: var(--burgundy);
  margin: 14px 0 0;
  transform: rotate(-1.5deg);
}

.lock-scene {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.lock-scene svg {
  width: 120px;
  position: relative;
  z-index: 1;
  animation: lock-glow 3s ease-in-out infinite;
}

.lock-ring {
  position: absolute;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px dashed rgba(139, 21, 56, 0.2);
  animation: spin-slow 20s linear infinite;
}

.lock-scribble {
  position: absolute;
  bottom: 10px;
  right: 20%;
  font-family: var(--hand);
  font-size: 22px;
  color: var(--burgundy);
  opacity: 0.6;
}

@keyframes lock-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 8px 20px rgba(139, 21, 56, 0.15)); }
}

@keyframes spin-slow {
  to { transform: rotate(360deg); }
}

/* —— Roadmap (bottom block) —— */
.roadmap {
  margin-top: 48px;
  padding: 36px 32px 28px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.04);
}

.roadmap-title {
  margin: 0 0 32px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
}

.roadmap-track {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.roadmap-step {
  flex: 1;
  text-align: center;
  padding: 0 12px;
}

.roadmap-dot {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: #f5f5f7;
  border: 2px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}

.roadmap-dot span {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-muted);
}

.roadmap-dot--active {
  background: linear-gradient(135deg, var(--burgundy), var(--burgundy-light));
  border-color: transparent;
  box-shadow: 0 8px 24px rgba(139, 21, 56, 0.3);
}

.roadmap-dot--active span {
  color: #fff;
}

.roadmap-step:hover .roadmap-dot:not(.roadmap-dot--active) {
  transform: scale(1.06);
  border-color: rgba(139, 21, 56, 0.25);
}

.roadmap-step strong {
  display: block;
  font-size: 16px;
  margin-bottom: 8px;
  letter-spacing: -0.02em;
}

.roadmap-step p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.roadmap-line {
  flex: 0 0 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--line), rgba(139, 21, 56, 0.15), var(--line));
  margin-top: 26px;
}

.roadmap-foot {
  margin: 28px 0 0;
  text-align: center;
  font-family: var(--hand);
  font-size: 20px;
  color: var(--ink-soft);
}

/* —— Footer —— */
.footer {
  padding: 40px 0 52px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  color: var(--ink-soft);
  font-size: 13px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer a {
  color: var(--burgundy);
  font-weight: 600;
  transition: opacity 0.2s;
}

.footer a:hover {
  opacity: 0.75;
}

/* —— Responsive —— */
@media (max-width: 860px) {
  .doodle-float {
    opacity: 0.35;
    animation: none;
  }

  .legal-doodle {
    opacity: 0.4;
    animation: none;
  }

  .legal-doodle--gavel,
  .legal-doodle--scales {
    width: 38px;
  }

  .legal-doodle--folder,
  .legal-doodle--doc {
    width: 34px;
  }

  .hero-visual {
    margin-top: 40px;
  }

  .hero-doodle {
    display: none;
  }

  .hero-insert {
    font-size: clamp(28px, 7vw, 38px);
  }

  .btn-enter--hero {
    font-size: 17px;
    padding: 16px 32px;
    min-width: 210px;
  }

  .about-board {
    min-height: 0;
    padding-bottom: 0;
  }

  .about-board__desk {
    display: none;
  }

  .about-note--lead,
  .about-note--a,
  .about-note--b,
  .about-note--c,
  .about-note--d {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    width: auto;
    margin: 0 0 18px;
  }

  .about-note--c,
  .about-note--d {
    margin-left: 0;
  }

  .about-margin-note {
    right: 8px;
  }

  .promo-row {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 14px;
    padding-bottom: 10px;
    -webkit-overflow-scrolling: touch;
  }

  .promo-pic {
    flex: 0 0 min(78vw, 340px);
    scroll-snap-align: center;
  }

  .promo-pic:hover {
    transform: none;
  }

  .mystery {
    grid-template-columns: 1fr;
    padding: 32px 24px;
  }

  .roadmap-track {
    flex-direction: column;
    align-items: stretch;
    gap: 24px;
  }

  .roadmap-line {
    width: 2px;
    height: 24px;
    flex: none;
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .laptop-scene { animation: none; opacity: 1; transform: none; }
  .laptop-lid { animation: none; transform: rotateX(-16deg); }
  .laptop {
    animation: none;
    transform: rotateX(4deg) rotateY(0deg);
  }
  .laptop-base { animation: none; opacity: 1; transform: none; }
  .laptop-glow, .laptop-shadow, .display-shine { animation: none; opacity: 0; }
  .laptop-display::after { animation: none; opacity: 0; }
  .display-bar span { animation: none; opacity: 1; transform: none; }
  .laptop-keyboard { animation: none; }
  .crm-mock__nav--on, .crm-mock__metric--warn, .crm-mock__row--live .crm-mock__dot,
  .crm-mock__row--live .crm-mock__badge { animation: none; }
  .display-scribble, .crm-mock, .crm-mock__metric, .crm-mock__row, .doodle-float, .legal-doodle { animation: none; opacity: 1; }
  .crm-mock__row--head { opacity: 0.35; }
  .display-bar span { opacity: 1; transform: none; }
  .page-bg__liquid { animation: none; }
  .about-note:hover { transform: none; }
  .promo-pic:hover { transform: none; }
  .lock-ring { animation: none; }
}
