.rest-page {
  --rest-blue: #384a9f;
  --rest-pink: #ef416f;
  --rest-mint: #dcefed;
  --rest-yellow: #fff0a8;
  --rest-ink: #172033;
  background: #f8f8fb;
}

.rest-page .section {
  overflow: clip;
}

.rest-page h1,
.rest-page h2,
.rest-page h3 {
  overflow-wrap: anywhere;
}

.rest-hero {
  padding-top: calc(var(--header-height) + 70px);
  background: linear-gradient(135deg, #f1f0f8 0%, #fff 58%, #dcefed 100%);
}

.rest-hero-layout,
.rest-split,
.rest-guarantee-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, .95fr);
  align-items: center;
  gap: clamp(36px, 6vw, 76px);
}

.rest-page.template-1 .rest-hero-layout,
.rest-page.template-4 .rest-hero-layout,
.rest-page.template-2 .rest-guarantee-layout {
  grid-template-columns: minmax(330px, .92fr) minmax(0, 1.08fr);
}

.rest-page.template-1 .rest-hero-copy,
.rest-page.template-4 .rest-hero-copy,
.rest-page.template-2 .rest-guarantee-copy {
  order: 2;
}

.rest-page.template-1 .rest-hero-media,
.rest-page.template-4 .rest-hero-media,
.rest-page.template-2 .rest-guarantee-visual {
  order: 1;
}

.rest-hero h1 {
  max-width: 840px;
  margin: 0 0 24px;
  font-size: clamp(2.7rem, 5.5vw, 5.25rem);
  line-height: .98;
}

.rest-hero-copy,
.rest-hero-media,
.rest-split > *,
.rest-guarantee-layout > *,
.rest-cta-panel > * {
  min-width: 0;
}

.rest-hero-media,
.rest-media,
.rest-card-image {
  position: relative;
}

.rest-hero-media img,
.rest-media img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 24px 70px rgba(23, 32, 51, .16);
}

.rest-page.template-3 .rest-hero-media img,
.rest-page.template-5 .rest-hero-media img {
  aspect-ratio: 1 / 1;
}

.guarantee-sticker {
  position: absolute;
  right: -16px;
  bottom: 20px;
  display: grid;
  place-items: center;
  width: 148px;
  min-height: 148px;
  padding: 18px;
  border: 5px solid #fff;
  border-radius: 50%;
  background: var(--rest-pink);
  box-shadow: 0 18px 40px rgba(23, 32, 51, .24);
  color: #fff;
  font-size: .83rem;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  text-transform: uppercase;
  transform: rotate(8deg);
}

.rest-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.rest-trust li {
  padding: 9px 12px;
  border: 1px solid rgba(56, 74, 159, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .84);
  color: var(--rest-blue);
  font-size: .84rem;
  font-weight: 800;
}

.rest-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.rest-card {
  overflow: hidden;
  border: 1px solid rgba(23, 32, 51, .1);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(23, 32, 51, .08);
}

.rest-card-image img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.rest-card-copy {
  padding: 24px;
}

.rest-card h3,
.rest-step h3 {
  margin: 0 0 10px;
}

.rest-card p,
.rest-step p {
  margin: 0;
}

.rest-example {
  background: #172033;
  color: #fff;
}

.rest-example .eyebrow {
  color: #ff8aab;
}

.rest-example-box {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  margin-top: 34px;
  border: 1px solid rgba(255, 255, 255, .15);
  border-radius: 8px;
  background: rgba(255, 255, 255, .15);
}

.rest-example-box div {
  padding: 26px;
  background: #202a40;
}

.rest-example-box strong {
  display: block;
  margin-bottom: 7px;
  color: #fff0a8;
  font-size: clamp(1.45rem, 3vw, 2.35rem);
}

.rest-accordion {
  display: grid;
  gap: 12px;
  max-width: 950px;
  margin: 34px auto 0;
}

.rest-accordion details {
  border: 1px solid rgba(23, 32, 51, .12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(23, 32, 51, .05);
}

.rest-accordion summary {
  position: relative;
  cursor: pointer;
  padding: 20px 58px 20px 22px;
  color: var(--rest-blue);
  font-weight: 900;
  list-style: none;
}

.rest-accordion summary::-webkit-details-marker {
  display: none;
}

.rest-accordion summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 22px;
  color: var(--rest-pink);
  font-size: 1.5rem;
  transform: translateY(-50%);
}

.rest-accordion details[open] summary::after {
  content: "−";
}

.rest-detail-copy {
  padding: 0 22px 22px;
}

.rest-detail-copy p:first-child {
  margin-top: 0;
}

.rest-detail-copy ul {
  columns: 2;
  padding-left: 20px;
}

.rest-process-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-top: 34px;
}

.rest-step {
  min-height: 230px;
  padding: 22px;
  border-top: 4px solid var(--rest-pink);
  border-radius: 0 0 8px 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(23, 32, 51, .07);
}

.rest-step span {
  display: block;
  margin-bottom: 34px;
  color: var(--rest-blue);
  font-size: 1.65rem;
  font-weight: 900;
}

.rest-guarantee {
  background: var(--rest-yellow);
}

.rest-guarantee-card {
  position: relative;
  min-height: 420px;
  border-radius: 8px;
  background: var(--rest-pink);
  box-shadow: 0 24px 70px rgba(23, 32, 51, .18);
}

.rest-guarantee-card .guarantee-sticker {
  inset: 50% auto auto 50%;
  width: 220px;
  min-height: 220px;
  font-size: 1.05rem;
  transform: translate(-50%, -50%) rotate(-7deg);
}

.rest-facts {
  background: #eef4f4;
}

.rest-fact-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 30px;
}

.rest-fact {
  padding: 20px;
  border-left: 4px solid var(--rest-blue);
  background: #fff;
}

.rest-fact span {
  display: block;
  color: #687184;
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.rest-fact strong {
  display: block;
  margin-top: 4px;
  font-size: 1.07rem;
}

.rest-link-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 24px;
}

.rest-link-grid a {
  padding: 8px 11px;
  border: 1px solid rgba(56, 74, 159, .17);
  border-radius: 999px;
  background: #fff;
  color: var(--rest-blue);
  font-size: .82rem;
  font-weight: 800;
}

.rest-cta {
  background: var(--rest-blue);
  color: #fff;
}

.rest-cta .eyebrow {
  color: #ff9ab5;
}

.rest-cta-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
}

.rest-legal-note {
  margin-top: 18px;
  color: #687184;
  font-size: .83rem;
}

.rest-page.template-2 .rest-card-grid,
.rest-page.template-5 .rest-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.rest-page.template-2 .rest-card:first-child,
.rest-page.template-5 .rest-card:last-child {
  grid-column: span 2;
}

@media (max-width: 960px) {
  .rest-hero-layout,
  .rest-split,
  .rest-guarantee-layout,
  .rest-page.template-1 .rest-hero-layout,
  .rest-page.template-4 .rest-hero-layout,
  .rest-page.template-2 .rest-guarantee-layout,
  .rest-cta-panel {
    grid-template-columns: 1fr;
  }

  .rest-page.template-1 .rest-hero-copy,
  .rest-page.template-4 .rest-hero-copy,
  .rest-page.template-2 .rest-guarantee-copy {
    order: 1;
  }

  .rest-page.template-1 .rest-hero-media,
  .rest-page.template-4 .rest-hero-media,
  .rest-page.template-2 .rest-guarantee-visual {
    order: 2;
  }

  .rest-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rest-card-grid,
  .rest-fact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .rest-hero {
    padding-top: calc(var(--header-height) + 46px);
  }

  .rest-hero h1 {
    font-size: 2.42rem;
  }

  .guarantee-sticker {
    right: 8px;
    bottom: 8px;
    width: 116px;
    min-height: 116px;
    border-width: 4px;
    font-size: .7rem;
  }

  .rest-card-grid,
  .rest-page.template-2 .rest-card-grid,
  .rest-page.template-5 .rest-card-grid,
  .rest-process-grid,
  .rest-fact-grid,
  .rest-example-box {
    grid-template-columns: 1fr;
  }

  .rest-page.template-2 .rest-card:first-child,
  .rest-page.template-5 .rest-card:last-child {
    grid-column: auto;
  }

  .rest-step {
    min-height: auto;
  }

  .rest-step span {
    margin-bottom: 20px;
  }

  .rest-detail-copy ul {
    columns: 1;
  }

  .rest-guarantee-card {
    min-height: 310px;
  }
}
