.ref-end {
  --ref-end-margin: clamp(16px, 5.56vw, 80px);
  --ref-end-content: 1216px;
  color: var(--ink, #1b252f);
  background: var(--white, #fff);
  font-family: var(--body, Quicksand, sans-serif);
}

.ref-end > section {
  margin-block-start: 64px;
  padding-inline: var(--ref-end-margin);
}

.ref-end-review {
  display: flex;
  flex-direction: column;
  align-items: center;
  color: var(--brand, #841536);
  text-align: center;
}

.ref-end h2,
.ref-end h3 {
  margin: 0;
  font-family: inherit;
  font-weight: 500;
  letter-spacing: -.01em;
}

.ref-end-review h2 {
  font-size: 40px;
  line-height: 52px;
  font-weight: 400;
}

.ref-end-review .ref-end-counter {
  margin-top: 24px;
  font-size: 56px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  line-height: 64px;
  letter-spacing: -.02em;
}

.ref-end-review .ref-end-counter-label {
  margin-top: 12px;
  font-size: 16px;
  line-height: 26px;
}

.ref-end-mark {
  width: 90px;
  height: 50px;
  margin-top: 24px;
  display: grid;
  place-items: center;
}

.ref-end-mark img {
  width: 100%;
  height: auto;
}

.ref-end-review h3 {
  margin-top: 32px;
  font-size: 32px;
  line-height: 42px;
}

.ref-end-reels {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  width: 100%;
  margin-top: 36px;
}

.ref-end-reel {
  position: relative;
  display: grid;
  flex: 0 0 250px;
  width: 250px;
  aspect-ratio: 282 / 501;
  overflow: hidden;
  border-radius: 20px;
  isolation: isolate;
  background: #21191d;
  color: #fff;
}

.ref-end-reel img {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  object-fit: cover;
  transition: transform .5s ease-out;
}

.ref-end-reel::after {
  position: absolute;
  z-index: 0;
  inset: 0;
  background: linear-gradient(to bottom, #0002, transparent 35%, #000b);
  content: "";
}

.ref-end-reel:hover img {
  transform: scale(1.04);
}

.ref-end-play {
  position: relative;
  z-index: 1;
  display: grid;
  width: 64px;
  aspect-ratio: 1;
  place-items: center;
  place-self: center;
  border-radius: 50%;
  background: #ffffffe6;
  box-shadow: 0 8px 24px #0004;
  backdrop-filter: blur(5px);
  transition: transform .2s ease-out;
}

.ref-end-play::before {
  margin-left: 3px;
  border-block: 10px solid transparent;
  border-inline-start: 16px solid var(--brand, #841536);
  content: "";
}

.ref-end-reel:hover .ref-end-play {
  transform: scale(1.1);
}

.ref-end-reel-label {
  position: absolute;
  z-index: 1;
  inset: auto 16px 18px;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.ref-end-dots {
  display: none;
}

.ref-end-mosaic,
.ref-end-institute,
.ref-end-instagram {
  box-sizing: content-box;
  max-width: var(--ref-end-content);
  margin-inline: auto;
}

.ref-end-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 600px));
  gap: 16px;
}

.ref-end-mosaic-card > img {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border-radius: 20px;
  object-fit: cover;
}

.ref-end-mosaic-copy {
  padding: 32px 12px;
}

.ref-end-mosaic h3,
.ref-end-institute h3 {
  font-size: 24px;
  line-height: 32px;
}

.ref-end-mosaic p {
  margin-top: 12px;
  font-size: 16px;
  line-height: 26px;
}

.ref-end-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: start;
  gap: 12px;
  margin-top: 24px;
}

.ref-end-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 20px;
  border: 1px solid var(--brand, #841536);
  border-radius: 999px;
  background: var(--brand, #841536);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  cursor: pointer;
  transition: background .2s, box-shadow .2s, transform .2s;
}

.ref-end-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 11px -5px #0006;
  background: var(--brand-dark, #650c29);
}

.ref-end-button:active {
  transform: scale(.97);
}

.ref-end-button--outline {
  border-color: var(--accent, #b54b76);
  background: transparent;
  color: var(--brand, #841536);
}

.ref-end-button--outline:hover {
  background: var(--wash, #f8eef2);
}

.ref-end #agendar {
  scroll-margin-top: 105px;
}

.ref-end-institute > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 2430 / 514;
  border-radius: 20px;
  object-fit: cover;
  object-position: 50% 52%;
}

.ref-end-institute-copy {
  display: grid;
  grid-template-columns: 1fr minmax(0, 2.15fr) 1fr;
  gap: 16px;
  align-items: center;
  padding: 24px 12px;
}

.ref-end-institute-copy h3 {
  color: var(--brand, #841536);
  font-weight: 700;
}

.ref-end-institute-copy p {
  max-width: 450px;
  justify-self: center;
  font-size: 24px;
  line-height: 32px;
  text-align: center;
}

.ref-end-institute-copy a {
  justify-self: end;
}

.ref-end-instagram {
  padding-bottom: 0;
}

.ref-end-instagram-head {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 58px;
  text-align: center;
}

.ref-end-instagram h2 {
  color: var(--brand, #841536);
  font-size: 32px;
  line-height: 42px;
}

.ref-end-social-desktop {
  position: absolute;
  top: 50%;
  right: 0;
  translate: 0 -50%;
}

.ref-end-social-mobile {
  display: none;
}

.ref-end-feed {
  display: flex;
  gap: 12px;
  margin-top: 24px;
  overflow: auto;
  scrollbar-width: none;
}

.ref-end-feed a {
  flex: 0 0 234px;
  overflow: hidden;
  border-radius: 16px;
}

.ref-end-feed img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  transition: transform .5s ease-out;
}

.ref-end-feed a:hover img {
  transform: scale(1.05);
}

.ref-end-video {
  width: min(92vw, 56rem);
  max-height: calc(100dvh - 2rem);
  border: 0;
  border-radius: 20px;
  padding: 0;
  background: #fff;
  color: var(--ink, #1b252f);
}

.ref-end-video::backdrop {
  background: #1b121bc2;
}

.ref-end-video-content {
  padding: clamp(16px, 3vw, 28px);
}

.ref-end-video-content header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.ref-end-video-content h2 {
  font-size: clamp(19px, 3.5vw, 26px);
}

.ref-end-close {
  width: 38px;
  min-width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line, #e8dbe0);
  border-radius: 50%;
  background: #fff;
  line-height: 1;
  font-size: 25px;
}

.ref-end-video-slot {
  aspect-ratio: 16 / 9;
  background: #1b121b;
}

.ref-end-video--portrait {
  width: min(92vw, 31rem);
}

.ref-end-video--portrait .ref-end-video-slot {
  width: min(100%, calc((100dvh - 11rem) * 9 / 16));
  min-width: min(100%, 8rem);
  aspect-ratio: 9 / 16;
  margin-inline: auto;
}

.ref-end-video-slot :is(iframe, video) {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
}

@media (min-width: 1024px) {
  .ref-end-reel:nth-child(2) {
    flex-basis: 282px;
    width: 282px;
  }
}

.ref-end-video-external {
  display: inline-block;
  margin-top: 12px;
  color: var(--brand, #841536);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: .15em;
}

.ref-end-enter {
  animation: ref-end-enter .7s cubic-bezier(.2, .65, .35, 1) both;
}

@keyframes ref-end-enter {
  from { opacity: 0; translate: 0 40px; }
  to { opacity: 1; translate: 0 0; }
}

@media (max-width: 1023px) {
  .ref-end > .ref-end-instagram {
    margin-block-start: 38px;
  }

  .ref-end-review h2 {
    font-size: 28px;
    line-height: 38px;
  }

  .ref-end-review .ref-end-counter {
    font-size: 40px;
    line-height: 48px;
  }

  .ref-end-review .ref-end-counter-label {
    font-size: 15px;
    line-height: 24px;
  }

  .ref-end-review h3,
  .ref-end-instagram h2 {
    font-size: 26px;
    line-height: 34px;
  }

  .ref-end-reels {
    --ref-end-reel-width: min(282px, calc((100vw - 48px) / 1.1135));
    width: calc(100% + 2 * var(--ref-end-margin));
    justify-content: start;
    gap: 8px;
    overflow: auto;
    padding-inline: calc((100% + 2 * var(--ref-end-margin) - var(--ref-end-reel-width)) / 2);
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .ref-end-reel {
    width: var(--ref-end-reel-width);
    flex-basis: var(--ref-end-reel-width);
    scroll-snap-align: center;
  }

  .ref-end-dots {
    display: flex;
    gap: 3px;
    margin-top: 13px;
  }

  .ref-end-dots button {
    display: grid;
    width: 26px;
    height: 34px;
    place-items: center;
    border: 0;
    background: transparent;
  }

  .ref-end-dots button::before {
    width: 7px;
    height: 7px;
    border-radius: 20px;
    background: var(--accent, #b54b76);
    content: "";
    transition: width .2s, background .2s;
  }

  .ref-end-dots button[aria-pressed="true"]::before {
    width: 16px;
    background: var(--brand, #841536);
  }

  .ref-end-mosaic {
    grid-template-columns: minmax(0, 1fr);
  }

  .ref-end-mosaic-card:first-child > img {
    aspect-ratio: 1185 / 766;
  }

  .ref-end-mosaic h3,
  .ref-end-institute h3,
  .ref-end-institute-copy p {
    font-size: 22px;
    line-height: 30px;
  }

  .ref-end-mosaic p {
    font-size: 15px;
    line-height: 24px;
  }

  .ref-end-institute > img {
    aspect-ratio: 1;
  }

  .ref-end-institute-copy {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
    text-align: center;
  }

  .ref-end-institute-copy a {
    justify-self: center;
  }

  .ref-end-instagram-head {
    min-height: 0;
  }

  .ref-end-social-desktop {
    display: none;
  }

  .ref-end-social-mobile {
    display: flex;
    width: fit-content;
    margin: 24px auto 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ref-end-enter {
    animation: none;
  }
}
