/* Original Inter subsets from Google Fonts. See fonts/LICENSE-Inter.txt. */
@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/inter-cyrillic.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}

.analytics-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.analytics-hero__photo,
.analytics-hero::before {
  position: absolute;
  inset: 0;
}

.analytics-hero__photo {
  z-index: -2;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 42%;
}

.analytics-hero::before {
  z-index: -1;
  content: "";
  background: linear-gradient(90deg, #fff 23%, rgb(244 248 252 / 97%) 42%, rgb(244 248 252 / 90%) 51%, rgb(244 248 252 / 26%) 68%, transparent 85%);
}

.analytics-hero__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  align-items: center;
  min-height: clamp(400px, 36vw, 520px);
  gap: clamp(28px, 5vw, 80px);
  padding-block: clamp(32px, 4vw, 58px);
}

.analytics-hero .audit-deck { max-width: 560px; }

.analytics-hero h1 {
  margin: 0 0 16px;
  color: var(--navy);
  font-size: clamp(34px, 4vw, 60px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.045em;
  text-wrap: pretty;
}

.analytics-hero-flow {
  width: min(100%, 460px);
  margin: 0;
  padding: clamp(16px, 2.3vw, 28px);
  border: 1px solid rgb(216 228 242 / 90%);
  border-radius: var(--radius);
  color: var(--navy);
  background: rgb(255 255 255 / 80%);
  box-shadow: 0 10px 28px rgb(6 27 58 / 7%);
  backdrop-filter: blur(7px);
}

.analytics-hero-flow figcaption {
  font-size: 16px;
  font-weight: 750;
}

.analytics-hero-flow dl { margin: 12px 0 0; }

.analytics-hero-flow dl > div {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr);
  column-gap: 12px;
  padding: 9px 0;
}

.analytics-hero-flow dl > div + div { border-top: 1px solid var(--line); }

.analytics-hero-flow dl > div::before {
  content: "";
  grid-row: span 2;
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.analytics-hero-flow dt { font-size: 15px; font-weight: 750; }

.analytics-hero-flow dd {
  grid-column: 2;
  margin: 3px 0 0;
  color: #3a506b;
  font-size: 14px;
}

.analytics-hero-flow dl > div:last-child::before { background: #08745a; }

.analytics-example-chart {
  max-width: 540px;
  margin: 24px 0;
  padding: clamp(16px, 2.5vw, 24px);
  border-radius: var(--radius);
  background: var(--soft);
}

.analytics-example-chart figcaption { color: var(--navy); font-size: 16px; font-weight: 750; }
.analytics-example-chart ul { margin: 14px 0 0; padding: 0; list-style: none; }

.analytics-example-chart li {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: baseline;
  gap: 6px 12px;
  font-size: 14px;
}

.analytics-example-chart li + li { margin-top: 12px; }
.analytics-example-chart strong { font-variant-numeric: tabular-nums; white-space: nowrap; }

.analytics-example-chart__track {
  grid-column: 1 / -1;
  height: 8px;
  overflow: hidden;
  border-radius: 99px;
  background: #e0e9f3;
}

.analytics-example-chart__track::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: #4b8edc;
}

.analytics-example-chart__track--b::before { width: 40%; background: #32977e; }

.analytics-route { margin-top: clamp(16px, 2.5vw, 32px); }

.analytics-route li {
  display: flex;
  min-height: 45px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 7px;
  color: var(--navy);
  font-weight: 750;
}

.analytics-article .audit-prose { width: 100%; }
.analytics-article :is(section, .audit-toc):target { scroll-margin-top: 100px; }

.analytics-payment-note {
  padding: 14px 18px;
  border-inline-start: 3px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--soft);
}

.analytics-method {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--soft);
}

.analytics-method summary {
  padding: 14px 18px;
  border-radius: var(--radius);
  color: var(--blue-dark);
  cursor: pointer;
}

.analytics-method summary h2 { display: inline; margin-inline-start: 4px; font-size: 20px; }
.analytics-method summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.analytics-method summary:active { transform: scale(.97); }
.analytics-method__body { padding: 0 18px 20px; }
.analytics-method__body h3 { margin: 20px 0 0; }
.analytics-method__body .analytics-table { background: #fff; }

.analytics-cta {
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f1f7fd;
}

.analytics-cta h2 { font-size: clamp(24px, 2.7vw, 34px); }
.analytics-cta p { max-width: 60ch; }
.analytics-cta .audit-cta__text-link { color: var(--blue-dark); text-underline-offset: .2em; }

.analytics-table {
  max-width: 100%;
  margin-top: 20px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
}

.analytics-table:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.analytics-table table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.4; }
.analytics-table caption { padding: 12px 14px; color: var(--muted); font-size: 14px; text-align: left; }
.analytics-table :is(th, td) { padding: 10px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.analytics-table th { color: var(--navy); text-align: left; }
.analytics-table thead { background: var(--soft); }

.analytics-table table:not(.analytics-table__fields) :is(th, td):nth-child(n+2) {
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.analytics-table table:not(.analytics-table__fields) td { white-space: nowrap; }
.analytics-table__key { background: #eaf6f1; font-weight: 800; }
.analytics-table__fields th:first-child { width: 29%; }
.analytics-footer .footer-bottom { color: #53657b; }

@media (hover: hover) and (pointer: fine) {
  .analytics-method summary:hover { background: #eaf3fc; }
}

@media (max-width: 850px) {
  .analytics-hero__inner { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .analytics-hero__copy { max-width: 680px; }

  .analytics-hero__photo {
    inset: auto 0 0;
    height: 64%;
    object-position: 62% 50%;
  }

  .analytics-hero::before {
    background: linear-gradient(180deg, #fff 15%, #f4f8fc 32%, rgb(244 248 252 / 94%) 48%, rgb(244 248 252 / 33%) 75%, rgb(244 248 252 / 12%) 100%);
  }
}

@media (max-width: 540px) {
  .analytics-hero h1 { font-size: clamp(29px, 8vw, 40px); }
  .analytics-route ol { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .analytics-route li { flex-direction: column; gap: 5px; padding: 3px 0; font-size: 13px; }
  .analytics-table table { font-size: 14px; }
  .analytics-table :is(th, td) { padding: 9px 8px; }
  .analytics-table caption { padding: 9px 8px; }
}

@media (max-width: 360px) {
  .analytics-table table { table-layout: fixed; font-size: 13px; }
  .analytics-table :is(th, td) { padding-inline: 6px; overflow-wrap: anywhere; }
  .analytics-table table:not(.analytics-table__fields) th:nth-child(n+2) { width: 29%; }
}
