.cost-section {
  position: relative;
  z-index: 1;
  margin-top: -180px;
  padding: clamp(72px, 7vw, 112px) var(--gutter) clamp(100px, 9vw, 150px);
  background: var(--paper);
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

.cost-section__inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding-top: clamp(82px, 7.4vw, 112px);
}

.cost-card {
  position: relative;
  min-height: clamp(448px, 32.94vw, 510px);
  border-radius: 30px;
  background: linear-gradient(109deg, #2e3762 7%, #ca989a 87%);
}

.cost-card__copy {
  position: absolute;
  z-index: 2;
  top: clamp(45px, 3.82vw, 58px);
  bottom: clamp(40px, 3.1vw, 48px);
  left: clamp(46px, 4.17vw, 64px);
  display: flex;
  width: min(29%, 390px);
  flex-direction: column;
}

.cost-card__title,
.cost-card__lead,
.cost-card__growth p,
.cost-card__agreement,
.cost-card__status {
  margin: 0;
}

.cost-card__title {
  font-size: clamp(42px, 4.167vw, 65px);
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: normal;
}

.cost-card__title span {
  white-space: nowrap;
}

.cost-card__lead {
  margin-top: clamp(18px, 1.7vw, 26px);
  font-size: clamp(17px, 1.38vw, 20px);
  font-weight: 200;
  line-height: 1.4;
}

.cost-card__growth {
  margin-top: auto;
}

.cost-card__growth > p {
  font-size: clamp(13px, 1.111vw, 17px);
  line-height: 1.3;
}

.cost-card__stages {
  display: flex;
  align-items: center;
  gap: clamp(12px, 1.389vw, 20px);
  margin-top: 20px;
}

.cost-card__stages img {
  display: block;
  width: 27px;
  height: 27px;
  flex: 0 0 27px;
}

.cost-card__stages span {
  display: grid;
  min-height: 40px;
  padding: 9px clamp(14px, 1.389vw, 20px);
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 999px;
  font-size: clamp(13px, 1.111vw, 17px);
  line-height: 1;
  white-space: nowrap;
}

.cost-card__model {
  position: absolute;
  z-index: 1;
  bottom: 0;
  left: 50%;
  width: 43.5%;
  height: calc(100% + clamp(22px, 1.8vw, 26px));
  overflow: hidden;
  pointer-events: none;
  transform: translateX(-50%);
}

.cost-card__model img {
  position: absolute;
  top: 0;
  left: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: contain;
  object-position: center bottom;
}

.cost-card__form {
  position: absolute;
  z-index: 3;
  top: auto;
  right: clamp(48px, 4.93vw, 75px);
  bottom: clamp(40px, 3.1vw, 48px);
  display: grid;
  width: min(23%, 330px);
  gap: 28px;
}

.cost-card__field {
  display: block;
}

.cost-card__field input {
  width: 100%;
  height: 57px;
  padding: 0 20px;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 10px;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font: 400 16px/1 "Inter", sans-serif;
  transition: border-color .25s ease, background-color .25s ease, box-shadow .25s ease;
}

.cost-card__field input::placeholder {
  color: rgba(255, 255, 255, .92);
  opacity: 1;
}

.cost-card__field input:hover,
.cost-card__field input:focus {
  border-color: #ffffff;
  background: rgba(255, 255, 255, .08);
  box-shadow: 0 0 0 3px rgba(255, 255, 255, .15);
}

.cost-card__submit {
  display: flex;
  width: 100%;
  min-height: 59px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  border-radius: 999px;
  background: #212529;
  color: #ffffff;
  cursor: pointer;
  font: 400 16px/1 "Inter", sans-serif;
  transition: background-color .35s var(--ease-out), color .35s var(--ease-out),
    transform .35s var(--ease-out);
}

.cost-card__submit img {
  display: block;
  width: 28px;
  height: 28px;
  transform: rotate(-45deg);
  transition: transform .45s var(--ease-out), filter .35s var(--ease-out);
}

.cost-card__submit:hover,
.cost-card__submit:focus-visible {
  background: #ffffff;
  color: #212529;
  transform: translateY(-2px);
}

.cost-card__submit:hover img,
.cost-card__submit:focus-visible img {
  filter: invert(1);
  transform: translate(4px, -4px) rotate(-45deg);
}

.cost-card__submit:disabled {
  cursor: default;
  opacity: .75;
  transform: none;
}

.cost-card__status {
  padding: 11px 14px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 10px;
  font-size: 14px;
  line-height: 1.35;
}

.cost-card__note {
  /* форма — grid с gap:28px; тянем строку ближе к кнопке, чтобы она читалась
     как подпись под ней, а не как отдельный блок формы */
  margin-top: -16px;
  color: rgba(255, 255, 255, .6);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 1199px) {
  .cost-card__copy {
      left: 36px;
      width: 31%;
    }

  .cost-card__model {
      width: 42%;
    }

  .cost-card__form {
      right: 36px;
      width: 27%;
    }

  .cost-card__stages {
      gap: 9px;
    }

  .cost-card__stages span {
      min-height: 36px;
      padding: 8px 12px;
    }
}

@media (max-width: 899px) {
  .cost-section {
      margin-top: -140px;
      padding-top: 72px;
    }

  .cost-section__inner {
      padding-top: 0;
    }

  .cost-card {
      display: flex;
      min-height: 0;
      flex-direction: column;
      overflow: hidden;
      padding: 34px;
      border-radius: 24px;
    }

  .cost-card__copy,
    .cost-card__form {
      position: relative;
      inset: auto;
      width: 100%;
      transform: none;
    }

  .cost-card__copy {
      z-index: 3;
      display: block;
    }

  .cost-card__title {
      max-width: 520px;
    }

  .cost-card__lead br {
      display: none;
    }

  .cost-card__growth {
      margin-top: 34px;
    }

  .cost-card__model {
      position: relative;
      inset: auto;
      width: min(72%, 430px);
      height: 440px;
      margin: -60px -34px -120px auto;
      opacity: .96;
      transform: none;
      -webkit-mask-image: linear-gradient(to bottom, #fff 68%, transparent 100%);
      mask-image: linear-gradient(to bottom, #fff 68%, transparent 100%);
    }

  .cost-card__model img {
      object-position: right top;
    }

  .cost-card__form {
      z-index: 4;
      width: min(100%, 560px);
      margin: 0 auto;
      gap: 18px;
    }
}

@media (max-width: 767px) {
  .cost-card__title {
      font-size: clamp(30px, 7vw, 44px);
      line-height: 1.2;
    }
}

@media (max-width: 479px) {
  .cost-section {
      z-index: 2;
      margin-top: -60px;
      padding: 48px 20px 72px;
    }

  .cost-card {
      padding: 26px 22px 28px;
      border-radius: 22px;
    }

  .cost-card__title {
      font-size: clamp(30px, 7vw, 44px);
      line-height: 1.2;
    }

  .cost-card__lead {
      font-size: 17px;
      line-height: 1.45;
    }

  .cost-card__growth > p {
      font-size: 14px;
    }

  .cost-card__stages {
      gap: 8px;
    }

  .cost-card__stages img {
      width: 24px;
      height: 24px;
      flex-basis: 24px;
    }

  .cost-card__stages span {
      min-height: 34px;
      padding: 7px 10px;
      font-size: 13px;
    }

  .cost-card__model {
      width: calc(100% + 70px);
      height: 410px;
      margin: -20px -50px -95px auto;
      -webkit-mask-image: linear-gradient(to bottom, #fff 62%, transparent 100%);
      mask-image: linear-gradient(to bottom, #fff 62%, transparent 100%);
    }

  .cost-card__field input {
      height: 54px;
      font-size: 15px;
    }

  .cost-card__submit {
      min-height: 56px;
      font-size: 15px;
    }

  .cost-card__agreement {
      font-size: 12px;
    }
}
