
/* ========================================================================== CONTACTS */
.contact-section, .contact-section * { box-sizing: border-box; }
.contact-section { padding-bottom: var(--section-gap); overflow: hidden; color: var(--color-text); }
.contact-section h2, .contact-section p, .contact-section span, .contact-section img, .contact-section svg { opacity: 1; animation: none; }
.contact-shell { max-width: 100%; padding: 0; }
.contact-heading { margin: 0; padding: 0 0 var(--section-heading-gap); }
.contact-title { margin: 0; padding: 0; color: var(--color-heading); line-height: 1.15; }
.contact-subtitle { max-width: 680px; margin: 10px 0 0; padding: 0; color: var(--color-text-secondary); line-height: 1.5; }
.contact-layout { display: grid; grid-template-columns: minmax(330px, .95fr) minmax(480px, 1.05fr); align-items: center; width: 100%; max-width: 1280px; margin: 0 auto; }
.contact-details { display: flex; width: 100%; min-width: 0; min-height: 360px; padding: 30px 68px 30px 22px; flex-direction: column; align-items: center; justify-content: center; }
.contact-phone, .contact-socials, .contact-email, .contact-company { width: 370px; max-width: 100%; }
.contact-phone { display: flex; align-items: center; justify-content: center; gap: 13px; color: var(--color-primary); font-size: 46px; line-height: 1; text-decoration: none; letter-spacing: 0; }
.contact-phone svg { width: 28px; height: 42px; flex: 0 0 auto; }
.contact-socials { display: flex; justify-content: center; gap: 38px; margin-top: 24px; }
.contact-social { display: grid; width: var(--icon-size-large); height: var(--icon-size-large); place-items: center; text-decoration: none; transition: transform .18s ease; }
.contact-social:hover { transform: scale(1.08); }
.contact-social img { display: block; width: var(--icon-size-large); height: var(--icon-size-large); object-fit: contain; }
.contact-email { display: flex; align-items: center; justify-content: center; gap: 15px; margin-top: 24px; color: #292d38; font-size: 21px; text-decoration: none; }
.contact-email img { width: 28px; height: 28px; object-fit: contain; }
.contact-company { margin: 52px 0 0; font-size: 14px; font-weight: 600; text-align: center; }
.contact-company a { color: var(--color-secondary-text); text-decoration: none; }
.contact-form-wrap { width: 100%; min-width: 0; max-width: 100%; padding: 0 0 0 68px; border-left: 1px solid var(--color-border); }
.contact-form { display: grid; width: 100%; min-width: 0; max-width: 100%; gap: 18px; }
.contact-field { position: relative; display: block; }
.contact-field > img { position: absolute; z-index: 1; top: 22px; left: 22px; width: var(--icon-size-ui); height: var(--icon-size-ui); object-fit: contain; pointer-events: none; }
.contact-field__label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.contact-field input, .contact-field textarea { width: 100%; border: 1px solid var(--color-border); border-radius: 14px; outline: none; background: var(--color-white); color: #20242d; font: inherit; font-size: 17px; transition: border-color .18s ease, box-shadow .18s ease; }
.contact-field input { height: 70px; padding: 0 22px 0 68px; }
.contact-field textarea { min-height: 132px; padding: 22px 22px 22px 68px; resize: vertical; }
.contact-field input::placeholder, .contact-field textarea::placeholder { color: #939cad; opacity: 1; }
.contact-field input:focus, .contact-field textarea:focus { border-color: var(--color-primary); box-shadow: 0 0 0 3px var(--color-primary-focus); }
.contact-field input[aria-invalid="true"] { border-color: var(--color-error); }
.contact-photos-row { display: flex; min-width: 0; gap: 12px; align-items: stretch; }
.contact-photo-picker { position: relative; display: flex; flex: 0 0 240px; min-height: 66px; padding: 12px 22px 12px 68px; align-items: center; border: 1px solid var(--color-border); border-radius: 14px; background: var(--color-white); color: #20242d; cursor: pointer; font: inherit; text-align: left; }
.contact-photo-picker img { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); width: var(--icon-size-ui); height: var(--icon-size-ui); object-fit: contain; }
.contact-photo-picker span { font-size: 17px; font-weight: 400; color: #939cad; white-space: nowrap;}
.contact-previews { display: flex; min-width: 0; gap: 10px; overflow-x: auto; padding: 2px 2px 6px; scrollbar-width: thin; }
.contact-photo, .contact-photo-add { position: relative; flex: 0 0 78px; width: 78px; height: 78px; overflow: visible; border-radius: 12px; }
.contact-photo { background: #eef2f7; }
.contact-photo img { width: 100%; height: 100%; border-radius: inherit; object-fit: cover; }
.contact-photo.is-unavailable::before { content: "Фото"; position: absolute; inset: 0; display: grid; place-items: center; color: #6f7785; font-size: 12px; }
.contact-photo.is-unavailable img { display: none; }
.contact-photo__remove { position: absolute; z-index: 2; top: 4px; right: 4px; display: grid; width: 25px; height: 25px; padding: 0; place-items: center; border: 0; border-radius: 50%; background: rgba(232,236,242,.94); color: #687180; cursor: pointer; font: 400 23px/1 Arial,sans-serif; }
.contact-photo-add { display: grid; place-items: center; border: 0; background: transparent; color: var(--color-primary); cursor: pointer; }
.contact-photo-add span { display: grid; width: 44px; height: 44px; place-items: center; border-radius: 12px; background: var(--color-primary-surface); font-size: 30px; font-weight: 300; }
.contact-section:not(.has-photos) .contact-previews { display: none; }
.contact-section.has-photos .contact-photo-picker { display: none; }
.contact-submit { display: flex; width: 100%; min-height: 70px; align-items: center; justify-content: center; gap: 18px; border: 0; border-radius: 14px; background: var(--color-primary); color: var(--color-white); cursor: pointer; font: inherit; font-size: 18px; font-weight: 600; transition: filter .18s ease, transform .18s ease; }
.contact-submit:hover { filter: brightness(.95); }
.contact-submit:active { transform: translateY(1px); }
.contact-submit:disabled { cursor: wait; opacity: .68; }
.contact-form__status { min-height: 20px; margin: -6px 2px 0; font-size: 14px; }
.contact-form__status:empty { display: none; }
.contact-form__status.is-error { color: #c9342c; }
.contact-form__status.is-success { color: var(--color-success); }
.contact-networks { display: flex; justify-content: center; align-items: center; gap: 24px; width: 370px; max-width: 100%; margin-top: 24px; }
.contact-network { display: grid; width: 34px; height: 34px; place-items: center; transition: transform .18s ease, opacity .18s ease; }
.contact-network:hover { transform: translateY(-2px); opacity: .8; }
.contact-network img { display: block; width: 30px; height: 30px; object-fit: contain; }
.contact-network:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 5px; border-radius: 4px; }
@media (max-width: 640px) { .contact-networks { width: 100%; gap: 28px; margin-top: 22px; } }
@media (prefers-reduced-motion: reduce) { .contact-network { transition: none; } }

@media (max-width: 980px) {
  .contact-layout { grid-template-columns: 1fr; max-width: 680px; }
  .contact-details { min-height: auto; padding: 52px 20px 12px; border-top: 1px solid var(--color-border); }
  .contact-form-wrap { order: -1; padding: 0 0 52px; border-left: 0; }
}
@media (max-width: 640px) {
  .contact-shell { max-width: 100%; padding: 0; }
  .contact-heading { padding: 0 0 var(--section-heading-gap-mobile); }
  .contact-title { line-height: 1.1; }
  .contact-subtitle { margin-top: 8px; }
  .contact-layout { width: 100%; min-width: 0; max-width: 100%; margin-right: 0; margin-left: 0; }
  .contact-form-wrap, .contact-form, .contact-field, .contact-field input, .contact-field textarea { min-width: 0; max-width: 100%; }
  .contact-phone, .contact-socials, .contact-email, .contact-company { width: 100%; max-width: 100%; }

  .contact-details { padding: 28px 0 5px; }
  .contact-phone { gap: 10px; font-size: clamp(36px, 10vw, 46px); }
  .contact-phone svg { width: 24px; height: 32px; }

  .contact-socials { gap: 24px; margin-top: 18px; }
  .contact-social, .contact-social img {
    width: var(--icon-size-large-mobile);
    height: var(--icon-size-large-mobile);
  }

  .contact-email { margin-top: 18px; font-size: 17px; }
  .contact-company { margin-top: 28px; }

  .contact-form-wrap { padding: 0 0 32px; }
  .contact-form { gap: 12px; }
  .contact-field > img { top: 18px; left: 17px; width: var(--icon-size-ui-mobile); height: var(--icon-size-ui-mobile); }
  .contact-field input { height: 60px; padding-left: 54px; font-size: 16px; }
  .contact-field textarea { min-height: 118px; padding: 18px 17px 18px 54px; font-size: 16px; }
  .contact-photos-row { display: block; }
  .contact-photo-picker { width: 100%; min-height: 60px; padding: 12px 17px 12px 54px; }
  .contact-photo-picker img { left: 17px; width: var(--icon-size-ui-mobile); height: var(--icon-size-ui-mobile); }
  .contact-photo-picker span { font-size: 16px; }
  .contact-photo, .contact-photo-add { flex-basis: 72px; width: 72px; height: 72px; }
  .contact-submit { min-height: 62px; font-size: 17px; }

  .contact-networks { gap: 22px; margin-top: 16px; }
}
@media (max-width: 360px) {
  .contact-phone { font-size: 33px; }
  .contact-socials { gap: 20px; }
}
@media (prefers-reduced-motion: reduce) { .contact-social, .contact-submit { transition: none; } }
