/* Main-page visual refinements, separate from application handling. */
.hero-team h1 .hero-product {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 12px;
  text-align: left;
}
.hero-team h1 .hero-product-prefix { margin-top: 0; align-self: center; transform: translateX(-.45em); }
.hero-team h1 .hero-product .hero-keyword { justify-content: flex-start; }
#main #problem .problem-list li { padding-left: 44px; }
#main #problem .problem-list li::before {
  width: 32px;
  text-align: center;
  font-size: var(--type-step-number);
  line-height: 1;
  top: 17px;
}
#main #expert .expert-name {
  margin: 0;
  font-size: var(--type-summary);
  line-height: var(--type-summary-leading);
  color: var(--ink);
}
.back-to-top {
  position: fixed;
  right: max(18px, env(safe-area-inset-right));
  bottom: calc(18px + env(safe-area-inset-bottom));
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 68px;
  min-height: 68px;
  padding: 10px;
  border: 1px solid #b8d7ef;
  border-radius: 16px;
  background: #fff;
  color: #1458ce;
  box-shadow: 0 4px 18px #123e7224;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: none;
}
.back-to-top svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.back-to-top:hover { background: #edf7ff; }
.back-to-top:focus-visible { outline: 3px solid #1458ce; outline-offset: 4px; }
.back-to-top[hidden], body.modal-open .back-to-top, body:has(dialog[open]) .back-to-top { display: none; }
@media (max-width: 760px) {
  .hero-team h1 .hero-product { margin-top: 10px; }
  .back-to-top { right: max(12px, env(safe-area-inset-right)); bottom: calc(12px + env(safe-area-inset-bottom)); min-width: 62px; min-height: 62px; padding: 8px; }
}

/* The heading receives focus only to restore reading order after returning. */
.hero-team h1[tabindex="-1"]:focus { outline: none; box-shadow: none; }
.price-application-action { margin-top: 32px; text-align: center; }
.price-application-action .button { width: min(100%, 360px); min-height: 56px; }
