.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-y: auto;
  overflow-x: hidden;
  overscroll-behavior: none;
  touch-action: pan-y;
}

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

.contacts-layout {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 1fr);
  grid-template-areas:
    "form guide"
    "faq guide";
  align-items: stretch;
  gap: 12px 16px;
}

.contacts-form-card {
  grid-area: form;
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border: 2px solid #111111;
  border-radius: 6px;
  box-shadow: 7px 7px 0 rgba(0, 0, 0, 0.18);
}

.contacts-guide {
  grid-area: guide;
  min-width: 0;
  align-self: stretch;
  color: #111111;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
}

.contacts-guide-banner {
  min-height: 0;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
}

.contacts-guide-banner h2 {
  display: inline;
  width: fit-content;
  margin: 0;
  padding: 2px 7px 4px;
  background: var(--accent-yellow, #ffd238);
  color: #111111;
  font-size: 21px;
  font-style: italic;
  font-weight: 900;
  line-height: 1.15;
}

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

.contacts-guide-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  border: 2px solid #111111;
}

.contacts-guide-step {
  min-width: 0;
  min-height: 0;
  padding: 18px 14px;
  border-right: 2px solid #111111;
  border-bottom: 2px solid #111111;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

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

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

.contacts-guide-step svg {
  width: 24px;
  height: 24px;
  margin-bottom: 13px;
  stroke-width: 2.15;
}

.contacts-guide-step strong {
  display: block;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.3;
}

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

.contacts-faq-note {
  grid-area: faq;
  width: 100%;
  box-sizing: border-box;
  min-height: 54px;
  padding: 12px 16px;
  border: 2px solid #111111;
  border-radius: 5px;
  background: #111111;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  text-decoration: none;
  box-shadow: none;
  transition: transform 0.14s ease, background-color 0.14s ease, color 0.14s 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 {
  background: #1f1f1f;
  transform: translateY(-1px);
}

.contacts-faq-note:active {
  transform: translateY(0);
}

.contacts-form-card {
  padding: 24px;
  background: #ffffff;
  color: #111111;
}

.contacts-form-intro {
  margin: 0 0 16px;
}

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

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

.contacts-request-form {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

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

.contacts-request-field span {
  color: #111111;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.contacts-request-field input,
.contacts-request-field textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #cfd5dd;
  border-radius: 5px;
  background: #ffffff;
  color: #111111;
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  outline: none;
  transition: none;
}

.contacts-request-field input {
  height: 46px;
  padding: 0 13px;
}

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

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

.contacts-request-field input:focus,
.contacts-request-field textarea:focus {
  border-color: #111111;
  background: #ffffff;
  box-shadow: none;
}

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

.contacts-request-field small {
  display: none;
  color: #b42318;
  font-size: 12px;
  font-weight: 800;
}

.contacts-request-field small:not(:empty) {
  display: block;
}

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

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

.contacts-request-submit:hover {
  background: #efbf2d;
  transform: translateY(-1px);
  filter: brightness(1.02);
}

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

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

.contacts-request-submit:active {
  background: #f4c73f;
  transform: translateY(0);
}

.contacts-request-submit:disabled {
  cursor: not-allowed;
  opacity: 0.62;
  transform: none;
  box-shadow: none;
}

.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: 1020px) {
  .contacts-page {
    padding: 24px 18px 20px;
  }

  .contacts-shell {
    min-height: auto;
    align-items: stretch;
  }

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

@media (max-width: 640px) {
  .contacts-page {
    padding: 16px 12px 14px;
    background-size: clamp(149px, 40.8vw, 216px) auto;
    background-position: left calc(100% + 18px);
  }

  .contacts-page::before {
    width: clamp(149px, 40.8vw, 216px);
    transform: translate(8%, -5%);
  }

  .contacts-layout {
    gap: 14px;
  }

  .contacts-form-card {
    border-radius: 6px;
    box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.18);
  }

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

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

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

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

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

  .contacts-guide-body {
    padding: 0;
  }

  .contacts-guide-step {
    min-height: 150px;
    padding: 14px 10px;
  }

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

@media (max-width: 390px) {
  .contacts-guide-step {
    min-height: 158px;
  }

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

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

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

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

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

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