/* Audit 2026-10-26, V01-V06. Shared by all home pages. */

/* V01: reserve room for the tilted illustration and its shadow. */
.home-audit-pilot .home-hero {
  overflow: visible;
}

.home-audit-pilot .home-hero::before {
  width: min(650px, 65%);
  height: min(470px, 65vw);
  left: 15%;
}

.home-audit-pilot .home-visual {
  padding: 20px 32px 42px 20px;
}

.home-audit-pilot .home-visual .bitrix-board {
  box-shadow: 0 18px 32px rgba(0, 40, 112, .18);
}

/* V02: the labelled image wrapper represents a decorative, inert demo. */
.home-audit-pilot .home-demo {
  -webkit-user-select: none;
  user-select: none;
}

/* V03: keep the two introductions attached to the scenario list. */
.home-audit-pilot .home-intro-notes {
  margin-top: 20px;
  gap: 24px 36px;
}

.home-audit-pilot .home-intro-notes .content-note {
  border-top: 0;
  padding-top: 0;
}

/* V04/V06 owner revision: blue text links without underlines in any state. */
.home-audit-pilot .home-intro-notes a,
.home-audit-pilot .home-integrations .content-note a {
  display: inline;
  border-bottom: 0;
}

.home-audit-pilot :is(.content-note a, a.text-link, a .link),
.home-audit-pilot :is(.content-note a, a.text-link, a .link):is(:link, :visited, :hover, :active, :focus-visible) {
  color: var(--primary);
  text-decoration: none;
}

.home-audit-pilot :is(.content-note a, a.text-link):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 2px;
}

/* V05: heading first, two full-width reading columns, then the shortcuts. */
.home-audit-pilot .home-integrations > .home-section-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 20px 32px;
  margin-bottom: 20px;
}

.home-audit-pilot .home-integrations > .home-section-head > div {
  display: contents;
}

.home-audit-pilot .home-integrations .home-kicker {
  grid-column: 1 / -1;
  justify-self: start;
}

.home-audit-pilot .home-integrations h2 {
  grid-column: 1;
  grid-row: 2;
  margin-top: 0;
}

.home-audit-pilot .home-integrations > .home-section-head > .text-link {
  grid-column: 2;
  grid-row: 2;
  justify-self: end;
  align-self: end;
  margin-top: 0;
}

.home-audit-pilot .home-integrations .content-notes {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 0;
}

/* V06: the section's existing top rule is the only full-width divider. */
.home-audit-pilot .home-integrations .content-note {
  border-top: 0;
  padding-top: 0;
}

@media (max-width: 1100px) {
  .home-audit-pilot .home-hero {
    grid-template-columns: minmax(0, 1fr);
  }

  .home-audit-pilot .home-visual {
    width: 100%;
    max-width: 760px;
    justify-self: center;
    padding: 24px 48px 48px;
  }
}

@media (max-width: 760px) {
  .home-audit-pilot .home-visual {
    padding: 12px 20px 32px;
  }

  .home-audit-pilot .home-visual .bitrix-board {
    transform: none;
    box-shadow: 0 12px 20px rgba(0, 40, 112, .18);
  }

  .home-audit-pilot .home-integrations > .home-section-head {
    grid-template-columns: minmax(0, 1fr);
    gap: 16px;
  }

  .home-audit-pilot .home-integrations > .home-section-head > .text-link {
    grid-column: 1;
    grid-row: 4;
    justify-self: start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-audit-pilot .home-visual .bitrix-board {
    transform: none;
  }
}
