.cta-main__wrapper {
  align-items: flex-start;
  display: flex;
  gap: 2.5rem;
}

.cta-main__card {
  background-color: var(--primary-4);
  border-radius: 0.75rem;
  color: #fff;
  display: flex;
  flex: 0 0 17.5rem;
  flex-direction: column;
  padding: 1.5rem;
}

.cta-main__content {
  flex: 1 1 auto;
}

.cta-main__title {
  color: var(--gray-1);
  font-weight: 600;
  letter-spacing: -1%;
  line-height: 1.2;
  margin-bottom: 0.125rem;
}

.cta-main__description {
  max-width: 43.75rem;
}

.cta-main__description p {
  color: var(--gray-1);
  line-height: 1.5;
}

.dark-bg .cta-main__description p {
    color: var(--primary-7);
}

.cta-main__form-title {
  margin-bottom: 0.5rem;
}
.cta-main__form-title p {
  color: var(--gray-1);
  font-weight: 600;
  line-height: 1.2;
}

.cta-main__form-title span {
  color: var(--primary-4);
}

.cta-main__form {
  margin-bottom: 1.5rem;
}

.cta-main__form-subtitle {
  color: var(--primary-7);
  margin-bottom: 1rem;
  opacity: 0.8;
}

.cta-main__form-row {
  display: flex;
  gap: 1rem;
}

.cta-main__input {
  background-color: var(--primary-11);
  border: 0.0625rem solid var(--primary-9);
  border-radius: 0.25rem;
  color: var(--gray-1);
  flex: 1 1 auto;
  font-size: 1rem;
  height: 2.625rem;
  max-width: 31.25rem;
  padding: 0.5rem 1rem;
}

.cta-main__input::placeholder {
  color: var(--primary-7);
}

.cta-main__button {
  background-color: var(--primary-4);
  border-radius: 0.25rem;
  color: #fff;
  font-weight: 600;
  height: 2.625rem;
  padding: 0 1.5rem;
  transition: background-color 0.3s;
}

.cta-main__button:hover {
  background-color: var(--primary-5);
}

.cta-main__messenger p {
  color: var(--primary-7);
  font-size: 1rem;
  opacity: 0.8;
}

.cta-main__messenger-links {
  display: flex;
  gap: 1rem;
}

.cta-main__messenger-link {
  align-items: center;
  color: var(--primary-4);
  display: flex;
  font-size: 1rem;
  gap: 0.5rem;
  transition: color 0.3s;
}

.cta-main__messenger-link .icon {
  height: 1.25rem;
  width: 1.25rem;
  fill: currentColor;
}

.cta-main__messenger-link:hover {
  color: var(--primary-5);
}

.card-cta {
  background-color: var(--primary-6);
  border-radius: 0.75rem;
  color: #fff;
  display: flex;
  flex: 0 0 25rem;
  flex-direction: column;
  height: 31.875rem;
  justify-content: space-between;
  padding: 1.5rem;
}

.card-cta__label {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 3.125rem;
}

.card-cta__subtitle {
  color: var(--primary-7);
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 0.625rem;
}

.card-cta__title {
  flex-grow: 1;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: auto;
}

.card-cta__footer {
  color: var(--primary-7);
  font-size: 0.875rem;
  margin-top: 3.125rem;
  opacity: 0.8;
  width: 100%;
  display: flex;
  justify-content: space-between;
}

@media (max-width: 61.99875rem) {
  .cta-main__wrapper {
    align-items: center;
    flex-direction: column;
    gap: 1.25rem;
  }

  .card-cta,
  .cta-main__card {
    max-width: 25rem;
    width: 100%;
  }
}

@media (max-width: 47.99875rem) {
  .cta-main__description,
  .cta-main__title {
    text-align: center;
  }

  .cta-main__form-title {
    margin-bottom: 0.25rem;
    text-align: center;
  }

  .cta-main__form-subtitle {
    margin-bottom: 0.25rem;
  }

  .cta-main__form-row {
    flex-direction: column;
    gap: 0.75rem;
  }

  .cta-main__button,
  .cta-main__input {
    padding: 0.5rem 0.75rem;
  }

  .cta-main__messenger {
    text-align: center;
  }

  .cta-main__messenger-link {
    background-color: #14223e;
  }

  .card-cta {
    flex: 0 0 28.125rem;
  }
}

@media (min-width: 20em) and (max-width: 120em) {
  .cta-main__title {
    font-size: clamp(2rem, 1.8rem + 1vw, 3rem);
  }

  .cta-main__description {
    margin-bottom: clamp(1rem, 0.8rem + 1vw, 2rem);
  }

  .cta-main__description p {
    font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
  }

  .cta-main__form-title p {
    font-size: clamp(1.125rem, 1.05rem + 0.375vw, 1.5rem);
  }

  .cta-main__form-subtitle {
    font-size: clamp(0.875rem, 0.85rem + 0.125vw, 1rem);
  }

  .cta-main__messenger p {
    margin-bottom: clamp(0.5rem, 0.4rem + 0.5vw, 1rem);
  }

  .card-cta__subtitle {
    font-size: clamp(1rem, 0.975rem + 0.125vw, 1.125rem);
  }

  .card-cta__title {
    font-size: clamp(2.25rem, 2.2rem + 0.25vw, 2.5rem);
  }
}

@media (min-width: 120em) {
  .cta-main__title {
    font-size: 3rem;
  }

  .cta-main__description {
    margin-bottom: 2rem;
  }

  .cta-main__description p {
    font-size: 1.125rem;
  }

  .cta-main__form-title p {
    font-size: 1.5rem;
  }

  .cta-main__form-subtitle {
    font-size: 1rem;
  }

  .cta-main__messenger p {
    margin-bottom: 1rem;
  }

  .card-cta__subtitle {
    font-size: 1.125rem;
  }

  .card-cta__title {
    font-size: 2.5rem;
  }
}
