/* Ритм разделов страницы РВДБС: 110 px с каждой стороны. */
@media (min-width: 1024px) {
  #root main > .flex-1 > section:not(:first-child),
  #root main > .flex-1 > div > section {
    padding-top: 110px !important;
    padding-bottom: 110px !important;
  }
}

/* Align the hero header with the main page's banner insets. */
#root main > div.relative:first-child > div.absolute {
  top: 56px;
  right: 32px;
  left: 32px;
  padding: 0;
}

@media (min-width: 768px) {
  #root main > div.relative:first-child > div.absolute {
    top: calc(clamp(16px, 3vw, 40px) + 40px);
    right: calc(clamp(16px, 3vw, 40px) + 40px);
    left: calc(clamp(16px, 3vw, 40px) + 40px);
  }
}

@media (min-width: 1200px) {
  #root main > div.relative:first-child > div.absolute {
    top: 80px;
    right: max(80px, calc((100vw - 1920px) / 2 + 40px));
    left: max(80px, calc((100vw - 1920px) / 2 + 40px));
  }
}

/* Use the same hero banner frame as the main page. */
#root main > .flex-1 > section:first-child {
  box-sizing: border-box;
  width: calc(100% - 32px);
  max-width: none;
  margin: 40px auto 0;
  border-radius: 2rem;
}

@media (min-width: 640px) {
  #root main > .flex-1 > section:first-child {
    width: calc(100% - 48px);
    border-radius: 2.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  #root main > .flex-1 > section:first-child {
    min-height: clamp(520px, 68vh, 680px);
  }
}

@media (min-width: 1024px) {
  #root main > .flex-1 > section:first-child {
    width: calc(100% - 80px);
    height: 880px;
    min-height: 880px;
    border-radius: 3.5rem;
  }

  #root main > .flex-1 > section:first-child > .relative.z-10 {
    box-sizing: border-box;
    min-height: 100%;
  }
}

/* Keep the presentation action directly below the hero description. */
#root main > .flex-1 > section:first-child > .relative.z-10 {
  justify-content: flex-start;
}

#root main > .flex-1 > section:first-child > .relative.z-10 > .flex {
  justify-content: flex-start;
  margin-top: 32px;
  margin-right: 0;
}

/* Match the presentation button fill to the heading accent. */
#root main > .flex-1 > section:first-child a[href="/files/rvdbs-presentation.pdf"] {
  background: #6b8eaa !important;
  color: #fff !important;
}

/* Render content immediately, including the initial HTML snapshot. */
#root main div[style*="opacity"]:not([data-rvdbs-sticky]):not([data-rvdbs-feature-media]):not(#video div.absolute):not(#pain .grid > div > div),
#root main section[style*="opacity"],
#root main span.contents[style*="opacity"],
#root main > .flex-1 > section:first-child a[style*="opacity"] {
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

#root main *,
#root main *::before,
#root main *::after {
  animation: none !important;
}

#root main div[style*="opacity"]:not([data-rvdbs-sticky]):not([data-rvdbs-feature-media]):not(#video div.absolute):not(#pain .grid > div > div),
#root main section[style*="opacity"],
#root main > .flex-1 > section:first-child * {
  transition: none !important;
}

/* The well marker travels from the bottom endpoint to the surface. */
@keyframes rvdbs-well-marker-up {
  from { offset-distance: 100%; }
  to { offset-distance: 0%; }
}

#root main > .flex-1 > section:first-child circle[filter="url(#wellGlow)"] {
  animation: rvdbs-well-marker-up 4.5s ease-in-out infinite !important;
}

/* Decorative circles extend beyond the SVG viewport; keep their edges round. */
#root main > .flex-1 > section:first-child svg[viewBox="0 0 600 420"] {
  overflow: visible;
}

/* Match the other product pages' fixed-header frame. */
#root main [data-rvdbs-sticky] {
  left: 32px;
  right: 32px;
}

@media (min-width: 768px) {
  #root main [data-rvdbs-sticky] {
    left: 40px;
    right: 40px;
  }
}

/* Align every content section and the footer with the fixed header. */
#root main > .flex-1 > :not(:first-child) [class~="max-w-[1800px]"],
#root main > footer [class~="max-w-[1800px]"] {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  padding-left: 32px;
  padding-right: 32px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 768px) {
  #root main > .flex-1 > :not(:first-child) [class~="max-w-[1800px]"],
  #root main > footer [class~="max-w-[1800px]"] {
    padding-left: 40px;
    padding-right: 40px;
  }
}

/* Economic cards use one title and description in normal document flow. */
#root #economic .cursor-default > h3 {
  display: none;
}

#root #economic .cursor-default > div.absolute {
  position: static;
  padding: 0;
  margin-top: 12px;
  opacity: 1 !important;
  transform: none !important;
  filter: none !important;
}

#root #economic .cursor-default {
  min-width: 0;
}

/* Alternate the audience cards between teal and light gray. */
#root #business .grid > div:nth-child(2),
#root #business .grid > div:nth-child(4) {
  background-color: #f7f8fc !important;
}

/* Match the about-page practical-effect cards without fighting motion transforms. */
#root #business .grid > div {
  transform: translateY(0) !important;
  transition: transform .22s ease, box-shadow .22s ease !important;
}
#root #business .grid > div:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 22px 50px rgba(20,34,30,.11);
}


/* Temporarily hide examples and their navigation entry. */
#root #video,
#root a[href="#video"] { display: none !important; }

/* Separate the problem description from its consequence in hover cards. */
#root #pain .grid > div > p > span {
  white-space: normal;
}

#root #pain .grid > div > p strong::before {
  content: "";
  display: block;
  height: 1px;
  margin: 10px 0;
  background-color: hsl(var(--primary) / 0.45);
}

/* Remove the selected outer section decorations. */
#root #pain > svg.absolute.bottom-0.right-0,
#root #pain > .contents > svg.absolute.bottom-0.right-0,
#root #price > svg.absolute.top-0.right-0,
#root #price > .contents > svg.absolute.top-0.right-0,
#root #demo > svg.absolute.bottom-0.right-0,
#root #demo > .contents > svg.absolute.bottom-0.right-0 {
  display: none;
}

/* Remove the selected feature, industrial-use, and payback illustrations. */
#root #features > svg.absolute.bottom-0.left-0,
#root #features > .contents > svg.absolute.bottom-0.left-0,
#root #pain ~ #pain .flex-shrink-0 > div.absolute.bottom-0.right-0,
#root #economic .flex-shrink-0 > div.absolute.bottom-0.right-0 {
  display: none;
}

/* Match the home page's scroll-to-top position and arrow typography. */
#root main > button[aria-label="Наверх"] {
  right: 40px !important;
  bottom: 40px;
  width: 70px;
  height: 70px;
  padding: 0 0 2px;
  font-family: inherit;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
}

@media (max-width: 767px) {
  #root main > button[aria-label="Наверх"] {
    right: 16px !important;
    bottom: 16px;
    width: 52px !important;
    height: 52px !important;
    font-size: 24px;
  }
}

/* Use the available media area without enlarging beyond source resolution. */
#root #features img[src*="/rvdbs-features/"] {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

#root #features .w-1\/2.pr-8 {
  padding-right: 16px;
}

#root #features div.relative:has(> img[src*="/rvdbs-features/"] + img[src*="/rvdbs-features/"]) {
  flex-direction: column;
  gap: 16px;
}

#root #features div.relative > img[src*="/rvdbs-features/"]:first-child:nth-last-child(2),
#root #features div.relative > img[src*="/rvdbs-features/"]:last-child:nth-child(2) {
  position: static;
  flex: 0 1 auto;
  min-height: 0;
  max-width: 100%;
  max-height: calc(50% - 8px);
}

/* Keep screenshots cleanly clipped to their rounded image boundaries. */
#root #features img[src*="/rvdbs-features/"] {
  border-radius: 16px;
  box-shadow: none !important;
  filter: none;
  clip-path: inset(4px 8px 8px 4px round 16px);
}


/* Crossfade in a fixed layer so outgoing and incoming images cannot move. */
#root #features [data-rvdbs-feature-media] {
  position: absolute;
  inset: 0;
  margin: auto;
  max-height: 100%;
  animation: none !important;
}

/* Soft shadow follows the rounded, cropped screenshot edges. */
#root #features img[src*="/rvdbs-features/"] {
  outline: none;
  filter: none;
}

#root #features div:has(> img[src*="/rvdbs-features/"] ) {
  filter: drop-shadow(0 4px 10px rgba(27, 50, 42, 0.14));
}

/* The enlarged reporting image and its shadow extend beyond the carousel row. */
#root #features .flex.items-stretch.overflow-hidden:has(img[src*="/rvdbs-features/industry-reporting.png"]),
#root #features .w-full.overflow-hidden:has(img[src*="/rvdbs-features/industry-reporting.png"]) {
  overflow: visible;
}

/* Size the import/export screenshot proportionally to 850 px. */
#root #features img[src*="/rvdbs-features/import-export.png"] {
  width: 850px;
  height: auto;
  max-width: 100%;
}

@media (min-width: 1024px) {
  #root #features .flex.items-stretch > .w-1\/2:first-child {
    width: min(866px, calc(100% - 360px));
    flex-shrink: 0;
  }

  #root #features .flex.items-stretch > .w-1\/2:last-child {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
  }
}

/* Reports: larger screenshots arranged as a diagonal overlapping pair. */
#root #features div.relative:has(> img[src*="/rvdbs-features/reports-1.png"]) {
  display: block;
}

#root #features div.relative > img[src*="/rvdbs-features/reports-1.png"]:first-child:nth-last-child(2),
#root #features div.relative > img[src*="/rvdbs-features/reports-2.png"]:last-child:nth-child(2) {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 76%;
}

#root #features div.relative > img[src*="/rvdbs-features/reports-1.png"]:first-child:nth-last-child(2) {
  top: -55px !important;
  left: 0 !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 1;
}

#root #features div.relative > img[src*="/rvdbs-features/reports-2.png"]:last-child:nth-child(2) {
  bottom: -40px !important;
  max-width: 70%;
  max-height: 68%;
  right: 0 !important;
  top: auto !important;
  left: auto !important;
  z-index: 2;
}

/* Risk control: larger screenshots overlapping diagonally. */
#root #features div.relative:has(> img[src*="/rvdbs-features/risk-control-1.png"]) {
  display: block;
}

#root #features div.relative > img[src*="/rvdbs-features/risk-control-1.png"]:first-child:nth-last-child(2),
#root #features div.relative > img[src*="/rvdbs-features/risk-control-2.png"]:last-child:nth-child(2) {
  position: absolute;
  width: auto;
  height: auto;
  max-width: 78%;
  max-height: 76%;
}

#root #features div.relative > img[src*="/rvdbs-features/risk-control-1.png"]:first-child:nth-last-child(2) {
  top: -55px !important;
  left: 0 !important;
  bottom: auto !important;
  right: auto !important;
  z-index: 1;
}

#root #features div.relative > img[src*="/rvdbs-features/risk-control-2.png"]:last-child:nth-child(2) {
  bottom: -45px !important;
  right: 0 !important;
  top: auto !important;
  left: auto !important;
  z-index: 2;
}

/* Space between the hero banner and the problems heading. */
#root main > .flex-1 > section:first-child + section#pain {
  padding-top: 240px !important;
}

/* Pricing: primary license on the left, additional services stacked on the right. */
#root #price .grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-areas: "license migration" "license support";
  gap: 20px;
  align-items: stretch;
}
#root #price .grid > div { min-width: 0; }
#root #price .grid > div:nth-child(1) { grid-area: migration; }
#root #price .grid > div:nth-child(2) { grid-area: license; }
#root #price .grid > div:nth-child(3) { grid-area: support; }
#root #price .grid > div > div {
  border-radius: 24px;
  padding: 26px;
  border: 1px solid rgba(107, 142, 170, .12);
  box-shadow: 0 5px 18px rgba(27, 50, 42, .04);
}
#root #price .grid > div:nth-child(2) > div {
  padding: 38px;
  border: 1px solid rgba(107, 142, 170, .65);
  background: linear-gradient(135deg, #f0f5f9, #f7f8fc) !important;
}
#root #price .grid > div:not(:nth-child(2)) h3 { font-size: 26px !important; }
#root #price .grid > div:not(:nth-child(2)) p.font-bold { font-size: 32px !important; line-height: 1.2; }
#root #price .grid > div:not(:nth-child(2)) p:not(.font-bold) { font-size: 18px !important; line-height: 1.45; margin-bottom: 14px; }
#root #price .grid > div:not(:nth-child(2)) li { font-size: 17px !important; line-height: 1.45; }
#root #price .grid > div:not(:nth-child(2)) li + li { margin-top: 8px; }
#root #price .grid > div:nth-child(2) ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, auto);
  grid-auto-flow: column;
  align-content: start;
  gap: 22px 28px;
  margin-top: 24px;
}
#root #price .grid > div:nth-child(2) li { margin: 0; }
#root #price .grid > div:nth-child(2) li:last-child {
  padding: 18px;
  border-radius: 18px;
  background: rgba(107, 142, 170, .09);
  font-weight: 700;
  color: #4e718d;
}
@media (max-width: 900px) {
  #root #price .grid { grid-template-columns: 1fr; grid-template-areas: "license" "migration" "support"; }
  #root #price .grid > div:nth-child(2) > div { padding: 26px; }
}
@media (max-width: 540px) {
  #root #price .grid > div:nth-child(2) ul { display: flex; flex-direction: column; gap: 18px; }
  #root #price .grid > div > div { padding: 22px; }
}

/* Decorative service icons in the upper-right corner of each pricing card. */
#root #price .grid > div > div { position: relative; }
#root #price .grid > div > div::before {
  content: "";
  position: absolute;
  top: 24px;
  right: 24px;
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background-color: rgba(107, 142, 170, .08);
  background-position: center;
  background-repeat: no-repeat;
  background-size: 46px 46px;
  pointer-events: none;
}
#root #price .grid > div:nth-child(1) > div::before { background-image: url("./rvdbs-pricing/migration.svg"); }
#root #price .grid > div:nth-child(2) > div::before { background-image: url("./rvdbs-pricing/license.svg"); }
#root #price .grid > div:nth-child(3) > div::before { background-image: url("./rvdbs-pricing/support.svg"); }
#root #price .grid > div > div > h3 { padding-right: 80px; min-height: 64px; }
@media (max-width: 540px) {
  #root #price .grid > div > div::before { top: 20px; right: 20px; width: 48px; height: 48px; background-size: 36px 36px; }
  #root #price .grid > div > div > h3 { padding-right: 60px; min-height: 48px; }
}

/* Compact heading-to-price spacing in the two service cards. */
#root #price .grid > div:not(:nth-child(2)) > div > h3 {
  min-height: 0;
  margin-bottom: 4px;
}

/* License features in one column, included support highlighted on the right. */
#root #price .grid > div:nth-child(2) ul {
  grid-template-rows: repeat(5, auto);
  grid-auto-flow: row;
}
#root #price .grid > div:nth-child(2) li:nth-child(-n+5) {
  grid-column: 1;
}
#root #price .grid > div:nth-child(2) li:last-child {
  grid-column: 2;
  grid-row: 1 / span 5;
  align-self: start;
}

/* Larger pricing icons with enough room for the headings. */
#root #price .grid > div > div::before {
  width: 84px;
  height: 84px;
  background-size: 64px 64px;
}
#root #price .grid > div > div > h3 { padding-right: 100px; }
@media (max-width: 540px) {
  #root #price .grid > div > div::before {
    width: 60px;
    height: 60px;
    background-size: 46px 46px;
  }
  #root #price .grid > div > div > h3 { padding-right: 74px; }
}

/* Primary license card: stronger outline and neutral gray background. */
#root #price .grid > div:nth-child(2) > div {
  border: 2px solid #6b8eaa;
  background: #F7F8FC !important;
}

/* Balanced feature list and included support note. */
@media (min-width: 901px) {
  #root #price .grid > div:nth-child(2) ul {
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    column-gap: 22px;
  }
  #root #price .grid > div:nth-child(2) li:nth-child(-n+5) {
    font-size: var(--fs-body-sm) !important;
    white-space: normal;
  }
  #root #price .grid > div:nth-child(2) li:last-child {
    padding: 18px;
    font-size: var(--fs-body-sm) !important;
  }
}

@media (min-width: 901px) {
  #root #price .grid > div:nth-child(2) ul { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
  #root #price .grid > div:nth-child(2) li:last-child { font-size: clamp(13px, .95vw, 18px) !important; padding: 14px; }
  #root #price .grid > div:nth-child(2) li:last-child > span:last-child { white-space: nowrap; }
}

/* Neutral gray backgrounds for the demo and documentation cards. */
#root #demo .grid > div > div {
  background: #F7F8FC !important;
}

/* RVDBS logo palette: blue accents with soft pastel surfaces. */
#root .theme-teal {
  --primary: 207 27% 54%;
  --accent: 207 27% 54%;
  --secondary: 207 28% 95%;
  --secondary-foreground: 210 22% 25%;
  --muted: 210 20% 97%;
  --muted-foreground: 210 16% 41%;
  --border: 210 23% 87%;
  --input: 210 23% 90%;
  --ring: 207 27% 54%;
  --sidebar-primary: 207 27% 54%;
  --sidebar-ring: 207 27% 54%;
  --surface-glass: 210 25% 98%;
  --glow-primary: 207 27% 54%;
  --glow-accent: 207 27% 54%;
  --text-highlight: 207 27% 54%;
}
#root .theme-teal .bg-section,
#root .theme-teal [style*="140 25% 94%"] { background: #f0f5f9 !important; }
#root .theme-teal [style*="#ECF4EE"],
#root .theme-teal [style*="background-color: rgb(236, 244, 238)"],
#root .theme-teal [style*="#fbe9e9"],
#root .theme-teal [style*="background-color: rgb(251, 233, 233)"] { background: #e7eff5 !important; }
#root .theme-teal [style*="#12873D"],
#root .theme-teal [style*="background-color: rgb(18, 135, 61)"] { background-color: #6b8eaa !important; }
#root .theme-teal [stroke="#12873D"] { stroke: #6b8eaa !important; }

/* Industrial customer: matching client photography with a dark readable overlay. */
#root #pain ~ #pain .flex-shrink-0:has(> h3) {
  background: linear-gradient(180deg, rgba(16, 29, 40, .54), rgba(16, 29, 40, .70)),
    url("/assets/clients/rn-yugansk-photo.jpg") center / cover no-repeat !important;
  color: #fff;
}
#root #pain ~ #pain .flex-shrink-0:has(> h3) > h3,
#root #pain ~ #pain .flex-shrink-0:has(> h3) > p,
#root #pain ~ #pain .flex-shrink-0:has(> h3) > svg {
  color: #fff !important;
}

/* Keep the scroll-to-top control in the current RVDBS palette. */
#root main > button[aria-label="Наверх"] {
  background: #6b8eaa !important;
  color: #fff !important;
  border-color: #6b8eaa !important;
}
#root main > button[aria-label="Наверх"]:hover {
  background: #597d99 !important;
  border-color: #597d99 !important;
}

/* Use the white Rosneft logo in the industrial customer card. */
#root #pain ~ #pain .flex-shrink-0:has(> h3) > svg { display: none; }
#root #pain ~ #pain .flex-shrink-0:has(> h3)::before {
  content: "";
  display: block;
  flex-shrink: 0;
  width: 160px;
  height: 64px;
  margin-bottom: 24px;
  background: url("/assets/clients/rn-yugansk-white.png") left center / contain no-repeat;
}

/* Keep the client logo at the top and align the text with the lower metrics. */
#root #pain ~ #pain .flex-shrink-0:has(> h3) > h3 {
  margin-top: auto;
}
@media (min-width: 1024px) {
  #root #pain ~ #pain .flex-shrink-0:has(> h3) {
    padding-bottom: 24px;
  }
}

/* Larger client logo and a little more separation below the heading. */
#root #pain ~ #pain .flex-shrink-0:has(> h3)::before {
  width: 200px;
  height: 80px;
}
#root #pain ~ #pain .flex-shrink-0:has(> h3) > h3 {
  margin-bottom: 28px;
}

/* Demo cards: product screenshots behind a dark overlay and white controls. */
#root #demo .grid > div > div {
  background: linear-gradient(rgba(20, 35, 49, .50), rgba(20, 35, 49, .64)),
    url("./rvdbs-demo/demo-background.webp") center / cover no-repeat !important;
  color: #fff !important;
}
#root #demo .grid > div:nth-child(2) > div {
  background-image: linear-gradient(rgba(20, 35, 49, .50), rgba(20, 35, 49, .64)),
    url("./rvdbs-demo/guide-background.webp") !important;
}
#root #demo .grid h3,
#root #demo .grid p,
#root #demo .grid svg {
  color: #fff !important;
}
#root #demo .grid a,
#root #demo .grid button {
  background: transparent !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .85) !important;
}
#root #demo .grid a:hover,
#root #demo .grid button:hover {
  background: rgba(255, 255, 255, .16) !important;
  border-color: #fff !important;
}

/* Header contact action uses the current palette instead of the old teal hover. */
#root main > .relative > .absolute a[href^="mailto:"]:hover,
#root [data-rvdbs-sticky] a[href^="mailto:"]:hover,
#root main > .relative > .absolute a[href^="mailto:"]:focus-visible,
#root [data-rvdbs-sticky] a[href^="mailto:"]:focus-visible {
  background-color: #6b8eaa !important;
  color: #fff !important;
}

/* Animated product view replaces the solid hero background. */
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) {
  background: #f5f7fa !important;
  isolation: isolate;
}
#root .rvdbs-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  z-index: 0;
}
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video)::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(18,20,22,.81) 0%, rgba(18,20,22,.69) 38%, rgba(18,20,22,.30) 74%, rgba(18,20,22,.24) 100%);
  pointer-events: none;
  z-index: 1;
}
#root .rvdbs-hero-video ~ .absolute { display: none; }
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) > .relative.z-10 { z-index: 2; }

/* White hero text stays readable over the neutral dark overlay. */
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) h1,
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) p {
  color: #fff !important;
}

/* Keep the clean darkened left panel and move the cropped animation right. */
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) {
  background-color: #fff !important;
}
#root .rvdbs-hero-video {
  left: 32%;
  right: 0;
  width: 68%;
  object-fit: cover;
  object-position: center;
}
@media (max-width: 767px) {
  /* Enlarge the centered mobile animation while keeping a wider view than cover. */
  #root .rvdbs-hero-video {
    left: -25%;
    width: 150%;
    max-width: none;
    object-fit: contain;
    object-position: center;
  }
}

/* New depth-scan graphic in the introductory problems card only. */
#root #pain:not(#pain ~ #pain) .flex-shrink-0 > div.absolute.bottom-0.right-0 {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  max-height: 65%;
  bottom: 8px;
  right: 0;
  opacity: .85;
  background: url("./rvdbs-problem-circles.svg?v=motion-5") center bottom / contain no-repeat;
  mix-blend-mode: multiply;
  filter: none;
}
#root #pain:not(#pain ~ #pain) .flex-shrink-0 > div.absolute.bottom-0.right-0 > * {
  display: none;
}
@media (min-width: 1024px) {
  #root #pain:not(#pain ~ #pain) .flex-shrink-0 { min-height: 650px; }
}
@media (max-width: 1023px) {
  #root #pain:not(#pain ~ #pain) .flex-shrink-0 { padding-bottom: min(75vw, 440px); }
}

/* Reuse the transparent depth scan in the Russian-development section. */
#root #pain ~ #pain + section .relative.flex-1.mt-4 {
  background-image: url("./rvdbs-development-scan.svg?v=delta-label-20261023");
  background-repeat: no-repeat;
  mix-blend-mode: multiply;
  filter: none;
}
#root #pain ~ #pain + section .relative.flex-1.mt-4 > * {
  display: none;
}

/* Keep the complete original graphic small and clear, matching the problems card. */
#root #pain ~ #pain + section .relative.flex-1.mt-4 {
  margin-left: 0;
  margin-right: 0;
  background-size: auto 92%;
  background-position: center;
  opacity: .85;
}

/* Final contact section: floating circles and dots from the integration graphic. */
#root #demo + section > svg,
#root #demo + section > .contents { display: none; }
#root #demo + section::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: min(600px, 60%);
  height: 100%;
  background: url("./rvdbs-contact-circles.svg") center / contain no-repeat;
  pointer-events: none;
}

/* Enlarge the single reporting screenshot without shifting the text column. */
#root #features img[src*="/rvdbs-features/industry-reporting.png"] {
  transform: scale(1.35);
  transform-origin: center;
}
@media (max-width: 767px) {
  #root #features img[src*="/rvdbs-features/industry-reporting.png"] {
    transform: scale(1.15);
  }
}

/* Interactive before/after curtain for import, export and integrations. */
#root #features .rvdbs-compare {
  position: relative;
  width: min(850px, 100%, calc(52vh * 1.37));
  aspect-ratio: 1340 / 976;
  overflow: hidden;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 4px 14px rgba(27,50,42,.16);
  filter: none;
  isolation: isolate;
}
#root #features .rvdbs-compare > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  object-fit: cover;
  border-radius: 0;
  clip-path: none;
  user-select: none;
  pointer-events: none;
}
#root #features .rvdbs-compare-divider {
  position: absolute;
  inset: 0 auto 0 var(--compare-position);
  width: 2px;
  transform: translateX(-50%);
  background: #fff;
  box-shadow: 0 0 4px rgba(0,0,0,.45);
  pointer-events: none;
}
#root #features .rvdbs-compare-divider span {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 50%;
  background: #6b8eaa;
  color: #fff;
  font-family: inherit;
  font-size: 30px;
  font-weight: 400;
  box-shadow: 0 10px 32px rgba(27, 50, 42, .25);
}
#root #features .rvdbs-compare-range {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  touch-action: pan-y;
}
#root #features .rvdbs-compare:focus-within,
#root #features .rvdbs-compare-range:focus {
  outline: none;
}
#root #features .rvdbs-compare-divider span {
  box-sizing: border-box;
  padding: 0;
  line-height: 1;
}
#root #features .rvdbs-compare-divider span > svg {
  display: block;
  width: 28px;
  height: 28px;
}
/* Mobile layout follows the SAST and Antereal GIS product pages. */
@media (max-width: 767px) {
  /* Separate logo pill and menu button in both header states. */
  #root main > div.relative:first-child > div.absolute,
  #root main > div.relative:first-child > div.fixed.top-4 {
    top: 56px !important;
    right: 32px !important;
    left: 32px !important;
    padding: 0 !important;
  }
  #root main > div.relative:first-child > div.fixed.top-4 { top: 16px !important; }
  #root main > div.relative:first-child > :is(.absolute, .fixed.top-4) > div {
    position: relative;
    display: block !important;
    width: 100%;
    min-height: 54px;
  }
  #root main > div.relative:first-child > :is(.absolute, .fixed.top-4) > div > div[class~="xl:hidden"] {
    position: static;
    display: inline-flex !important;
    width: auto !important;
    min-height: 54px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, .18) !important;
  }
  #root main > div.relative:first-child > :is(.absolute, .fixed.top-4) div[class~="xl:hidden"] a img:first-child { display: none !important; }
  #root main > div.relative:first-child > :is(.absolute, .fixed.top-4) div[class~="xl:hidden"] a img:nth-child(2) {
    display: block !important;
    width: auto;
    max-width: 100%;
    height: 24px !important;
  }
  #root main > div.relative:first-child > :is(.absolute, .fixed.top-4) div[class~="xl:hidden"] button {
    position: absolute !important;
    top: 0;
    right: 0;
    width: 54px !important;
    height: 54px !important;
    border-radius: 999px !important;
    background: #fff !important;
    box-shadow: 0 10px 32px rgba(27, 50, 42, .18) !important;
  }

  #root main > .flex-1 > section:first-child { min-height: 678px; }
  #root main > .flex-1 > section:first-child > .relative.z-10 { padding: 116px 16px 48px; }
  #root main > .flex-1 > section:first-child h1 {
    margin-bottom: 30px;
    font-size: 31.5px !important;
    line-height: 35px;
  }
  #root main > .flex-1 > section:first-child p { font-size: 18.72px !important; line-height: 27.7056px; }
  #root main > .flex-1 > section:not(:first-child) h2 { font-size: 28px !important; line-height: 1.15 !important; }
  #root main > .flex-1 > section:not(:first-child) h3 { font-size: 24px !important; line-height: 1.2 !important; }
  #root main > .flex-1 > section:not(:first-child),
  #root main > .flex-1 > section:first-child + section#pain {
    margin-top: 150px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }
  #root main > .flex-1 > :not(:first-child) [class~="max-w-[1800px]"],
  #root main > footer [class~="max-w-[1800px]"] { padding-left: 16px; padding-right: 16px; }
  #root main .min-\[360px\]\:grid-cols-2 { grid-template-columns: minmax(0, 1fr); }
  #root main > button[aria-label="Наверх"] { right: 32px !important; bottom: 32px; }

  /* Keep licensing readable before the two-column feature layout can fit. */
  #root #price .grid > div:nth-child(2) ul { display: flex; flex-direction: column; gap: 18px; }
  #root #price .grid > div > div,
  #root #price .grid > div:nth-child(2) > div { padding: 22px; }
  #root #price .grid > div > div > h3 { min-height: 60px; }
  #root #demo .grid a,
  #root #demo .grid button { white-space: normal; text-align: center; }
}

@media (max-width: 1023px) {
  /* Touch users see the full problem and its consequence without hover. */
  #root #pain .grid > div { min-width: 0; }
  #root #pain .grid > div > div { opacity: 1 !important; transform: none !important; }
  #root #pain .grid > div > p {
    position: static;
    padding: 0;
    margin-top: 16px;
    opacity: 1 !important;
    transform: none !important;
  }

  /* Desktop offsets must not clip the paired screenshots on small screens. */
  #root #features div.relative:has(> img[src*="/rvdbs-features/risk-control-1.png"]),
  #root #features div.relative:has(> img[src*="/rvdbs-features/reports-1.png"]) {
    display: flex;
    flex-direction: row;
    gap: 8px;
    align-items: center;
  }
  #root #features div.relative > img[src*="/rvdbs-features/"]:first-child:nth-last-child(2),
  #root #features div.relative > img[src*="/rvdbs-features/"]:last-child:nth-child(2) {
    position: static;
    width: calc(50% - 4px);
    max-width: calc(50% - 4px);
    max-height: 100%;
    object-fit: contain;
  }
  #root #features img[src*="/rvdbs-features/industry-reporting.png"] { transform: none; }
  #root #features .rvdbs-compare { width: 100%; max-height: 100%; }
}
@media (max-width: 767px) {
  #root #price .grid p.font-bold { overflow-wrap: anywhere; }
  #root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video)::after {
    background: rgba(18, 20, 22, .65);
  }
}

/* Keep intermediate desktop widths readable before four cards fit. */
@media (min-width: 1024px) and (max-width: 1279px) {
  #root #business .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  #root #pain .grid h3,
  #root #economic h3 { font-size: 24px !important; overflow-wrap: anywhere; }
  #root #price .grid > div:nth-child(2) li:last-child > span:last-child { white-space: normal; }
}
@media (min-width: 1280px) and (max-width: 1399px) {
  #root #business .grid h3 { font-size: 26px !important; }
  #root #price .grid > div:nth-child(2) li:last-child > span:last-child { white-space: normal; }
}

/* Mobile hero action sits 48 px above the banner edge, as on Antereal GIS. */
@media (max-width: 767px) {
  #root main > .flex-1 > section:first-child > .relative.z-10 {
    box-sizing: border-box;
    min-height: 678px;
    justify-content: space-between;
  }
  #root #pain:not(#pain ~ #pain) .flex-shrink-0 > div.absolute.bottom-0.right-0 {
    right: -32px;
  }
}

/* Product accent highlights the key phrase over the hero video. */
#root main > .flex-1 > section:first-child:has(> .rvdbs-hero-video) h1 span.text-primary {
  color: #6b8eaa !important;
  text-shadow: 0 0 20px rgba(107, 142, 170, .5), 0 0 40px rgba(107, 142, 170, .3);
}

/* Comparison arrows share the scroll-to-top control typography and sizing. */
#root #features .rvdbs-compare-divider span > svg { display: none; }
#root #features .rvdbs-compare-divider span::before { content: ""; display: block; width: 32px; height: 32px; background: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%2032%2032%22%20fill%3D%22none%22%20stroke%3D%22white%22%20stroke-width%3D%221.4%22%20stroke-linecap%3D%22butt%22%20stroke-linejoin%3D%22miter%22%3E%3Cpath%20d%3D%22M3%2016h26M8%2012.5l-5%203.5%205%203.5M24%2012.5l5%203.5-5%203.5%22%2F%3E%3C%2Fsvg%3E") center / contain no-repeat; transform: none; }
@media (max-width: 767px) {
  #root #features .rvdbs-compare-divider span { width: 40px; height: 40px; font-size: 24px; }
}

/* Center square list markers on the first text line, including wrapped items. */
#root main li > span.inline-block.bg-primary {
  display: flex;
  align-items: center;
  height: 1lh !important;
  margin-top: 0;
  background: none;
}
#root main li > span.inline-block.bg-primary::before {
  content: "";
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-radius: 1px;
  background: hsl(var(--primary));
}

/* Compact the introductory problem card on phones. */
@media (max-width: 767px) {
  #root #pain:not(#pain ~ #pain) .flex-shrink-0 {
    min-height: 0;
    padding-bottom: 20px;
  }
  #root #pain:not(#pain ~ #pain) .flex-shrink-0 > div.absolute.bottom-0.right-0 {
    display: none;
  }
}

/* Full-width screenshots in the mobile risk and industry reporting items. */
@media (max-width: 767px) {
  #root #features .w-full.overflow-hidden:has(img[src*="/rvdbs-features/risk-control-1.png"]),
  #root #features .w-full.overflow-hidden:has(img[src*="/rvdbs-features/industry-reporting.png"]) {
    height: auto !important;
    overflow: visible;
  }
  #root #features div.relative:has(> img[src*="/rvdbs-features/risk-control-1.png"]) {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  #root #features div.relative > img[src*="/rvdbs-features/risk-control-1.png"]:first-child:nth-last-child(2),
  #root #features div.relative > img[src*="/rvdbs-features/risk-control-2.png"]:last-child:nth-child(2),
  #root #features img[src*="/rvdbs-features/industry-reporting.png"] {
    position: static;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    flex: none;
    transform: none;
  }
}
/* Soft expanding rings draw attention to the comparison curtain handle. */
#root #features .rvdbs-compare-divider span::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
  box-sizing: border-box;
  border: 1px solid rgba(107, 142, 170, .65);
  background: transparent;
  animation: rvdbs-compare-ripple 2.4s ease-out infinite !important;
}
@keyframes rvdbs-compare-ripple {
  from { transform: scale(1); opacity: .8; }
  to { transform: scale(1.8); opacity: 0; }
}

/* Place the introductory consequence card to the right of the problem cards. */
@media (min-width: 1024px) {
  #root #pain:not(#pain ~ #pain) .flex:has(> .flex-shrink-0 > h3) {
    flex-direction: row-reverse;
  }
}
/* Give every mobile feature illustration the trajectory item's full width. */
@media (max-width: 767px) {
  #root #features .w-full.overflow-hidden:has(img[src*="/rvdbs-features/"]) {
    width: 100%;
    height: auto !important;
  }
  #root #features .w-full.overflow-hidden > div:has(img[src*="/rvdbs-features/"]) {
    width: 100%;
    height: auto;
  }
  #root #features div.relative:has(> img[src*="/rvdbs-features/"] + img[src*="/rvdbs-features/"]) {
    flex-direction: column;
    height: auto;
    gap: 16px;
  }
  #root #features img[src*="/rvdbs-features/"]:not(.rvdbs-compare > img) {
    position: static !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    max-height: none !important;
    flex: none;
    transform: none;
  }
  #root #features .rvdbs-compare {
    width: 100%;
    height: auto;
    max-height: none;
  }
}
