/* 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;
  }
}

/* Bitrix24 release feature. */
.home-audit-pilot .home-release-note {
  display: grid;
  grid-template-columns: minmax(0, 1.24fr) minmax(0, .76fr);
  align-items: center;
  gap: clamp(18px, 4vw, 52px);
  margin: 14px 0 30px;
  padding: clamp(20px, 3vw, 36px);
  border: 1px solid #1d5a99;
  border-radius: 20px;
  background: linear-gradient(115deg, #082b60 30%, #0d4583 72%, #135da1);
  color: #f7fbff;
  scroll-margin-top: 96px;
}
.home-release-copy { min-width: 0; }
.home-release-date {
  margin: 0 0 8px;
  color: #a9dcff;
  font-weight: 750;
  font-size: .9rem;
}
.home-release-copy h2 {
  max-width: 27ch;
  margin: 0;
  color: #f7fbff;
  font-size: clamp(1.55rem, 1.14rem + 1.55vw, 2.45rem);
  line-height: 1.12;
  letter-spacing: -.02em;
  text-wrap: balance;
}
.home-release-summary {
  max-width: 55ch;
  margin: 12px 0 18px;
  color: #e7f2ff;
  line-height: 1.55;
}
.home-release-note .home-release-link {
  background: #f1f8ff;
  border: 1px solid #d0eaff;
  color: #093e78;
  box-shadow: none;
}
.home-release-note .home-release-link:hover {
  background: #cce8ff;
  color: #093e78;
}
.home-release-note .home-release-link:focus-visible {
  outline: 3px solid #a5d9ff;
  outline-offset: 4px;
}
.home-release-figure {
  min-width: 0;
  margin: 0;
  padding: clamp(5px, .9vw, 11px);
  border: 1px solid #a6d3ff70;
  border-radius: 13px;
  background: #c6e4ff2e;
}
.home-release-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
@media (max-width: 680px) {
  .home-audit-pilot .home-release-note {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 8px;
    border-radius: 15px;
  }
}
