*,
*::before,
*::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-base);
  font-weight: 400;
  color: #1b1b1b;
  line-height: 1.6;
  background: #fff;
}

.prefa_page {
  padding-block: clamp(24px, 6vh, 56px);
}

.prefa_inner {
  width: min(100% - 2rem, 860px);
  margin-inline: auto;
}

.prefa_head {
  text-align: center;
}

.prefa_title {
  margin: 0;
  font-weight: 400;
  line-height: 1.15;
  color: var(--color-dark);
  font-family: var(--font-display);
  font-size: var(--fs-h2);
}

.prefa_subtitle {
  margin: 10px auto 0;
  max-width: 60ch;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: clamp(14px, 1vw + 0.35rem, 18px);
  line-height: 1.5;
  color: #6b544b;
  text-wrap: balance;
}

.prefa_banner {
  margin: clamp(16px, 4vh, 26px) auto 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
  border: 1px solid rgba(199, 165, 150, .55);
}

.prefa_banner img {
  width: 100%;
  height: auto;
  display: block;
}

.prefa_body {
  margin-top: clamp(40px, 4vh, 60px);
  margin-bottom: clamp(40px, 4vh, 60px);
}

.prefa_text::after {
  content: "";
  display: block;
  clear: both;
}

.prefa_text {
  display: block;
  font-family: var(--font-base);
  font-weight: 400;
  font-size: clamp(15px, 1.05vw, 16px);
  line-height: 1.7;
  color: #4a3a33;
}

.prefa_logo--float {
  float: right;
  width: 40%;
  max-width: 140px;
  margin: 0.5rem 0 0.5rem 1rem;
  shape-outside: margin-box;
  position: relative;
  z-index: 1;
}

.prefa_logo--float img {
  width: 100%;
  height: auto;
  display: block;
}

.prefa_text h2,
.prefa_text h3 {
  margin: 0 0 .75rem 0;
  font-family: var(--font-base);
  font-weight: 600;
  color: #3f2f29;
  margin-top: 10px;
}

.prefa_text h2:first-of-type,
.prefa_text h3:first-of-type {
  margin-top: 20px;
}

.prefa_text p {
  margin: 0 0 1em 0;
}

.prefa_text p:last-child {
  margin-bottom: 0;
}

.prefa_fixedgrid {
  --gap: 16px;
  gap: var(--gap);
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: var(--cell, 300px);
  margin-top: clamp(22px, 5vh, 40px);
}

.prefa_fixedgrid-item {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0,0,0,.04);
}

.prefa_fixedgrid-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

@media (min-width: 600px) {
  .prefa_fixedgrid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .prefa_body {
    margin-top: clamp(70px, 4vh, 28px);
    margin-bottom: clamp(70px, 4vh, 28px);
  }

  .prefa_logo--float {
    width: clamp(110px, 14vw, 170px);
    max-width: none;
    margin: 0 0 14px 18px;
  }

  .prefa_fixedgrid {
    --gap: 8px;
    grid-template-columns: repeat(3, 1fr);
  }

  .prefa_fixedgrid-item:nth-child(4) {
    grid-column: 2;
    grid-row: 1 / span 2;
  }

  .prefa_fixedgrid-item:nth-child(7) {
    grid-column: 3;
    grid-row: 2 / span 2;
  }
}
