/* «Стало 3» share page shell — loaded on top of share-new.css.
   Header: a letterhead. The CarGuru mark, what this document is, who made it, the inspection stamp, then the shelf.
   No slogan, no button. Closing block: the message on white, the phone number as the action on the shelf's grey. */

/* ── header ── */
.rs3-hero {
  display: grid;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaee;
}
.rs3-band {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0 18px;
  padding: 22px 30px 22px 32px;
}
/* the mark's PNG carries 15/128 of transparent margin; the box is the visible square */
.rs3-mark {
  display: block;
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.rs3-mark img {
  display: block;
  width: 61px;
  height: 61px;
  max-width: none;
  margin: -7.5px;
}
.rs3-title {
  margin: 0;
  font-size: 26px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #15171c;
  text-wrap: balance;
}
.rs3-sub {
  margin: 5px 0 0;
  font-size: 14.5px;
  line-height: 1.45;
  color: #6b7280;
  text-wrap: pretty;
}
.rs3-seal {
  width: 88px;
  height: 88px;
  margin: -8px 0;
  color: #6d3ad4;
  opacity: 0.92;
  transform: rotate(-12deg);
}
.rs3-seal .r1 {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.rs3-seal .r2 {
  fill: none;
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 2 3;
}
.rs3-seal .t {
  fill: currentColor;
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 9.5px;
  font-weight: 700;
}
.rs3-seal .c {
  fill: none;
  stroke: currentColor;
  stroke-width: 3.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
/* a VIN is data: monospace, under the car's year and mileage */
.rs3-vin {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  box-sizing: border-box;
  margin-top: 5px;
  padding: 6px 9px;
  border: 1px solid #e3deed;
  border-radius: 7px;
  background: #f7f5fb;
  font-family: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.4;
  letter-spacing: 0.02em;
  color: #3e374b;
  overflow-wrap: anywhere;
}
.rs3-vin span {
  margin-right: 5px;
  padding-right: 7px;
  border-right: 1px solid #ded7ea;
  font-size: 10.5px;
  font-weight: 600;
  color: #7656a4;
}

/* ── closing block ── */
.rs3-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e8eaee;
}
.rs3-cta-msg {
  display: grid;
  gap: 10px;
  align-content: center;
  padding: 32px 40px;
}
.rs3-cta-title {
  margin: 0;
  font-size: 27px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: -0.022em;
  color: #15171c;
  text-wrap: balance;
}
.rs3-cta-text {
  margin: 0;
  max-width: 54ch;
  font-size: 15px;
  line-height: 1.55;
  color: #5b616d;
  text-wrap: pretty;
}
.rs3-cta-reach {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 8px;
  min-width: 380px;
  padding: 30px 44px 30px 40px;
  background: #fafbfc;
  border-left: 1px solid #eef0f3;
}
.rs3-phone {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  color: #15171c;
  text-decoration: none;
}
.rs3-phone-ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #e3e6ea;
  color: #6d3ad4;
  transition: border-color 0.15s ease;
}
.rs3-phone strong {
  font-size: 30px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.015em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 6px;
  transition: text-decoration-color 0.15s ease;
}
.rs3-phone:hover strong {
  text-decoration-color: rgba(109, 58, 212, 0.4);
}
.rs3-phone:hover .rs3-phone-ico {
  border-color: #cbbdf0;
}
/* Footer action uses the same button treatment as the header. */
.rs3-site {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: flex-start;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  margin-left: 60px;
  border-radius: 12px;
  background: #6d3ad4;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  transition: background 0.15s ease;
}
.rs3-site svg { flex: none; color: currentColor; }
.rs3-site:hover { background: #5527b8; }
.rs3-hero a:focus-visible,
.rs3-cta a:focus-visible {
  outline: 2px solid #6d3ad4;
  outline-offset: 3px;
  border-radius: 6px;
}
.rs3-hero .rs3-mark:focus-visible {
  border-radius: 11px;
}

/* ── the one load moment: the inspection stamp lands ── */
@media (prefers-reduced-motion: no-preference) {
  .rs3-seal {
    animation: rs3-stamp 0.55s cubic-bezier(0.16, 1, 0.3, 1) 0.25s both;
  }
  @keyframes rs3-stamp {
    from {
      opacity: 0;
      transform: rotate(-4deg) scale(1.35);
    }
    to {
      opacity: 0.92;
      transform: rotate(-12deg) scale(1);
    }
  }
}

@media (max-width: 900px) {
  .rs3-cta {
    grid-template-columns: 1fr;
  }
  .rs3-cta-reach {
    min-width: 0;
    border-left: 0;
    border-top: 1px solid #eef0f3;
  }
}

@media (max-width: 560px) {
  .rs3-band {
    grid-template-columns: 40px minmax(0, 1fr) 58px;
    align-items: start;
    gap: 0 12px;
    padding: 16px 14px 18px 16px;
  }
  .rs3-mark {
    width: 40px;
    height: 40px;
    border-radius: 10px;
  }
  .rs3-mark img {
    width: 53px;
    height: 53px;
    margin: -6.5px;
  }
  .rs3-title {
    font-size: 20px;
    line-height: 1.2;
  }
  .rs3-sub {
    margin-top: 4px;
    font-size: 13px;
  }
  .rs3-seal {
    width: 58px;
    height: 58px;
    margin: -2px 0 0;
  }
  .rs3-cta {
    border-radius: 16px;
  }
  .rs3-cta-msg {
    padding: 22px 18px 20px;
    gap: 8px;
  }
  .rs3-cta-title {
    font-size: 21px;
  }
  .rs3-cta-text {
    font-size: 14.5px;
  }
  .rs3-cta-reach {
    padding: 18px 18px 20px;
    gap: 6px;
  }
  .rs3-phone {
    gap: 12px;
  }
  .rs3-phone-ico {
    width: 44px;
    height: 44px;
  }
  .rs3-phone strong {
    font-size: 26px;
  }
  .rs3-site {
    margin-left: 0;
    width: 100%;
    box-sizing: border-box;
    min-height: 44px;
  }
}

/* the stamp gave way to the way out: a quiet purple button to the site */
.rs3-go {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 12px;
  background: #6d3ad4;
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  white-space: nowrap;
  text-decoration: none;
  transition: background 0.15s ease;
}
.rs3-go:hover {
  background: #5b2ec0;
}
@media (max-width: 560px) {
  .rs3-band {
    grid-template-columns: 40px minmax(0, 1fr);
  }
  .rs3-go {
    grid-column: 1 / -1;
    justify-content: center;
    margin-top: 14px;
    min-height: 46px;
  }
}

/* ── phone: the app bar. The letterhead gives way to a bar that stays on top while the report scrolls —
   the mark, what this is, the car and date, «Поделиться»; under it the report's sections as chips, the one being read is dark.
   A tap on a chip scrolls to its section (viewer.js). Above a phone width the letterhead stays as it was. ── */
.rs3-bar {
  display: none;
}
@media (max-width: 560px) {
  /* min-width: 0 — the chips row is wider than a phone; without it the page grid would take its width */
  .rs3-bar {
    display: block;
    position: sticky;
    top: 0;
    min-width: 0;
    z-index: 30;
    margin: -12px -12px 0; /* the page on a phone: 12px sides, 12px top (share-new.css) */
    background: rgba(255, 255, 255, 0.94);
    -webkit-backdrop-filter: saturate(1.6) blur(14px);
    backdrop-filter: saturate(1.6) blur(14px);
    border-bottom: 1px solid #e8eaee;
  }
  .rs3 .rs3-band {
    display: none;
  }
}
.rs3-bar-top {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 11px;
  height: 56px;
  padding: 0 14px;
}
/* the mark's PNG carries 15/128 of transparent margin; the box is the visible square */
.rs3-bar-mark {
  display: block;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  overflow: hidden;
}
.rs3-bar-mark img {
  display: block;
  width: 45px;
  height: 45px;
  max-width: none;
  margin: -5.5px;
}
.rs3-bar-title {
  display: grid;
  min-width: 0;
  margin: 0;
  line-height: 1.25;
}
.rs3-bar-title b {
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.012em;
  color: #15171c;
}
.rs3-bar-title small {
  overflow: hidden;
  font-size: 12px;
  color: #6b7280;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.rs3-bar-share {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #f1f2f5;
  color: #3f4451;
  cursor: pointer;
  transition: background-color 0.15s ease;
}
.rs3-bar-share:active {
  background: #e6e8ec;
}
.rs3-bar-tabs {
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.rs3-bar-tabs::-webkit-scrollbar {
  display: none;
}
.rs3-bar-row {
  display: flex;
  gap: 6px;
  width: max-content;
  padding: 2px 14px 10px;
}
.rs3-bar-row:empty {
  display: none;
}
.rs3-tab {
  padding: 6px 12px;
  border: 1px solid #e3e6ea;
  border-radius: 99px;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
  color: #3f4451;
  white-space: nowrap;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}
.rs3-tab.is-on {
  border-color: #15171c;
  background: #15171c;
  color: #fff;
}
.rs3-bar a:focus-visible,
.rs3-bar button:focus-visible {
  outline: 2px solid #6d3ad4;
  outline-offset: 2px;
}
/* «Поделиться» without a share sheet: the link is copied, a note says so */
.rs3-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 60;
  padding: 10px 16px;
  border-radius: 12px;
  background: #15171c;
  color: #fff;
  font: 500 14px/1.3 -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI', Roboto, sans-serif;
  opacity: 0;
  transform: translate(-50%, 8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}
.rs3-toast.is-on {
  opacity: 1;
  transform: translate(-50%, 0);
}
