/* CTA block after FAQ. Loaded after main.css so the live page can take this file alone. */

#cta {
  background: var(--color-ink, #0a0a0a);
}

#cta .section__head {
  max-width: none;
}

#cta .section__head h2 {
  color: #fff;
  font-family: var(--font-display, "Geologica", sans-serif);
  font-weight: 300;
  font-size: clamp(44px, 3.9vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.045em;
}

@media (max-width: 1024px) {
  #cta .section__head h2 {
    font-size: clamp(38px, 5.4vw, 52px);
    line-height: 1.12;
  }
}

@media (max-width: 600px) {
  #cta .section__head h2 {
    font-size: clamp(30px, 8vw, 42px);
    line-height: 1.14;
  }
}

#cta .cta-contacts,
#cta .cta-contacts__note,
#cta .contacts-block__link {
  color: #fff;
}

#cta .section__head p {
  max-width: 40rem;
  color: rgba(255, 255, 255, 0.72);
}

#cta .contacts-block__link:hover,
#cta .contacts-block__link:focus-visible {
  color: var(--color-accent, #ff6200);
}

#cta .cta-grid > .form,
#cta .cta-brief {
  color: var(--color-ink, #0a0a0a);
  background: #fff;
  box-sizing: border-box;
}

#cta .cta-brief {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
  padding: 32px;
  border: 1px solid var(--color-border, #c2cad2);
  border-radius: 16px;
}

@media (min-width: 768px) {
  #cta .cta-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: start;
  }
}

.cta-brief .btn {
  margin-top: 0;
}

.cta-step__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid #ececee;
}

.cta-step__count,
.cta-step__kicker,
.cta-step__hint {
  margin: 0;
  color: #71717a;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.cta-step__fill {
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 3px;
  width: 0;
  background: var(--color-accent, #ff6200);
  transition: width 0.45s ease;
}

.cta-step__reveal {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.6s ease-in-out;
}

.cta-step__reveal.is-open {
  grid-template-rows: 1fr;
}

.cta-step__reveal-inner {
  min-height: 0;
  overflow: hidden;
}

.cta-step__reveal .cta-step__extra {
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.6s ease-in-out, transform 0.6s ease-in-out;
}

.cta-step__reveal.is-open .cta-step__extra {
  opacity: 1;
  transform: translateY(0);
  transition-delay: 0.1s;
}

.cta-step__kicker {
  margin-top: 14px;
}

.cta-step__q {
  margin: 4px 0 0;
  font-size: 1.05rem;
  font-weight: 650;
  line-height: 1.3;
}

.cta-step__hint {
  margin-top: 4px;
}

.cta-step__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.cta-choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 16px;
  background: #fff;
  color: var(--color-ink, #0a0a0a);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transform: scale(1);
  transform-origin: center;
  transition-property: border-color, box-shadow, transform;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

.cta-choice:hover,
.cta-choice:focus-visible {
  transform: scale(1.01);
  border-color: var(--color-accent, #ff6200);
}

.cta-choice:active {
  transform: scale(0.99);
}

.cta-choice__mark {
  width: 18px;
  height: 18px;
  flex: none;
  border-radius: 50%;
  border: 1.5px solid #d4d4d8;
  background: #fff;
  display: grid;
  place-items: center;
  transition: border-color 0.35s ease, background 0.35s ease;
}

.cta-choice.is-on {
  border-color: var(--color-accent, #ff6200);
  background: #fff;
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
}

.cta-choice.is-on .cta-choice__mark {
  border-color: var(--color-accent, #ff6200);
  background: var(--color-accent, #ff6200);
}

.cta-choice.is-on .cta-choice__mark::after {
  content: "";
  width: 8px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translate(0, -1px);
}

.cta-step__extra,
.cta-step__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.875rem;
  font-weight: 600;
}

.cta-step__extra input,
.cta-step__field input,
.cta-step__field textarea {
  min-height: 44px;
  padding: 10px 12px;
  border: 1px solid var(--color-border, #c2cad2);
  border-radius: 8px;
  background: #fff;
  font: inherit;
  font-weight: 400;
  width: 100%;
}

.cta-step__field textarea {
  min-height: 88px;
  resize: vertical;
}

.cta-step__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  font-weight: 400;
  line-height: 1.4;
}

.cta-step__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #ececee;
}

.cta-step__prev {
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: none;
  color: #3f3f46;
  font: inherit;
  cursor: pointer;
}

.cta-step__prev:disabled,
.cta-step__next:disabled {
  opacity: 0.4;
  cursor: default;
}

.cta-step__next {
  min-height: 40px;
  padding-inline: 16px;
}

.cta-step__done p {
  margin: 8px 0 0;
  line-height: 1.45;
}

#lead-form .form__field input,
#lead-form .form__field textarea {
  border: 1px solid rgba(10, 10, 10, 0.1);
  border-radius: 16px;
  background: #fff;
  transform: scale(1);
  transform-origin: center;
  transition-property: border-color, box-shadow, transform;
  transition-duration: 0.35s;
  transition-timing-function: ease;
}

#lead-form .form__field input:hover,
#lead-form .form__field textarea:hover,
#lead-form .form__field input:focus,
#lead-form .form__field textarea:focus {
  transform: scale(1.01);
  border-color: var(--color-accent, #ff6200);
}

#lead-form .form__field input:focus,
#lead-form .form__field textarea:focus {
  box-shadow: 0 10px 28px rgba(10, 10, 10, 0.06);
  outline: none;
}

#lead-form .form__field input:active,
#lead-form .form__field textarea:active {
  transform: scale(0.99);
}

@media (prefers-reduced-motion: reduce) {
  .cta-choice,
  .cta-choice__mark,
  .cta-step__fill,
  .cta-step__reveal,
  .cta-step__reveal .cta-step__extra,
  #lead-form .form__field input,
  #lead-form .form__field textarea {
    transition-duration: 0.01ms;
    transition-delay: 0s;
  }
}
