.office-contacts {
  box-sizing: border-box;
  width: 50%;
  min-width: 0;
  padding: 0 24px 50px 0;
  color: #222;
  font-size: 16px;
  line-height: 26px;
}
.office-photo {
  display: block;
  overflow: hidden;
  aspect-ratio: 3/2;
  border-radius: 8px;
  cursor: zoom-in;
}
.office-photo img {display: block; width: 100%; height: 100%; object-fit: cover;}
.office-properties {display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); margin-top: 37px;}
.office-properties > div + div {padding-left: 16px;}
.office-property {padding: 8px 0; line-height: 1.47;}
.office-label {margin-bottom: 2px; color: #666; font-size: 14px; line-height: 20px;}
.office-property a {color: inherit;}
.office-contacts a:hover, .office-question a {color: #db3022;}
.office-social {display: grid; grid-template-columns: repeat(4, minmax(0,1fr)) 36px; gap: 4px; align-items: center; margin-top: 33px;}
.office-social::after {content: ""; border-top: 1px solid #ececec;}
.office-social a {display: grid; place-items: center; height: 40px; border-radius: 8px; background: #f4f4f4;}
.office-social a:hover {background-color: #ececec;}
.office-social a::before {content: ""; width: 20px; height: 20px; background: url('/home-assets/c5c93eecddf7-social.svg') no-repeat var(--office-position) 0;}
.office-vk {--office-position: 0;}
.office-instagram {--office-position: -384px;}
.office-youtube {--office-position: -312px;}
.office-zen {--office-position: -144px;}
.office-description {color: #666; margin-top: 42px; overflow-wrap: anywhere;}
.office-description a {color: #db3022;}
.office-question-trigger, .office-compose {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  padding: 1px 20px;
  min-height: 42px;
  box-sizing: border-box;
  color: #db3022;
  background: transparent;
  border: 1px solid #db3022;
  border-radius: 8px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.office-question-trigger {display: flex; width: fit-content; margin-top: 32px;}
.office-contacts a.office-question-trigger:hover, .office-compose:hover {background: #db3022; color: white;}
.office-dialog:not([open]) {display: none;}
.office-dialog[open] {
  position: fixed; inset: 0; margin: auto; box-sizing: border-box;
  border: 0; border-radius: 12px; background: white; color: #222;
  max-width: calc(100vw - 32px); max-height: calc(100dvh - 32px); overscroll-behavior: contain;
}
.office-dialog::backdrop {background: rgb(0 0 0 / 65%);}
.office-gallery {padding: 0; overflow: hidden;}
.office-gallery img {display: block; width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 32px); object-fit: contain;}
.office-close {position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 50%; background: #f4f4f4; color: #222; font-size: 28px; line-height: 1; cursor: pointer;}
.office-question {width: 500px; padding: 28px; overflow: auto;}
.office-question h2 {margin: 0 42px 12px 0; font-size: 24px; line-height: 1.35;}
.office-official {display: block; text-align: center; font-size: 14px;}
.office-question-trigger + .office-official {display: flex; align-items: center; width: fit-content; margin-top: 8px; text-align: left;}
.office-question p {margin: 0 0 18px; color: #555; font-size: 15px; line-height: 1.5;}
.office-question form {display: grid; gap: 12px;}
.office-question label {color: #333; font-size: 14px; font-weight: 500; line-height: 1.4;}
.office-question label input:not([type=checkbox]), .office-question textarea {display: block; box-sizing: border-box; width: 100%; font: inherit; font-size: 16px; margin-top: 4px; border: 1px solid #ddd; border-radius: 6px; background: white; color: #222; padding: 8px 10px;}
.office-question textarea {resize: vertical;}
.office-agreement {display: flex; align-items: flex-start; gap: 8px;}
.office-agreement input {margin: 3px 0 0; width: 16px; height: 16px; flex: none;}
@media(max-width: 991px) {.office-contacts {width: 100%; padding-right: 0;}}
@media(max-width: 767px) {
  .office-properties {grid-template-columns: 1fr;}
  .office-properties > div + div {padding-left: 0;}
  .office-question {padding: 22px;}
  .office-social a, .office-question-trigger, .office-question-trigger + .office-official {min-height: 44px;}
}
