.contacts-page {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-width: 0;
  max-width: 100%;
  min-height: 0;
  padding: 34px 28px 28px;
  background-color: var(--page-bg);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: none;
  touch-action: pan-y;
}

.contacts-shell {
  position: relative;
  z-index: 1;
  width: min(1180px, 100%);
  min-height: calc(100vh - 64px - 68px);
  margin: 0 auto;
  display: grid;
  align-content: center;
  gap: 24px;
}

.contacts-page-head h1 {
  margin: 0;
  color: #111111;
  font-size: clamp(34px, 3.5vw, 44px);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.035em;
}

.contacts-page-head h1 span {
  display: inline-block;
  padding: 0.02em 0.1em 0.07em;
  background: #69d28f;
  line-height: 0.9;
}

.contacts-page-head p {
  max-width: 760px;
  margin: 10px 0 0;
  color: #59616c;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.55;
}

.contacts-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(300px, 0.78fr) minmax(460px, 1.22fr);
  grid-template-areas:
    "guide form"
    "faq form";
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: stretch;
  gap: 12px 22px;
}

.contacts-form-card {
  grid-area: form;
  width: 100%;
  min-width: 0;
  padding: 30px;
  box-sizing: border-box;
  border: 2px solid #111111;
  border-radius: 2px;
  background: #ffffff;
  color: #111111;
  box-shadow: none;
}

.contacts-form-intro {
  margin: 0 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #d7dce2;
}

.contacts-form-intro h2 {
  margin: 0;
  color: #111111;
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
}

.contacts-form-intro p {
  max-width: none;
  margin: 8px 0 0;
  color: #4b5563;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.42;
}

.contacts-request-form {
  display: grid;
  gap: 18px;
}

.contacts-request-field {
  display: grid;
  gap: 8px;
  margin: 0;
}

.contacts-request-field > span {
  color: #4d535d;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contacts-request-field input,
.contacts-request-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 2px solid #111111;
  border-radius: 0;
  background: #ffffff;
  color: #111111;
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  box-shadow: none;
  transition: border-color 0.16s ease;
}

.contacts-request-field input {
  height: 50px;
  padding: 0 14px;
}

.contacts-request-field textarea {
  min-height: 190px;
  padding: 13px 14px;
  resize: none;
}

.contacts-request-field input::placeholder,
.contacts-request-field textarea::placeholder {
  color: #8f96a0;
}

.contacts-request-field input:focus,
.contacts-request-field textarea:focus {
  border-color: #111111;
}

.contacts-request-field.is-invalid input,
.contacts-request-field.is-invalid textarea {
  border-color: #bf4b3e;
  box-shadow: none;
}

.contacts-request-field.is-invalid input::placeholder,
.contacts-request-field.is-invalid textarea::placeholder {
  color: #bf4b3e;
}

.contacts-turnstile-wrap {
  min-height: 1px;
}

.contacts-request-submit {
  width: 100%;
  min-height: 50px;
  padding: 0 22px;
  border: 2px solid #111111;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f4c73f;
  color: #111111;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 3px 3px 0 #111111;
  transform: translate(0, 0);
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.contacts-request-submit:hover:not(:disabled),
.contacts-request-submit:focus-visible:not(:disabled) {
  background: #efbf2d;
  box-shadow: 4px 4px 0 #111111;
  transform: translate(-1px, -1px);
}

.contacts-request-submit:focus {
  outline: none;
}

.contacts-request-submit:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 3px;
}

.contacts-request-submit:active:not(:disabled) {
  background: #e5b523;
  box-shadow: 1px 1px 0 #111111;
  transform: translate(1px, 1px);
}

.contacts-request-submit:disabled {
  border-color: #aeb4bc;
  background: #e1e4e8;
  color: #737b86;
  box-shadow: 3px 3px 0 #aeb4bc;
  cursor: not-allowed;
  transform: none;
}

.contacts-guide {
  grid-area: guide;
  min-width: 0;
  align-self: stretch;
  color: #111111;
  display: flex;
  flex-direction: column;
  border: 2px solid #111111;
  border-radius: 2px;
  background: #ffffff;
}

.contacts-guide-banner {
  min-height: 76px;
  padding: 18px 20px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  border-bottom: 2px solid #111111;
  background: #111111;
}

.contacts-guide-title {
  display: block;
  width: auto;
  margin: 0;
  padding: 0;
  background: transparent;
  color: #ffffff;
  font-size: 20px;
  font-style: normal;
  font-weight: 900;
  line-height: 1.2;
}

.contacts-guide-body {
  min-height: 0;
  display: flex;
  flex: 1 1 auto;
}

.contacts-guide-grid {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.contacts-guide-step {
  min-width: 0;
  min-height: 0;
  padding: 16px 18px;
  border-bottom: 1px solid #d7dce2;
  background: #ffffff;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-content: center;
  align-items: start;
  justify-content: center;
  text-align: left;
}

.contacts-guide-step:last-child {
  border-bottom: 0;
}

.contacts-guide-step svg {
  grid-column: 1;
  grid-row: 1 / span 2;
  width: 22px;
  height: 22px;
  margin: 0;
  align-self: center;
  stroke-width: 2.15;
}

.contacts-guide-step strong {
  display: block;
  grid-column: 2;
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.3;
}

.contacts-guide-step p {
  grid-column: 2;
  margin: 0;
  color: #4b5563;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.42;
}

.contacts-faq-note {
  grid-area: faq;
  width: 100%;
  min-height: 54px;
  padding: 12px 16px;
  box-sizing: border-box;
  border: 2px solid #111111;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #111111;
  color: #ffffff;
  text-decoration: none;
  box-shadow: 3px 3px 0 #69d28f;
  transition: background-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.contacts-faq-note span {
  min-width: 0;
  color: #ffffff;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.3;
}

.contacts-faq-note svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  stroke-width: 2.4;
}

.contacts-faq-note:hover,
.contacts-faq-note:focus-visible {
  background: #292929;
  box-shadow: 4px 4px 0 #69d28f;
  transform: translate(-1px, -1px);
}

.contacts-faq-note:focus-visible {
  outline: 2px solid #111111;
  outline-offset: 4px;
}

.contacts-faq-note:active {
  box-shadow: 1px 1px 0 #69d28f;
  transform: translate(1px, 1px);
}

.contacts-feedback {
  width: min(1000px, 100%);
  min-height: 20px;
  margin: 14px auto 0;
  color: #111111;
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.contacts-feedback:empty {
  display: none;
}

.contacts-feedback.is-success {
  color: #2f6b2f;
}

.contacts-feedback.is-error {
  color: #b42318;
}

.contacts-csrf {
  display: none;
}

@media (max-width: 1000px) {
  .contacts-page {
    padding: 24px 18px 20px;
  }

  .contacts-shell {
    min-height: auto;
    align-content: start;
  }

  .contacts-layout {
    width: min(760px, 100%);
    margin: 0 auto;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "guide"
      "form"
      "faq";
    grid-template-rows: auto;
  }

  .contacts-page-head {
    width: min(760px, 100%);
    margin: 0 auto;
  }

  .contacts-form-card {
    padding: 24px;
  }

  .contacts-request-form {
    gap: 16px;
  }

  .contacts-request-field textarea {
    height: 165px;
    min-height: 165px;
  }

  .contacts-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .contacts-guide-step {
    min-height: 116px;
  }

  .contacts-guide-step:nth-child(odd) {
    border-right: 1px solid #d7dce2;
  }

  .contacts-guide-step:nth-child(-n + 2) {
    border-bottom: 1px solid #d7dce2;
  }

  .contacts-guide-step:nth-child(n + 3) {
    border-bottom: 0;
  }
}

@media (max-width: 640px) {
  .contacts-page {
    padding: 16px 12px 18px;
  }

  .contacts-shell {
    gap: 16px;
  }

  .contacts-page-head h1 {
    font-size: 32px;
  }

  .contacts-page-head p {
    font-size: 14px;
  }

  .contacts-layout {
    gap: 14px;
  }

  .contacts-form-card {
    padding: 18px;
  }

  .contacts-form-intro h2 {
    font-size: 21px;
  }

  .contacts-form-intro p {
    font-size: 12.5px;
  }

  .contacts-request-field input {
    height: 44px;
  }

  .contacts-request-field input,
  .contacts-request-field textarea {
    font-size: 16px;
  }

  .contacts-request-field textarea {
    height: 150px;
    min-height: 150px;
  }

  .contacts-guide-title {
    font-size: 19px;
  }

  .contacts-guide-banner {
    min-height: 0;
    padding: 16px 14px;
  }

  .contacts-guide-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contacts-guide-step {
    min-height: 0;
    padding: 15px 14px;
    border-right: 0;
    border-bottom: 1px solid #d7dce2;
  }

  .contacts-guide-step:nth-child(odd) {
    border-right: 0;
  }

  .contacts-guide-step:nth-child(n + 3) {
    border-bottom: 1px solid #d7dce2;
  }

  .contacts-guide-step:last-child {
    border-bottom: 0;
  }

  .contacts-guide-step svg {
    margin-bottom: 10px;
  }

  .contacts-faq-note {
    min-height: 44px;
    padding: 10px 12px;
  }

  .contacts-faq-note span {
    font-size: 11.5px;
  }
}

@media (max-width: 390px) {
  .contacts-form-card {
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .contacts-faq-note,
  .contacts-request-field input,
  .contacts-request-field textarea,
  .contacts-request-submit {
    transition: none;
  }

  .contacts-faq-note:hover,
  .contacts-faq-note:focus-visible,
  .contacts-faq-note:active,
  .contacts-request-submit:hover,
  .contacts-request-submit:focus-visible,
  .contacts-request-submit:active {
    transform: none;
  }
}
