/* Main action: the form. Direct contacts are a compact secondary route. */
.contact-with-form .contact-inner {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr);
  grid-template-areas: "intro form" "alternatives form";
  grid-template-rows: auto 1fr;
  align-items: start;
  gap: 32px 80px;
}
.contact-intro { grid-area: intro; min-width: 0; }
.project-form { grid-area: form; width: 100%; max-width: 520px; min-width: 0; justify-self: end; margin: 0; padding-top: 1px; }
.contact-alternatives { grid-area: alternatives; min-width: 0; padding-top: 6px; }
.contact-with-form .contact-label { margin-bottom: 15px; }
.direct-contacts { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.direct-contacts a { display: inline-flex; align-items: center; gap: 16px; font-size: 16px; line-height: 1.5; }
.direct-contacts a:hover, .messenger-links a:hover { color: #D5E7FA; }
.direct-contacts a span, .messenger-links a span { font-size: 16px; }
.messenger-links { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 20px; }
.messenger-links a { font-size: 13px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; text-decoration-color: #ffffff70; }
.contact-with-form .contact-location { margin-top: 25px; }
.contact .project-form .form-intro { margin: 0 0 26px; color: #fff; font-size: 20px; line-height: 1.5; }
.project-form-fields, .contact-channel { min-width: 0; border: 0; margin: 0; padding: 0; }
.project-form-fields { display: grid; gap: 16px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.contact-channel legend { padding: 0; margin-bottom: 11px; color: #E7F0F5; font-size: 13px; line-height: 1.5; }
.channel-options { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.channel-option { position: relative; min-width: 0; cursor: pointer; }
.channel-option input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.channel-option span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 2px; border-bottom: 2px solid transparent; color: #D5E7FA; font-size: 13px; line-height: 1.4; text-align: center; transition: color .15s, border-color .15s; }
.channel-option input:checked + span { border-bottom-color: #fff; color: #fff; font-weight: 600; }
.channel-option:hover span { color: #fff; }
.channel-option input:focus-visible + span { outline: 2px solid #fff; outline-offset: 3px; }
.form-field { min-width: 0; }
.form-field > label { display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px; margin-bottom: 8px; font-size: 13px; line-height: 1.5; color: #fff; }
.field-optional { color: #D5E7FA; font-size: 11px; }
.form-field input { display: block; width: 100%; min-width: 0; margin: 0; border: 1px solid #fff; border-radius: 4px; background: #F2F7FA; color: #101820; padding: 14px 15px; font: inherit; font-size: 16px; line-height: 1.5; }
.form-field input::placeholder { color: #7B7F83; opacity: 1; }
.form-field input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; background: #fff; }
.optional-site { min-width: 0; }
.optional-site summary { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: fit-content; max-width: 100%; min-height: 36px; padding: 6px 0; color: #fff; font-size: 13px; line-height: 1.5; list-style: none; cursor: pointer; }
.optional-site summary::-webkit-details-marker { display: none; }
.optional-site summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.optional-site summary:hover { color: #D5E7FA; }
.optional-site-icon { width: 12px; height: 12px; flex-shrink: 0; position: relative; }
.optional-site-icon::before, .optional-site-icon::after { content: ''; position: absolute; background: currentColor; }
.optional-site-icon::before { width: 12px; height: 1px; left: 0; top: 5px; }
.optional-site-icon::after { width: 1px; height: 12px; left: 5px; top: 0; }
.optional-site[open] .optional-site-icon::after { display: none; }
.optional-site > .form-field { margin-top: 12px; }
.form-consent { display: grid; grid-template-columns: 16px minmax(0, 1fr); align-items: start; gap: 10px; color: #E7F0F5; font-size: 11px; line-height: 1.6; cursor: pointer; }
.form-consent input { width: 16px; height: 16px; margin: 1px 0 0; accent-color: #fff; }
.form-consent input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.form-consent a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: #ffffff80; }
.contact .project-form .form-submit {
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  min-height: 56px;
  justify-self: start;
  margin: 0;
  padding: 16px 24px;
  gap: 32px;
  border: 1px solid #ffffff30;
  border-radius: 4px;
  background: #101820;
  color: #fff;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  box-shadow: 0 3px 0 #10182040;
  transition: background .15s, box-shadow .15s, transform .15s;
}
.contact .project-form .form-submit span { flex-shrink: 0; font-size: 22px; }
.contact .project-form .form-submit:hover { background: #464C52; opacity: 1; box-shadow: 0 4px 0 #10182040; }
.contact .project-form .form-submit:active { transform: translateY(1px); box-shadow: 0 1px 0 #10182040; }
.contact .project-form .form-submit:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
@media(prefers-reduced-motion:reduce) {
  .contact .project-form .form-submit { transition: none; }
  .contact .project-form .form-submit:active { transform: none; }
}
.contact .project-form .form-preview-note { margin: 13px 0 0; color: #D5E7FA; font-size: 11px; line-height: 1.5; }
.contact .project-form .form-status { margin: 16px 0 0; padding: 14px 16px; border: 1px solid #ffffff70; border-radius: 4px; color: #fff; font-size: 13px; line-height: 1.6; }
.project-form-fields:disabled { opacity: .7; }
@media(max-width:1100px) {
  .contact-with-form .contact-inner { gap: 28px 48px; }
}
@media(max-width:900px) {
  .contact-with-form .contact-inner { grid-template-columns: minmax(0, 1fr); grid-template-areas: "intro" "form" "alternatives"; grid-template-rows: auto; gap: 32px; }
  .project-form { justify-self: start; padding-top: 0; }
  .contact-alternatives { padding-top: 25px; border-top: 1px solid #ffffff40; }
}
@media(max-width:600px) {
  .contact-with-form .contact-inner { gap: 28px; }
  .contact .project-form .form-intro { margin-bottom: 22px; }
  .channel-options { gap: 8px 20px; }
}
