body.factory-reference-page {
  background:
    linear-gradient(180deg, rgba(255, 247, 234, 0.98), rgba(216, 203, 184, 0.9)),
    var(--paper);
}

.factory-reference {
  width: 100%;
  overflow: hidden;
  background: rgba(255, 247, 234, 0.78);
}

.factory-cover {
  position: relative;
  min-height: 100dvh;
  overflow: hidden;
  background: var(--paper-soft);
}

.factory-cover__image {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 247, 234, 0.96) 0%, rgba(255, 247, 234, 0.82) 34%, rgba(255, 247, 234, 0.28) 58%, rgba(255, 247, 234, 0.06) 100%),
    url("../../img/hero.webp") center right / cover no-repeat;
  filter: saturate(0.82);
}

.factory-cover__content {
  position: relative;
  z-index: 1;
  width: min(44%, 500px);
  padding: clamp(150px, 20vh, 210px) 0 60px max(56px, calc((100vw - 1320px) / 2));
}

.factory-cover h1,
.factory-section-title h2,
.factory-trust h2 {
  margin: 0;
  color: #3c2f24;
  font-size: clamp(40px, 5vw, 70px);
  font-weight: 700;
  line-height: 0.94;
  text-transform: uppercase;
}

.factory-cover p {
  max-width: 420px;
  margin: 28px 0 30px;
  color: rgba(45, 37, 29, 0.68);
  font-family: var(--text-font);
  font-size: 15px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.55;
}

.factory-button {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 250px;
  min-height: 62px;
  padding: 0 32px;
  border: 1px solid var(--wine);
  border-radius: 14px;
  color: var(--white);
  background: transparent;
  font-family: var(--text-font);
  font-size: 14px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
  transition:
    color 260ms ease,
    box-shadow 260ms ease,
    transform 260ms ease;
}

.factory-button::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--wine);
  transform: scaleX(1);
  transform-origin: right;
  transition: transform 460ms cubic-bezier(0.2, 0, 0, 1);
}

.factory-button:hover {
  color: var(--wine);
  box-shadow: 0 16px 38px rgba(76, 54, 33, 0.12);
  transform: translateY(-2px);
}

.factory-button:hover::before {
  transform: scaleX(0);
}

.factory-advantages {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  width: min(100% - 72px, 1600px);
  margin: -82px auto 0;
  position: relative;
  z-index: 2;
  border-radius: 18px;
  background: rgba(255, 247, 234, 0.86);
  box-shadow: 0 24px 70px rgba(76, 54, 33, 0.12);
}

.factory-advantages article {
  min-height: 210px;
  padding: 36px 24px 30px;
  border-right: 1px solid rgba(140, 29, 36, 0.12);
  text-align: center;
}

.factory-advantages article:last-child {
  border-right: 0;
}

.factory-advantages i {
  display: block;
  margin-bottom: 22px;
  color: rgba(140, 29, 36, 0.72);
  font-size: 42px;
}

.factory-advantages h2,
.factory-process h3 {
  margin: 0;
  color: #4a382c;
  font-family: var(--text-font);
  font-size: 13px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.25;
  text-transform: uppercase;
}

.factory-advantages p,
.factory-process p,
.factory-trust p,
.factory-trust li {
  margin: 14px 0 0;
  color: rgba(45, 37, 29, 0.62);
  font-family: var(--text-font);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
  line-height: 1.45;
}

.factory-process {
  width: min(100% - 72px, 1600px);
  margin: 0 auto;
  padding: 82px 0 58px;
}

.factory-section-title {
  display: grid;
  justify-items: center;
  margin-bottom: 34px;
  text-align: center;
}

.factory-section-title h2 {
  font-size: clamp(34px, 3.8vw, 54px);
}

.factory-section-title img {
  width: 84px;
  height: auto;
  margin-top: 8px;
  opacity: 0.84;
}

.factory-process__grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: clamp(18px, 1.45vw, 28px);
}

.factory-process article {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 4px;
}

.factory-process article img {
  display: block;
  width: 100%;
  aspect-ratio: 1.24;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 16px 38px rgba(76, 54, 33, 0.1);
}

.factory-process b {
  position: absolute;
  left: 14px;
  top: calc((min(100vw - 72px, 1600px) - (5 * clamp(18px, 1.45vw, 28px))) / 6 / 1.24 - 17px);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  color: var(--white);
  background: var(--wine);
  box-shadow: 0 10px 22px rgba(159, 31, 42, 0.22);
  font: 800 15px/1 var(--text-font);
  z-index: 2;
}

.factory-process h3 {
  min-height: 2.45em;
  margin: 6px 0 0;
  padding-right: 6px;
  line-height: 1.18;
}

.factory-process p {
  margin: 0;
  max-width: 95%;
}

.factory-trust {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr 0.78fr;
  gap: 22px;
  width: min(100% - 72px, 1600px);
  margin: 0 auto;
  padding: 28px 0 86px;
}

.factory-trust article {
  min-height: 330px;
  border: 1px solid rgba(140, 29, 36, 0.08);
  border-radius: 18px;
  background: rgba(255, 247, 234, 0.76);
  box-shadow: 0 20px 56px rgba(76, 54, 33, 0.08);
}

.factory-trust__list,
.factory-trust__statement {
  padding: 44px;
}

.factory-trust h2 {
  font-size: clamp(30px, 3vw, 48px);
}

.factory-trust ul {
  display: grid;
  gap: 12px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.factory-trust li {
  position: relative;
  margin: 0;
  padding-left: 28px;
}

.factory-trust li::before {
  content: "\F26A";
  position: absolute;
  left: 0;
  top: 1px;
  color: var(--wine);
  font-family: "bootstrap-icons";
  font-size: 15px;
}

.factory-trust__photo {
  overflow: hidden;
}

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

.factory-trust__statement {
  display: grid;
  align-content: center;
}

.factory-trust__statement img {
  justify-self: end;
  width: 110px;
  margin-top: 34px;
  opacity: 0.86;
}

@media (max-width: 1180px) {
  .factory-advantages,
  .factory-process__grid,
  .factory-trust {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .factory-advantages article:nth-child(2n) {
    border-right: 0;
  }

  .factory-trust__photo {
    min-height: 360px;
  }

  .factory-process b {
    top: calc((min(100vw - 72px, 1600px) - clamp(18px, 1.45vw, 28px)) / 2 / 1.24 - 17px);
  }
}

@media (max-width: 760px) {
  .factory-cover {
    min-height: 760px;
  }

  .factory-cover__image {
    background:
      linear-gradient(180deg, rgba(255, 247, 234, 0.94) 0%, rgba(255, 247, 234, 0.82) 50%, rgba(255, 247, 234, 0.5) 100%),
      url("../../img/hero.webp") center / cover no-repeat;
  }

  .factory-cover__content {
    width: 100%;
    padding: 128px 24px 300px;
  }

  .factory-cover h1 {
    font-size: 38px;
  }

  .factory-button {
    width: min(100%, 320px);
    min-width: 0;
    min-height: 62px;
    padding: 0 18px;
  }

  .factory-advantages,
  .factory-process,
  .factory-trust {
    width: min(100% - 32px, 430px);
  }

  .factory-advantages {
    grid-template-columns: 1fr;
    margin-top: -70px;
  }

  .factory-advantages article {
    min-height: 0;
    padding: 28px 22px;
    border-right: 0;
    border-bottom: 1px solid rgba(140, 29, 36, 0.12);
  }

  .factory-advantages article:last-child {
    border-bottom: 0;
  }

  .factory-process {
    padding: 58px 0 28px;
  }

  .factory-process__grid,
  .factory-trust {
    grid-template-columns: 1fr;
  }

  .factory-process article img {
    aspect-ratio: 1.6;
  }

  .factory-process b {
    top: calc((min(100vw - 32px, 430px)) / 1.6 - 17px);
  }

  .factory-trust {
    padding-bottom: 64px;
  }

  .factory-trust__list,
  .factory-trust__statement {
    padding: 32px 24px;
  }
}

@media (max-width: 760px) {
  .factory-cover__content {
    box-sizing: border-box;
    max-width: 100%;
    padding-inline: 24px;
  }

  .factory-cover h1 {
    max-width: 100%;
    font-size: clamp(34px, 9.4vw, 38px);
    line-height: 1.05;
    letter-spacing: 0;
    overflow-wrap: break-word;
    text-wrap: balance;
    word-spacing: 0.08em;
  }

  .factory-cover p {
    max-width: 100%;
    text-wrap: pretty;
  }
}
