.header {
  margin-bottom: 0;
}

.masthead {
  background-color: var(--grey-main);
  height: 640px;
  position: relative;
  overflow: hidden;
  --hero-base: 1400;
  --hero-scale: clamp(0.6, calc(100vw / var(--hero-base)), 1);
}
.masthead__inner::after {
  content: "";
  position: absolute;
  top: -229px;
  right: -8px;
  width: 1030px;
  height: 1051px;
  pointer-events: none;
  z-index: 0;
  background-image: url("../img/global/masthead.svg");
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  transform: scale(var(--hero-scale));
  transform-origin: right top;
}
.masthead__header {
  padding-top: 138px;
}
.masthead__title {
  margin-bottom: 32px;
}
.masthead__heading {
  max-width: 430px;
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--grey-100);
  line-height: 120%;
}
.masthead__form {
  margin-top: 22px;
  max-width: 567px;
  width: 100%;
}
.masthead__content {
  /* display: flex; */
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  /* justify-content: space-between; */
  gap: 16px;
  margin-bottom: 21px;
}
.masthead__box {
  width: 100%;
}
.masthead__input {
  background-color: rgba(255, 255, 255, 0.0784313725);
  border: 1px solid transparent;
  outline: none;
  padding: 13px 12px;
  border-radius: 8px;
  width: 100%;
  color: var(--grey-100);
  font-size: 14px;
  font-weight: var(--font-weight-regular);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
  resize: none;
}
.masthead__input::-moz-placeholder {
  color: var(--grey-100);
  opacity: 1;
}
.masthead__input::placeholder {
  color: var(--grey-100);
  opacity: 1;
}
.masthead__input::-moz-placeholder {
  color: var(--grey-100);
  opacity: 1;
}
.masthead__input:focus, .masthead__input:focus-visible {
  border-color: var(--brand-400);
}
.masthead__btn {
  margin-top: 84px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
}
.masthead__attach {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  color: var(--brand-main);
}
.masthead__file {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.masthead__file-label {
  display: flex;
  align-items: center;
  font-size: 12px;
  gap: 8px;
  cursor: pointer;
  -webkit-user-select: none;
     -moz-user-select: none;
          user-select: none;
  color: var(--brand-main);
  transition: var(--base-transition);
}
.masthead__file-label.is-attached + .masthead__file-clear {
  display: flex;
}
.masthead__file-label:hover .masthead__file-text {
  text-decoration: underline;
}
.masthead__file-label.is-attached .masthead__attach-ico {
  opacity: 1;
}
.masthead__file-text {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.masthead__file-clear {
  display: none;
  width: 22px;
  height: 22px;
  border: 0;
  background: transparent;
  cursor: pointer;
  color: var(--brand-main);
  border-radius: 6px;
  justify-content: center;
  align-items: center;
}
.masthead__file-clear:hover {
  background: rgba(255, 255, 255, 0.0784313725);
}
.masthead .clip-icon {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
}
.masthead__clear-ico {
  width: 16px;
  height: 16px;
}
.masthead .arrow-icon {
  fill: none;
  width: 12px;
  height: 12px;
  stroke: var(--brand-200);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.masthead .masthead__box.is-invalid .masthead__input {
  border-color: var(--danger-400, #e53935) !important;
  color: var(--danger-400, #e53935);
}
.masthead .masthead__box.is-invalid .masthead__input::-moz-placeholder {
  color: var(--danger-400, #e53935);
  opacity: 1;
}
.masthead .masthead__box.is-invalid .masthead__input::placeholder {
  color: var(--danger-400, #e53935);
  opacity: 1;
}

.stages {
  position: relative;
  --overlap: 44px;
  margin-top: calc(var(--overlap) * -1);
  padding-top: 112px;
  margin-bottom: 112px;
  background: transparent;
  isolation: isolate;
}
.stages::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  border-top-left-radius: 44px;
  border-top-right-radius: 44px;
  z-index: -1;
}
.stages__header {
  margin-bottom: 64px;
}
.stages__desc {
  display: none;
}
.stages__items {
  margin-bottom: 112px;
  display: flex;
  justify-content: space-between;
}
.stages__item {
  padding: 32px 28px;
  border-radius: 20px;
  box-shadow: 0 0 50px rgba(109, 129, 143, 0.13);
  display: flex;
  align-items: center;
  gap: 26px;
}
.stages__item.orange .stages__item-num {
  background-color: var(--brand-main);
  color: var(--grey-100);
}
.stages__item-num {
  font-size: 32px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 120%;
  background-color: var(--grey-300);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 62px;
  height: 62px;
  border-radius: 8px;
}
.stages__item-title {
  font-size: 20px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 120%;
  max-width: 194px;
}
.stages__circs {
  border: 1px solid var(--grey-300);
  background-color: var(--grey-200);
  padding: 44px;
  border-radius: 20px;
}
.stages__circs p {
  font-size: 32px;
  font-weight: var(--font-weight-semibold);
  color: var(--color-text);
  line-height: 120%;
  margin-bottom: 40px;
}
.stages__circs ul {
  list-style: none;
  padding: 0;
  margin-bottom: 40px;
  counter-reset: circ;
}
.stages__circs li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  font-weight: var(--font-weight-regular);
  color: var(--color-text);
  line-height: 130%;
  margin-bottom: 16px;
}
.stages__circs li::before {
  content: counter(circ);
  counter-increment: circ;
  position: absolute;
  left: 0;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--grey-300);
  color: var(--grey-700);
  font-weight: var(--font-weight-regular);
  font-size: 11px;
  line-height: 130%;
}
.stages__circs li:last-child {
  margin-bottom: 0;
}
.stages__circs span {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--grey-500);
  padding: 22px 21px;
  border: 1px solid var(--grey-400);
  border-radius: 20px;
  font-size: 14px;
}
.stages__circs span svg {
  margin-top: 3px;
}

section:last-of-type {
  margin-bottom: 0;
}

@media screen and (max-width: 1600px) {
  .masthead__inner::after {
    right: -175px;
  }
}
@media screen and (max-width: 1400px) {
  .masthead {
    height: 600px;
  }
  .masthead__inner::after {
    right: -185px;
    top: -198px;
    width: 950px;
    height: 951px;
  }
  .stages__item {
    padding: 16px;
    gap: 14px;
  }
  .stages__item-title {
    font-size: 16px;
  }
  .stages__item-num {
    font-size: 22px;
    width: 45px;
    height: 45px;
  }
}
@media screen and (max-width: 1280px) {
  .masthead__inner::after {
    right: -144px;
    top: -128px;
    width: 750px;
    height: 751px;
    background-image: url("../img/global/masthead_mob.png");
  }
  .stages__item {
    padding: 16px;
    gap: 14px;
    width: 230px;
  }
  .stages__item-title {
    font-size: 14px;
  }
  .stages__item-num {
    font-size: 22px;
    width: 35px;
    height: 35px;
    min-width: 35px;
    min-height: 35px;
  }
}
@media screen and (max-width: 1024px) {
  .masthead {
    height: 528px;
  }
  .masthead__header {
    padding-top: 70px;
    margin-bottom: 55px;
    position: relative;
    z-index: 1;
  }
  .masthead__inner::after {
    right: -135px;
    top: -94px;
    width: 582px;
    height: 575px;
  }
  .masthead__content {
    flex-direction: column;
  }
  .masthead__form {
    max-width: 423px;
  }
  .masthead__btn {
    margin-top: 36px;
  }
  .stages__items {
    flex-wrap: wrap;
    gap: 14px;
  }
  .stages__item {
    width: 49%;
  }
}
@media screen and (max-width: 768px) {
  .masthead {
    height: 568px;
  }
  .masthead__inner::after {
    right: -92px;
    top: unset;
    bottom: 0;
    width: 489px;
    height: 332px;
    background-image: url("../img/global/masthead_sumer-mob.png");
  }
  .masthead__header {
    padding-top: 74px;
    margin-bottom: unset;
  }
  .masthead__title {
    margin-bottom: 25px;
    padding-left: 3px;
  }
  .masthead__heading {
    max-width: unset;
    font-size: 16px;
    padding-right: 20%;
    padding-left: 3px;
  }
  .masthead__form {
    margin-top: 25px;
    max-width: 63%;
    padding-left: 3px;
  }
  .masthead__file-text {
    max-width: unset;
    white-space: unset;
    overflow: unset;
    text-overflow: unset;
    padding-right: 30%;
  }
  .masthead__file-label {
    gap: 13px;
  }
  .masthead__content {
    margin-bottom: 23px;
    grid-template-columns: 1fr;
  }
  .masthead .clip-icon {
    margin-top: -5px;
    margin-left: 2px;
  }
  .masthead__btn {
    margin-top: 53px;
    padding: 12px 18px;
  }
  .masthead__btn svg {
    display: none;
  }
  .stages {
    margin-top: 28px;
    padding-top: unset;
    margin-bottom: 28px;
  }
  .stages::before {
    position: unset;
  }
  .stages__desc {
    display: block;
    margin-top: 16px;
  }
  .stages__header {
    margin-bottom: 32px;
  }
  .stages__items {
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 28px;
  }
  .stages__item {
    padding: 20px;
    width: 100%;
  }
  .stages__item.orange {
    background-color: var(--brand-main);
  }
  .stages__item.orange .stages__item-num {
    background-color: var(--grey-100);
    color: var(--brand-main);
  }
  .stages__item.orange .stages__item-title {
    color: var(--grey-100);
  }
  .stages__item-num {
    font-size: 16px;
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
  }
  .stages__item-title {
    font-size: 16px;
    max-width: unset;
  }
  .stages__circs {
    padding: 28px;
    margin: 0 -28px;
  }
  .stages__circs p {
    font-size: 20px;
    margin-bottom: 20px;
  }
  .stages__circs li {
    font-size: 14px;
  }
  .stages__circs span {
    padding: 16px;
    font-size: 12px;
  }
  .stages__circs span svg {
    min-width: 12px;
    min-height: 12px;
  }
}