.home-hero .spros-hero-demo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 55px;
  padding-inline: 39px;
  border-radius: 999px;
  background: #fff;
  color: #1c1916;
  font-size: 18px;
  font-weight: 500;
  text-decoration: none;
}

.home-hero .spros-hero-demo-link:hover { background: #c9ff51; }

@media (max-width: 639px) {
  .home-hero .spros-hero-demo-link { min-height: 52px; min-width: 220px; font-size: 16px; }
}

@media (prefers-reduced-motion: no-preference) {
  .home-hero .spros-hero-demo-link { transition: background-color 180ms ease; }
}

.spros-header + main .home-hero:has(.spros-hero-phone) {
  height: auto;
  min-height: calc(100svh - 70px);
  padding-bottom: 26px;
}

.home-hero .spros-hero-phone {
  position: relative;
  z-index: 0;
  width: clamp(220px, 18vw, 238px);
  aspect-ratio: 10 / 21;
  margin: clamp(42px, 4vw, 54px) auto 0;
  padding: 6px;
  border: 1px solid #81827d;
  border-radius: 36px;
  background: linear-gradient(160deg, #666965, #252925 18%, #101210 68%, #555751);
  box-shadow: 0 0 0 1px #171917, 0 22px 42px #0005;
}

.spros-hero-phone::before,
.spros-hero-phone::after {
  position: absolute;
  width: 2px;
  border-radius: 1px;
  background: #63655f;
  content: "";
}
.spros-hero-phone::before {
  left: -3px;
  top: 94px;
  height: 26px;
  box-shadow: 0 34px #63655f;
}
.spros-hero-phone::after { right: -3px; top: 112px; height: 46px; }

.spros-phone-screen {
  position: relative;
  display: grid;
  grid-template-rows: 29px minmax(0, 1fr) 14px;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 1px solid #080908;
  border-radius: 30px;
  background: #141414;
  color: #fff;
}

.spros-phone-status {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 15px;
  font-size: 10px;
  font-weight: 600;
}
.spros-phone-camera {
  position: absolute;
  top: 6px;
  left: 50%;
  width: 54px;
  height: 15px;
  transform: translateX(-50%);
  border: 1px solid #232323;
  border-radius: 12px;
  background: #060606;
}
.spros-phone-camera::after {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #1e2630;
  content: "";
}
.spros-phone-battery {
  width: 15px;
  height: 8px;
  border: 1px solid #fff8;
  border-radius: 2px;
  background: #f8f8f8 content-box;
  padding: 1px;
}
.spros-phone-screen img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.spros-phone-bottom { display: grid; place-items: center; }
.spros-phone-bottom::before {
  width: 34%;
  height: 3px;
  border-radius: 2px;
  background: #e9e9e9;
  content: "";
}

@media (max-width: 639px) {
  .home-hero .spros-hero-phone {
    width: clamp(188px, 53vw, 228px);
    margin-top: 36px;
    padding: 5px;
    border-radius: 31px;
  }
  .spros-phone-screen {
    grid-template-rows: 26px minmax(0, 1fr) 12px;
    border-radius: 26px;
  }
}

.spros-phone-mist {
  position: absolute;
  z-index: 1;
  top: 100%;
  left: 50%;
  width: min(760px, calc(100vw - 20px));
  aspect-ratio: 855 / 247;
  transform: translate(-50%, -57%);
  background: url("/seller-assets/20261126-r2/images/home/hero/phone-fade.svg") center / 100% 100% no-repeat;
  pointer-events: none;
}

.home-hero .spros-hero-stage {
  position: relative;
  display: grid;
  grid-template-areas: "problems phone solution";
  grid-template-columns: minmax(0, 408px) auto minmax(0, 408px);
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3.5vw, 54px);
  width: min(100% - 40px, 1160px);
  margin: clamp(42px, 4vw, 54px) auto 0;
}

.home-hero .spros-hero-stage .spros-hero-phone { grid-area: phone; margin: 0; }

.spros-hero-group {
  position: relative;
  z-index: 1;
  min-width: 0;
  container-type: inline-size;
  --group-head: 56px;
  --group-gap: 14px;
  --orb-size: 50cqw;
  --orb-y: calc(var(--group-head) + var(--group-gap) / 2);
  --spros-card-halo: #738f32;
  --spros-card-rim: #b6cf75;
}
.spros-hero-problems { grid-area: problems; }
.spros-hero-solution { grid-area: solution; --spros-card-halo: #87ac35; --spros-card-rim: #dcff95; }
.spros-hero-group-label {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: var(--group-head);
  margin: 0 0 var(--group-gap);
  padding: 0 14px;
  border: 1px solid #d5f08630;
  border-radius: 18px;
  background: #000;
  color: #fff;
  font-size: clamp(16px, 1.28vw, 20px);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.spros-hero-brands, .spros-brand-messenger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.spros-brand-ozon, .spros-brand-wb { font-size: 15px; font-weight: 700; }
.spros-brand-ozon { color: #367eff; }
.spros-brand-wb { color: #e050d7; }
.spros-brand-messenger img { width: 19px; height: 19px; }
.spros-hero-cards { display: grid; gap: var(--group-gap); align-items: start; }

.spros-hero-panel, .spros-evidence-art {
  --float-x: .25px;
  --float-y: 1.5px;
  --phase: 0s;
}
.spros-evidence-art {
  --spros-card-halo: #738f32;
  --spros-card-rim: #b6cf75;
}
.spros-hero-panel {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-rows: auto 1fr;
  min-width: 0;
  min-height: 158px;
  padding: 14px 14px 4px;
  overflow: hidden;
  border: 1px solid #d5f08630;
  border-radius: 22px;
  background: #000;
  box-shadow: inset 0 0 0 1px #c9ff5115, 0 0 9px #c9ff510b;
  color: #fff;
}
/* Each clipped window samples one sphere, centered in the gap below the label. */
.spros-hero-group-label::before, .spros-hero-panel::before {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
  width: var(--orb-size);
  aspect-ratio: 1;
  left: 50%;
  top: var(--orb-y);
  transform: translate(-50%, -50%);
}
.spros-hero-panel::before { top: calc(-.5 * var(--group-gap) - var(--stagger, 0px)); }
.spros-hero-panel:nth-child(2) { --phase: -10s; }
.spros-hero-group-label::before, .spros-hero-panel::before, .spros-evidence-art::before {
  border-radius: 50%;
  background: radial-gradient(circle at 55% 78%, #070b02 30%, #263309 82%, var(--spros-card-halo) 100%);
  box-shadow:
    inset 0 2px 5px var(--spros-card-rim),
    inset 0 9px 22px var(--spros-card-halo),
    0 0 17px color-mix(in srgb, var(--spros-card-halo) 72%, transparent);
}

.spros-hero-panel h2 {
  position: relative;
  z-index: 1;
  min-height: 2.25em;
  margin: 0;
  color: #fff;
  font-size: clamp(15px, 1.45vw, 20px);
  font-weight: 550;
  line-height: 1.12;
  letter-spacing: -.027em;
  text-wrap: balance;
}

.spros-hero-panel img {
  display: block;
  align-self: end;
  width: 100%;
  height: clamp(78px, 8vw, 118px);
  object-fit: contain;
  object-position: center;
}

@media (min-width: 1024px) {
  .spros-hero-group { transform: translateY(24px); }
  .spros-hero-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .spros-hero-panel { min-height: 178px; }
  .spros-hero-panel:first-child::before { left: calc(100% + var(--group-gap) / 2 + 1px); }
  .spros-hero-panel:nth-child(2)::before { left: calc(0px - var(--group-gap) / 2 - 1px); }
  .spros-hero-problems .spros-hero-panel:first-child,
  .spros-hero-solution .spros-hero-panel:last-child { --stagger: 9px; margin-top: var(--stagger); }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .spros-hero-group-label { padding-inline: 9px; gap: 4px; }
  .spros-brand-wb, .spros-brand-ozon { font-size: 13px; }
}
@media (max-width: 1023px) {
  .spros-hero-group { --group-head: 64px; --group-gap: 9px; --orb-size: 56cqw; }
  .spros-hero-group-label { flex-direction: column; align-items: flex-start; justify-content: center; padding: 8px 10px; gap: 4px; }
  .spros-hero-panel:nth-child(2)::before { display: none; }
}
@media (min-width: 640px) and (max-width: 1023px) {
  .spros-hero-group { width: min(100%, 205px); transform: translateY(25px); }
  .spros-hero-problems { justify-self: end; }
}

@media (max-width: 639px) {
  .home-hero .spros-hero-stage {
    grid-template-areas: "problems solution" "phone phone";
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
    gap: 22px 10px;
    width: min(100% - 32px, 382px);
    margin-top: 24px;
  }
  .home-hero .spros-hero-stage .spros-hero-phone { justify-self: center; }
  .spros-hero-group { --group-gap: 8px; --orb-size: 144cqw; --mobile-orb-x: calc(100% + 8cqw); }
  .spros-hero-problems { --mobile-orb-x: -8cqw; }
  .spros-hero-group-label { margin-bottom: 12px; }
  .spros-hero-group-label::before { content: none; }
  /* Both cards show the same sphere at the outer edge of their column. */
  .spros-hero-panel::before {
    left: var(--mobile-orb-x);
    top: calc(100% + var(--group-gap) / 2 + 1px);
  }
  .spros-hero-panel:nth-child(2)::before {
    display: block;
    top: calc(0px - var(--group-gap) / 2 - 1px);
  }
  .spros-hero-brands, .spros-brand-messenger, .spros-brand-wb, .spros-brand-ozon { font-size: 12px; }
  .spros-brand-messenger img { width: 16px; height: 16px; }
  .spros-hero-panel, .spros-evidence-art { --float-y: 1px; }
  .spros-hero-panel { min-height: 128px; padding: 10px 10px 3px; }
  .spros-hero-panel h2 { font-size: clamp(13px, 4.1vw, 16px); }
  .spros-hero-panel img { height: clamp(74px, 21vw, 85px); }
}

@media (prefers-reduced-motion: no-preference) {
  .spros-hero-panel,
  .spros-evidence-art::before,
  .spros-hero-panel::before {
    animation: spros-hero-drift 10s ease-in-out var(--phase) infinite alternate;
  }
  .spros-hero-panel::before { animation-name: spros-hero-counter-drift; }
  @keyframes spros-hero-drift {
    from { translate: calc(-1 * var(--float-x)) calc(-1 * var(--float-y)); }
    to { translate: var(--float-x) var(--float-y); }
  }
  @keyframes spros-hero-counter-drift {
    from { translate: var(--float-x) var(--float-y); }
    to { translate: calc(-1 * var(--float-x)) calc(-1 * var(--float-y)); }
  }
}
