:after,
:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.btn--huge {
  cursor: pointer;
  position: relative;
  height: 45px;
  background-color: var(--secondary);
  text-transform: uppercase;
  display: inline-block;
  color: fff;
  font-family: Arial;
  font-weight: 800;
  letter-spacing: 1px;
  padding: 0 30px 0 50px;
  white-space: nowrap;
}

.btn--huge:before {
  -webkit-transition: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: all 0.5s cubic-bezier(0.785, 0.15, 0.15, 0.86);
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 30px;
  height: 100%;
  background-color: #d6d4d3;
}

.btn--huge:after {
  -webkit-transition: cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: all 0.5s cubic-bezier(0.785, 0.15, 0.15, 0.86);
  content: "→";
  font-size: 14px;
  line-height: 1;
  color: #d6d4d3;
  position: absolute;
  left: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  background: var(--primary);
  z-index: 2;
  border-radius: 50%;
  border: 1px solid #d6d4d3;
}

.btn--huge__text {
  position: relative;
  top: -1px;
  -webkit-transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  height: 100%;
  display: flex;
  align-items: center;
}

.btn--huge__text div {
  position: relative;
  color: #ffffff;
}

.btn--huge__text span {
  -webkit-transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  transition: all 0.5s cubic-bezier(0.785, 0.135, 0.15, 0.86);
  overflow: hidden;
  position: absolute;
  white-space: nowrap;
  top: 0;
  left: 0;
  color: #ffffff;
  width: 0;
}

.btn--huge:hover:after {
  -webkit-transform: translateX(-30px);
  transform: translateX(-30px);
}

.btn--huge:hover:before {
  width: 0;
}

.btn--huge:hover .btn--huge__text span {
  width: 100%;
}

/* ------------------------------- */

.th-btn {
  position: relative;
  z-index: 2;
  overflow: hidden;
  vertical-align: middle;
  display: inline-block;
  border: none;
  text-transform: uppercase;
  text-align: center;
  background-color: var(--primary);
  color: white;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 21px 30px;
  min-width: 170px;
  border-radius: 6px;
}

.th-btn:before {
  content: "";
  position: absolute;
  height: calc(100% + 2px);
  width: calc(100% + 30px);
  top: -1px;
  right: 100%;
  background-color: var(--primary);
  z-index: -1;
  -webkit-transition: all 0.4s ease-out;
  transition: all 0.4s ease-out;
  border-radius: inherit;
  -webkit-clip-path: polygon(
    calc(100% - 30px) 0,
    100% 50%,
    calc(100% - 30px) 100%,
    0 100%,
    0 0
  );
  clip-path: polygon(
    calc(100% - 30px) 0,
    100% 50%,
    calc(100% - 30px) 100%,
    0 100%,
    0 0
  );
}

.th-btn:hover,
.th-btn.active {
  color: white;
  box-shadow: none;
}

.th-btn:hover:before,
.th-btn.active:before {
  right: -30px;
}

.th-btn.style2 {
  background-color: transparent;
  color: white;
  border: 1px solid white;
  padding: 20px 40px;
  box-shadow: none;
}

.th-btn.style2:hover {
  color: var(--title-color);
  border-color: white;
}

.th-btn.style2:hover:before,
.th-btn.style2:hover:after {
  background-color: white;
}

.th-btn.style3:hover {
  color: var(--primary);
}

.th-btn.style3:hover:before,
.th-btn.style3:hover:after {
  background-color: black;
}
