/* CTA / 7 — форма после новостей */

body:has(.sp-cta-form) .page,
body:has(.sp-cta-form) .content {
  overflow: visible;
}

.sp-cta-form {
  box-sizing: border-box;
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding: 0 20px;
  font-family: Inter, "Helvetica Neue", Arial, sans-serif;
}

.sp-cta-form *,
.sp-cta-form *::before,
.sp-cta-form *::after {
  box-sizing: border-box;
}

.sp-cta-form__shell {
  width: 100%;
  max-width: 1880px;
  margin: 0 auto;
}

.sp-cta-form__panel {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
  align-items: stretch;
  gap: 20px;
  padding: 64px 220px;
  background: #f5f6f8;
  border-radius: 32px;
}

.sp-cta-form__card {
  background: #fff;
  border-radius: 32px;
}

.sp-cta-form__card--form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  flex: 1 1 0;
  min-width: 0;
  padding: 64px;
}

.sp-cta-form__inner {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
  max-width: 828px;
}

.sp-cta-form__content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 20px;
  width: 100%;
}

.sp-cta-form__title {
  margin: 0;
  padding: 0;
  width: 100%;
  font-weight: 500;
  font-size: 48px;
  line-height: 52px;
  color: #000;
}

.sp-cta-form__text {
  margin: 0;
  padding: 0;
  width: 100%;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #4d5461;
}

.sp-cta-form__form-wrap {
  width: 100%;
}

.sp-cta-form__form-wrap > form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  margin: 0;
}

.sp-cta-form__form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
}

.sp-cta-form__fields {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.sp-cta-form__row {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
}

.sp-cta-form__field {
  position: relative;
  flex: 1 1 240px;
  min-width: 0;
  width: 100%;
}

.sp-cta-form__field.is-area {
  flex: 1 1 100%;
}

.sp-cta-form__field input,
.sp-cta-form__field textarea {
  display: block;
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  padding: 14px 18px;
  border: 2px solid transparent;
  border-radius: 12px;
  background: #f5f6f8;
  font-family: inherit;
  font-weight: 400;
  font-size: 18px;
  line-height: 24px;
  color: #131927;
  outline: none;
  resize: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-cta-form__field input {
  height: 52px;
}

.sp-cta-form__field.is-area textarea {
  min-height: 160px;
  height: 160px;
}

.sp-cta-form__field input::placeholder,
.sp-cta-form__field textarea::placeholder {
  color: #4d5461;
  opacity: 1;
}

.sp-cta-form__field input:focus::placeholder,
.sp-cta-form__field textarea:focus::placeholder {
  color: transparent;
  opacity: 0;
}

.sp-cta-form__field input:hover:not(:disabled):not(:focus),
.sp-cta-form__field textarea:hover:not(:disabled):not(:focus) {
  background: #ebedf0;
}

.sp-cta-form__field input:focus,
.sp-cta-form__field textarea:focus {
  background: #fff;
  border-color: #006ab5;
  box-shadow: none;
}

.sp-cta-form__field.has-error input,
.sp-cta-form__field.has-error textarea,
.sp-cta-form__field input.is-error,
.sp-cta-form__field textarea.is-error {
  background: #fdecec;
  border-color: #ee443f !important;
  box-shadow: none;
}

.sp-cta-form__field-error {
  margin-top: 4px;
  font-family: inherit;
  font-weight: 400;
  font-size: 14px;
  line-height: 20px;
  color: #ee443f;
}

.sp-cta-form__errors {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fef2f2;
  color: #b91c1c;
  font-size: 14px;
  line-height: 20px;
}

.sp-cta-form__agree {
  width: 100%;
}

.sp-cta-form__check {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  cursor: pointer;
}

.sp-cta-form__check input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.sp-cta-form__check-box {
  box-sizing: border-box;
  flex: none;
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border: 2px solid #d2d5db;
  border-radius: 4px;
  background: transparent;
  position: relative;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.sp-cta-form__check:hover .sp-cta-form__check-box {
  border-color: #9ea2ae;
  background: center / 9px 7px no-repeat
    url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3 6L8 1' stroke='%23D2D5DB' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sp-cta-form__check input:checked + .sp-cta-form__check-box {
  border-color: #006ab5;
  background: #006ab5 center / 9px 7px no-repeat
    url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3 6L8 1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.sp-cta-form__check:hover input:checked + .sp-cta-form__check-box {
  border-color: #00528c;
  background-color: #00528c;
}

.sp-cta-form__check input:disabled + .sp-cta-form__check-box {
  border-color: transparent;
  background: #ebedf0;
}

.sp-cta-form__check input:disabled:checked + .sp-cta-form__check-box {
  border-color: transparent;
  background-color: #9ea2ae;
  background-image: url("data:image/svg+xml,%3Csvg width='9' height='7' viewBox='0 0 9 7' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 4L3 6L8 1' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: center;
  background-size: 9px 7px;
  background-repeat: no-repeat;
}

.sp-cta-form__check input:checked + .sp-cta-form__check-box::after {
  content: none;
}

.sp-cta-form__check-text {
  flex: 1 1 auto;
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #111827;
}

.sp-cta-form__check-text a {
  color: #127be9 !important;
  text-decoration: none !important;
}

.sp-cta-form__check-text a:hover {
  color: #127be9 !important;
  text-decoration: none !important;
}

.sp-cta-form__agree.is-error .sp-cta-form__check-box {
  border-color: #dc2626;
}

.sp-cta-form__agree-error {
  margin-top: 8px;
  font-size: 14px;
  line-height: 18px;
  color: #dc2626;
}

.sp-cta-form__submit {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 144px;
  height: 52px;
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  background: #006ab5;
  font-family: inherit;
  font-weight: 500;
  font-size: 18px;
  line-height: 24px;
  color: #fff;
  cursor: pointer;
  transition: background 0.15s ease;
}

.sp-cta-form__submit:hover:not(:disabled) {
  background: #00528c !important;
  background-color: #00528c !important;
}

.sp-cta-form__submit:disabled {
  opacity: 0.6;
  cursor: default;
}

.sp-cta-form__panel.is-loading .sp-cta-form__submit {
  opacity: 0.7;
  pointer-events: none;
}

.sp-cta-form__success {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  width: 100%;
  padding: 24px 0;
}

.sp-cta-form__success-title {
  font-weight: 500;
  font-size: 32px;
  line-height: 40px;
  color: #131927;
}

.sp-cta-form__success-text {
  font-weight: 400;
  font-size: 18px;
  line-height: 28px;
  color: #4d5461;
}

.sp-cta-form__card--manager {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  flex: none;
  width: 464px;
  max-width: 100%;
  padding: 45px 48px;
  gap: 100px;
}

.sp-cta-form__manager-top {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: 368px;
}

.sp-cta-form__avatar {
  position: relative;
  width: 120px;
  height: 120px;
  flex: none;
}

.sp-cta-form__avatar-img {
  display: block;
  width: 120px;
  height: 120px;
  border-radius: 9999px;
  object-fit: cover;
  background: #d9d9d9;
}

.sp-cta-form__online {
  position: absolute;
  left: 94px;
  top: 94px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #19aa1e;
  border: 3px solid #fff;
}

.sp-cta-form__manager-text {
  margin: 0;
  width: 100%;
  font-weight: 500;
  font-size: 24px;
  line-height: 34px;
  color: #131927;
}

.sp-cta-form__manager-bottom {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 40px;
  width: 100%;
}

.sp-cta-form__phone-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  width: 100%;
}

.sp-cta-form__phone {
  font-weight: 500;
  font-size: 24px;
  line-height: 32px;
  color: #131927 !important;
  text-decoration: none !important;
  white-space: nowrap;
}

.sp-cta-form__phone:hover {
  color: #006ab5 !important;
}

.sp-cta-form__email {
  font-weight: 400;
  font-size: 16px;
  line-height: 24px;
  color: #006ab5 !important;
  text-decoration: none !important;
}

.sp-cta-form__email:hover {
  color: #006ab5 !important;
  text-decoration: none !important;
}

.sp-cta-form__socials {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
}

.sp-cta-form__social {
  display: inline-flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  padding: 12px;
  background: #f5f6f8;
  border-radius: 8px;
  text-decoration: none !important;
  transition: background 0.15s ease;
}

.sp-cta-form__social:hover {
  background: #e8eaee;
}

.sp-cta-form__social svg {
  display: block;
}

@media (max-width: 1599px) {
  .sp-cta-form__panel {
    padding: 48px 64px;
  }

  .sp-cta-form__card--manager {
    width: 400px;
    padding: 40px;
    gap: 64px;
  }
}

@media (max-width: 1199px) {
  .sp-cta-form__panel {
    flex-direction: column;
    padding: 40px 32px;
  }

  .sp-cta-form__card--form {
    padding: 40px 32px;
  }

  .sp-cta-form__title {
    font-size: 36px;
    line-height: 40px;
  }

  .sp-cta-form__card--manager {
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: 32px;
  }

  .sp-cta-form__manager-top,
  .sp-cta-form__manager-bottom {
    margin: 0;
  }

  .sp-cta-form__manager-bottom {
    width: auto;
  }
}

/* Mobile — Figma CTA / 7 / */
@media (max-width: 776px) {
  .sp-cta-form {
    padding: 0;
  }

  .sp-cta-form__shell {
    max-width: none;
  }

  .sp-cta-form__panel {
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    gap: 10px;
    padding: 32px 8px;
    border-radius: 24px;
  }

  .sp-cta-form__card {
    border-radius: 24px;
  }

  .sp-cta-form__card--form {
    padding: 32px 16px 24px;
  }

  .sp-cta-form__inner {
    gap: 32px;
    max-width: none;
  }

  .sp-cta-form__content {
    gap: 12px;
  }

  .sp-cta-form__title {
    font-size: 32px;
    line-height: 40px;
  }

  .sp-cta-form__text {
    font-size: 16px;
    line-height: 24px;
  }

  .sp-cta-form__form-wrap > form,
  .sp-cta-form__form {
    gap: 16px;
  }

  .sp-cta-form__fields {
    gap: 10px;
  }

  .sp-cta-form__row {
    flex-direction: column;
    gap: 10px;
  }

  .sp-cta-form__field {
    flex: none;
    width: 100%;
  }

  .sp-cta-form__field input,
  .sp-cta-form__field textarea {
    padding: 12px 18px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .sp-cta-form__field input {
    height: 48px;
  }

  .sp-cta-form__field.is-area textarea {
    min-height: 96px;
    height: 96px;
  }

  .sp-cta-form__check-text {
    font-size: 15px;
    line-height: 20px;
  }

  .sp-cta-form__submit {
    width: auto;
    min-width: 0;
    height: 48px;
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 16px;
    line-height: 24px;
  }

  .sp-cta-form__card--manager {
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    width: 100%;
    padding: 24px 16px;
    gap: 40px;
  }

  .sp-cta-form__manager-top {
    gap: 24px;
    max-width: none;
  }

  .sp-cta-form__avatar {
    width: 80px;
    height: 80px;
  }

  .sp-cta-form__avatar-img {
    width: 80px;
    height: 80px;
  }

  .sp-cta-form__online {
    left: auto;
    top: auto;
    right: 2px;
    bottom: 2px;
    width: 16px;
    height: 16px;
  }

  .sp-cta-form__manager-text {
    font-size: 20px;
    line-height: 26px;
  }

  .sp-cta-form__manager-bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 40px;
    width: 100%;
  }

  .sp-cta-form__phone-block {
    width: auto;
    flex: 1 1 auto;
    min-width: 0;
  }

  .sp-cta-form__phone {
    font-size: 18px;
    line-height: 24px;
  }

  .sp-cta-form__email {
    font-size: 15px;
    line-height: 20px;
  }

  .sp-cta-form__socials {
    gap: 8px;
  }

  .sp-cta-form__social {
    width: 40px;
    height: 40px;
    padding: 10px;
    border-radius: 8px;
  }

  .sp-cta-form__social svg {
    width: 20px;
    height: 20px;
  }
}
