/* Browser behavior for the standalone copy. The theme styles are in css/. */
.hamburger { display: none; }
.mapinner { position: relative; width: 70%; }
.contact-map { display: block; width: 100%; height: 480px; object-fit: cover; }
.map-attribution {
  position: absolute;
  z-index: 1;
  bottom: 8px;
  left: 8px;
  padding: 2px 6px;
  color: #314746;
  background: #fff;
  font-size: 12px;
}
.photo-dialog {
  max-width: 96vw;
  max-height: 95vh;
  padding: 38px 42px 12px;
  border: 0;
  background: #202020;
  color: white;
}
.photo-dialog::backdrop { background: #000b; }
.photo-dialog img { display: block; max-width: 100%; max-height: 80vh; object-fit: contain; }
.photo-dialog button {
  position: absolute;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 28px;
  padding: 4px 10px;
}
.photo-close { right: 2px; top: 0; }
.photo-prev { left: 0; top: 45%; }
.photo-next { right: 0; top: 45%; }
:focus-visible { outline: 2px solid #00867e; outline-offset: 2px; }
@media (max-width: 960px) {
  .hamburger { display: block; border: 0; background: #fff; padding: 0; }
  .mobile-area { max-width: min(330px, 88vw); }
  .sot-title { padding-top: 24px; }
  .section_contacts { height: auto; }
  .contacts_overlay { height: auto; }
  .contacts_place, .contacts_phone, .contacts_email { left: auto; height: auto; margin-bottom: 20px; overflow-wrap: anywhere; }
  .mapinner { width: 100%; }
}
@media (max-width: 750px) {
  .photos_row { display: grid; height: auto; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .photos_item { display: block; width: auto; min-height: 155px; }
  .photos_item:not([href]) { display: none; }
}
@media (max-width: 500px) {
  .header_logo { width: auto; padding-right: 35px; }
  .header_logo img { max-width: 56px; height: auto; }
  .request_form_input { box-sizing: border-box; width: 100%; }
  .contact-map { height: 300px; }
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

.catalog-price {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.catalog-price-link {
  box-sizing: border-box;
  width: min(100%, 280px);
  min-height: 44px;
  margin-top: 0;
  padding-inline: 20px;
  text-align: center;
  text-decoration: none;
}
.catalog-price-link:focus-visible {
  outline: 2px solid #00867e;
  outline-offset: 3px;
}

.contact-card.wpcf7-form {
  box-sizing: border-box;
  text-align: center;
}
.contact-card-phone {
  display: block;
  margin-top: 12px;
  color: #303030;
  font-size: 22px;
  font-weight: 700;
}
.contact-card-price { text-decoration: none; }

.catalog-menu-toggle {
  appearance: none;
  border-block: 0;
  background: transparent;
  cursor: pointer;
}
.catalog-menu[hidden] { display: none; }
.catalog-menu-toggle:focus-visible,
.catalog-menu a:focus-visible,
.catalog-list_item a:focus-visible,
.mobile_menu summary:focus-visible {
  outline: 2px solid #00867e;
  outline-offset: -2px;
}
.mobile_menu summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
  color: #000;
  font-size: 15px;
  line-height: 1.3;
  list-style: none;
  cursor: pointer;
}
.mobile_menu summary::-webkit-details-marker { display: none; }
.mobile_menu summary::after {
  content: "";
  flex: none;
  width: 7px;
  height: 7px;
  margin: 0 3px 3px 0;
  border: solid #007d7c;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mobile_menu details[open] > summary::after {
  margin-bottom: 0;
  transform: rotate(225deg);
}
.mobile_menu details .cm-block {
  margin: 0 0 14px 2px;
  padding: 0 0 0 12px;
  border-left: 2px solid #00a69c;
}
.mobile_menu details .cm-block_item:last-child a { margin-bottom: 0; }
@media (max-width: 960px) {
  .page-topmenu > .catalog-menu { display: none; }
  .mobile-area.active { width: min(260px, 88vw); }
}
