.home-question {
  background-color: #f5f6f7;
  padding: 0;
}

.home-question__inner {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  height: auto;
  min-height: 0;
  margin-inline: 0;
  border-radius: 0;
  background-color: #f5f6f7;
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 90px;
  padding: 120px 40px;
}

.home-question__intro {
  display: flex;
  flex-direction: column;
  gap: 15px;
  flex: 0 0 555px;
  width: 555px;
  max-width: 555px;
  min-width: 0;
}

.home-question__title {
  width: 555px;
  max-width: 100%;
  margin: 0;
  font-family: "Roboto Condensed", var(--font-heading), sans-serif;
  font-size: 50px;
  font-weight: 400;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--color-text-primary);
}

.home-question__lead {
  width: 394px;
  max-width: 100%;
  margin: 0;
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
  color: #5f6062;
}

.home-question__form {
  flex: 0 0 630px;
  width: 630px;
  max-width: 630px;
  min-width: 0;
  margin-left: auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.home-question__fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.home-question__row {
  display: grid;
  grid-template-columns: repeat(2, 305px);
  gap: 20px;
}

.home-question__input,
.home-question__textarea {
  box-sizing: border-box;
  width: 100%;
  margin: 0;
  border: none;
  border-radius: 2px;
  background-color: #ffffff;
  box-shadow: none;
  outline: none;
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
  color: var(--color-text-primary);
  transition: box-shadow 0.2s ease;
}

.home-question__field.is-focused .home-question__input,
.home-question__field.is-focused .home-question__textarea,
.home-question__field.is-filled .home-question__input,
.home-question__field.is-filled .home-question__textarea {
  background-color: #ffffff;
  box-shadow: inset 0 0 0 1px rgba(147, 156, 166, 0.7);
}

.home-question__field {
  position: relative;
  width: 100%;
  min-width: 0;
}

.home-question__field-label {
  display: none;
  position: absolute;
  top: 8px;
  left: 15px;
  z-index: 1;
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #939ca6;
  pointer-events: none;
}

.home-question__field-error {
  display: none;
  position: absolute;
  top: 8px;
  right: 15px;
  z-index: 1;
  max-width: calc(100% - 30px);
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 1;
  color: #f93939;
  text-align: right;
  pointer-events: none;
}

.home-question__field.is-filled .home-question__field-label,
.home-question__field.is-focused .home-question__field-label,
.home-question__field.is-error .home-question__field-label {
  display: block;
}

.home-question__field.is-error .home-question__field-error {
  display: block;
}

.home-question__field.is-filled .home-question__input,
.home-question__field.is-focused .home-question__input,
.home-question__field.is-error .home-question__input,
.home-question__field.is-filled .home-question__textarea,
.home-question__field.is-focused .home-question__textarea,
.home-question__field.is-error .home-question__textarea {
  padding-top: 24px;
}

.home-question__field.is-filled .home-question__input::placeholder,
.home-question__field.is-focused .home-question__input::placeholder,
.home-question__field.is-error .home-question__input::placeholder,
.home-question__field.is-filled .home-question__textarea::placeholder,
.home-question__field.is-focused .home-question__textarea::placeholder,
.home-question__field.is-error .home-question__textarea::placeholder {
  color: transparent;
}

.home-question__field.is-error .home-question__input,
.home-question__field.is-error .home-question__textarea {
  box-shadow: inset 0 0 0 1px #f93939;
}

.home-question__field.is-error .home-question__input:hover,
.home-question__field.is-error .home-question__textarea:hover,
.home-question__field.is-error .home-question__input:focus,
.home-question__field.is-error .home-question__textarea:focus {
  box-shadow: inset 0 0 0 1px #f93939;
}

.home-question__input:hover,
.home-question__textarea:hover {
  box-shadow: inset 0 0 0 1px rgba(147, 156, 166, 0.7);
}

.home-question__input:focus,
.home-question__textarea:focus {
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(147, 156, 166, 0.7);
}

.home-question__consent.is-error .home-question__consent-box {
  border-color: #f93939;
}

.home-question__input {
  height: 60px;
  padding: 10px 15px;
}

.home-question__textarea {
  width: 630px;
  max-width: 100%;
  height: 100px;
  min-height: 100px;
  padding: 15px;
  resize: none;
  line-height: 1.4;
}

.home-question__field--textarea {
  width: 630px;
  max-width: 100%;
}

.home-question__input::placeholder,
.home-question__textarea::placeholder {
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 14px;
  font-weight: 400;
  font-style: normal;
  line-height: 1;
  letter-spacing: 0;
  color: #939ca6;
  opacity: 1;
}

.home-question__consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: auto;
  max-width: none;
  cursor: pointer;
}

.home-question__consent-input {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.home-question__consent-box {
  flex: 0 0 12px;
  width: 12px;
  height: 12px;
  margin-top: 4px;
  border: 1px solid var(--color-accent-card);
  border-radius: 2px;
  background-color: #ffffff;
  background-repeat: no-repeat;
  background-position: center;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}

.home-question__consent-input:checked + .home-question__consent-box {
  background-color: var(--color-accent-card);
  background-image: url("data:image/svg+xml,%3Csvg width='11' height='9' viewBox='0 0 11 9' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M9.48828 0.484375L3.98828 6.98438L0.488281 3.98438' stroke='white' stroke-width='1.5'/%3E%3C/svg%3E");
}

.home-question__consent-text {
  display: block;
  width: 100%;
  max-width: 605px;
  min-height: 44px;
  flex: 1 1 auto;
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 22px;
  letter-spacing: 0;
  color: #939ca6;
}

.home-question__consent-copy--compact {
  display: none;
}

.home-question__consent-copy--375 {
  display: none;
}

.home-question__consent-copy--768 {
  display: none;
}

.home-question__consent-copy--wide {
  display: block;
}

.home-question__consent-line {
  display: block;
  max-width: 100%;
}

.home-question__consent-line + .home-question__consent-line {
  margin-top: 0;
}

.home-question__consent-text a {
  color: inherit;
  text-decoration: underline;
  transition: color 0.2s ease;
}

.home-question__consent-text a:hover,
.home-question__consent-text a:focus-visible {
  color: #0c3eb3;
}

.home-question__submit {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 20px;
  width: 219px;
  height: 50px;
  padding: 0 4px 0 30px;
  border: 1px solid var(--color-accent-card);
  background: transparent;
  color: var(--color-accent-card);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.home-question__submit:hover,
.home-question__submit:focus-visible {
  background-color: var(--color-accent-card);
  color: #ffffff;
}

.home-question__submit-text {
  font-family: "Roboto Flex", var(--font-body), sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: 1;
}

.home-question__submit-icon {
  width: 8px;
  height: 8px;
  background-color: currentColor;
}

/* 1440 Figma — серая плашка на всю ширину, контент 1360 с padding 40px */
@media (min-width: 1440px) {
  .home-question {
    padding: 0;
  }

  .home-question__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    max-height: none;
    margin-inline: 0;
    justify-content: flex-start;
    gap: 90px;
    padding: 120px max(40px, calc((100vw - var(--layout-inner-width)) / 2));
    border-radius: 0;
    overflow: hidden;
  }

  .home-question__intro {
    flex: 0 0 555px;
    width: 555px;
    max-width: 555px;
    min-width: 0;
    margin-right: 0;
  }

  .home-question__title {
    width: 555px;
    max-width: 555px;
    font-size: 50px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .home-question__lead {
    width: 394px;
    max-width: 394px;
    font-size: 18px;
    line-height: 1.2;
  }

  .home-question__form {
    flex: 0 0 630px;
    width: 630px;
    max-width: 630px;
    min-width: 0;
    margin-left: auto;
    gap: 20px;
  }

  .home-question__row {
    grid-template-columns: repeat(2, 305px);
    gap: 20px;
  }

  .home-question__input {
    height: 60px;
  }

  .home-question__textarea {
    width: 630px;
    max-width: 630px;
    height: 100px;
    min-height: 100px;
  }

  .home-question__consent-copy--compact {
    display: none;
  }

  .home-question__consent-copy--wide {
    display: block;
  }

  .home-question__consent {
    max-width: 630px;
  }

  .home-question__consent-text {
    width: 605px;
    max-width: 605px;
    min-width: 0;
    min-height: 44px;
    line-height: 22px;
  }

  .home-question__consent-line {
    width: auto;
    max-width: 605px;
  }

  .home-question__submit {
    width: 219px;
    height: 50px;
  }
}

/* 1024–1439: планшет Figma 1024 — серая плашка на всю ширину */
@media (min-width: 1024px) and (max-width: 1439px) {
  .home-question {
    padding: 0;
  }

  .home-question__inner {
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background-color: #f5f6f7;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    padding: 120px var(--container-padding);
    box-sizing: border-box;
  }

  .home-question__intro {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1 1 483px;
    width: auto;
    max-width: 555px;
    min-width: min(483px, 100%);
  }

  .home-question__intro .home-question__lead {
    margin-top: 0;
  }

  .home-question__title {
    width: 100%;
    max-width: 491px;
    font-size: 40px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .home-question__lead {
    width: 326px;
    max-width: 100%;
    margin-top: 15px;
    font-size: 16px;
    line-height: 1.2;
    color: #5f6062;
  }

  .home-question__form {
    flex: 1 1 461px;
    width: auto;
    max-width: 630px;
    min-width: min(461px, 100%);
    margin-left: 0;
    gap: 20px;
  }

  .home-question__fields {
    gap: 16px;
  }

  .home-question__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
  }

  .home-question__input {
    height: 50px;
    padding: 10px 15px;
    font-size: 16px;
    line-height: 1;
  }

  .home-question__textarea {
    width: 100%;
    height: 100px;
    min-height: 100px;
    padding: 15px;
    font-size: 16px;
    line-height: 1.4;
  }

  .home-question__consent-copy--compact {
    display: block;
  }

  .home-question__consent-copy--768 {
    display: none;
  }

  .home-question__consent-copy--wide {
    display: none;
  }

  .home-question__consent-copy--compact .home-question__consent-line {
    display: block;
    white-space: nowrap;
  }

  .home-question__consent-text {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 54px;
    flex: 1 1 auto;
    font-size: 14px;
    line-height: 18px;
    color: #939ca6;
  }

  .home-question__consent-line {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
  }

  .home-question__consent-text a {
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 0;
  }

  .home-question__submit {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 228px;
    height: 50px;
    padding: 0 4px 0 30px;
  }

  .home-question__submit-text {
    font-size: 16px;
    line-height: 1;
    white-space: nowrap;
  }

  .home-question__submit-icon {
    width: 8px;
    height: 8px;
    flex: none;
  }
}

@media (min-width: 1201px) and (max-width: 1439px) {
  .home-question__inner {
    gap: clamp(40px, calc(40px + (90 - 40) * (100vw - 1200px) / 240), 90px);
    padding-top: clamp(40px, calc(40px + (120 - 40) * (100vw - 1200px) / 240), 120px);
    padding-bottom: clamp(40px, calc(40px + (120 - 40) * (100vw - 1200px) / 240), 120px);
  }

  .home-question__title {
    font-size: var(--section-title-size, 42px);
  }
}

/* 688–1023: макет 768 — между 768 и 1024 (напр. 800px) */
@media (min-width: 688px) and (max-width: 1023px) {
  .home-question {
    padding: 0;
  }

  .home-question__inner {
    box-sizing: border-box;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    border-radius: 0;
    background-color: #f5f6f7;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    justify-content: flex-start;
    gap: clamp(20px, 4vw, 40px);
    padding: 30px 40px;
  }

  .home-question__intro {
    flex: 0 1 51.16%;
    width: auto;
    min-width: 0;
    max-width: 51.16%;
    gap: 11px;
  }

  .home-question__title {
    width: 100%;
    max-width: 100%;
    font-size: 30px;
    line-height: 1.2;
    letter-spacing: -0.02em;
  }

  .home-question__lead {
    width: 100%;
    max-width: 244px;
    margin-top: 11px;
    font-size: 12px;
    line-height: 1.2;
  }

  .home-question__form {
    flex: 0 1 48.84%;
    width: auto;
    min-width: 0;
    max-width: 48.84%;
    margin-left: 0;
    gap: 16px;
  }

  .home-question__fields {
    gap: 12px;
  }

  .home-question__row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
  }

  .home-question__input {
    height: 38px;
    padding: 8px 11px;
    font-size: 12px;
  }

  .home-question__textarea {
    height: 75px;
    min-height: 75px;
    padding: 11px;
    font-size: 12px;
    line-height: 1.4;
  }

  .home-question__input::placeholder,
  .home-question__textarea::placeholder {
    font-size: 11px;
  }

  /* Согласие — тот же вариант и стили, что на 768 (Figma) */
  .home-question__consent-copy--compact,
  .home-question__consent-copy--wide,
  .home-question__consent-copy--375 {
    display: none;
  }

  .home-question__consent-copy--768 {
    display: block;
  }

  .home-question__consent-copy--768 .home-question__consent-line {
    display: block;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .home-question__consent {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .home-question__consent-text {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 41px;
    flex: 1 1 auto;
    font-size: 11px;
    line-height: 14px;
    overflow-wrap: break-word;
  }

  .home-question__consent-line {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  .home-question__consent-box {
    flex: 0 0 9px;
    width: 9px;
    height: 9px;
    margin-top: 3px;
  }
}

/* 375 — Figma: колонка, поля 334×50, согласие 284×72, кнопка 204×50 */
@media (max-width: 687px) {
  .home-question {
    padding: 0;
    background-color: #f5f6f7;
  }

  .home-question__inner {
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
    width: 100%;
    max-width: none;
    height: auto;
    min-height: 0;
    margin: 0;
    padding: 80px var(--container-padding) 80px;
    border-radius: 0;
    background-color: #f5f6f7;
  }

  .home-question__intro {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: none;
    width: 100%;
    max-width: 345px;
    margin-inline: auto;
  }

  .home-question__title {
    width: 338px;
    max-width: 100%;
    height: 72px;
    margin: 0;
    font-family: "Roboto Condensed", var(--font-heading), sans-serif;
    font-size: 30px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: -0.02em;
    color: var(--color-text-primary);
  }

  .home-question__title-line {
    display: block;
    white-space: nowrap;
  }

  .home-question__lead {
    width: 310px;
    max-width: 100%;
    margin: 0;
    font-family: "Roboto Flex", var(--font-body), sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1.2;
    letter-spacing: 0;
    color: #5f6062;
  }

  .home-question__form {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: none;
    width: 100%;
    max-width: 345px;
    margin-inline: auto;
  }

  .home-question__fields {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-question__row {
    display: flex;
    flex-direction: column;
    gap: 10px;
  }

  .home-question__input {
    box-sizing: border-box;
    width: 334px;
    max-width: 100%;
    height: 50px;
    padding: 10px 15px;
    font-size: 14px;
    line-height: 1;
  }

  .home-question__textarea {
    box-sizing: border-box;
    width: 334px;
    max-width: 100%;
    height: 100px;
    min-height: 100px;
    padding: 15px;
    font-size: 14px;
    line-height: 1.2;
  }

  .home-question__input::placeholder,
  .home-question__textarea::placeholder {
    font-size: 14px;
    line-height: 1;
  }

  .home-question__consent {
    gap: 10px;
    width: 100%;
    max-width: 334px;
    margin-top: 6px;
  }

  .home-question__consent-box {
    flex: 0 0 12px;
    width: 12px;
    height: 12px;
    margin-top: 3px;
  }

  .home-question__consent-copy--compact {
    display: none;
  }

  .home-question__consent-copy--768 {
    display: none;
  }

  .home-question__consent-copy--375 {
    display: block;
  }

  .home-question__consent-copy--wide {
    display: none;
  }

  .home-question__consent-copy--375 .home-question__consent-line {
    display: block;
    white-space: nowrap;
  }

  .home-question__consent-text {
    box-sizing: border-box;
    width: 284px;
    max-width: 284px;
    min-width: 0;
    min-height: 72px;
    flex: 0 1 284px;
    font-family: "Roboto Flex", var(--font-body), sans-serif;
    font-size: 12px;
    font-weight: 400;
    font-style: normal;
    line-height: 18px;
    letter-spacing: 0;
    color: #939ca6;
  }

  .home-question__consent-line {
    width: 100%;
    max-width: 100%;
  }

  .home-question__consent-text a {
    color: inherit;
    text-decoration: underline;
    text-underline-offset: 0;
  }

  .home-question__submit {
    box-sizing: border-box;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    width: 204px;
    height: 50px;
    margin-top: 10px;
    padding: 0 30px;
    border: 1px solid var(--color-accent-card);
  }

  .home-question__submit-text {
    display: inline-flex;
    align-items: center;
    flex: none;
    width: 116px;
    height: 16px;
    font-family: "Roboto Flex", var(--font-body), sans-serif;
    font-size: 14px;
    font-weight: 400;
    font-style: normal;
    line-height: 1;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .home-question__submit-icon {
    width: 8px;
    height: 8px;
    flex: none;
    margin: 0;
  }
}
