/* Corzetti messenger links: header, 2026-11-26. */
.header-content_right:has(.czm-header) {
  gap: 0;
  flex-wrap: nowrap;
}
.header-content_right:has(.czm-header) .header-phone {
  margin-right: 16px;
  white-space: nowrap;
}
.czm-header {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  gap: 8px;
  margin-right: 16px;
}
.czm-header-link {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  transition: transform .2s;
}
.czm-header-link:hover { transform: scale(1.08); }
.czm-header-link:focus-visible { outline: 2px solid #D5BA9D; outline-offset: 3px; }
.czm-header-link img { display: block; width: 22px; height: 22px; object-fit: contain; }
.czm-header-wa { background: linear-gradient(135deg, #4CAF50, #009f32); }
.czm-header-wa img { filter: invert(1); }
.czm-header-max { background: linear-gradient(135deg, #9C27B0, #03A9F4); }
@media (min-width: 769px) and (max-width: 1024px) {
  .czm-header-link { flex-basis: 30px; width: 30px; height: 30px; }
  .czm-header-link img { width: 19px; height: 19px; }
}
@media (max-width: 768px) { .czm-header { display: none; } }
@media (prefers-reduced-motion: reduce) { .czm-header-link { transition: none; } }

@media (min-width: 769px) and (max-width: 900px) {
  .header-content_right:has(.czm-header) .header-phone { font-size: 18px; margin-right: 12px; }
  .header-content_right:has(.czm-header) .header-contact_btn { width: 160px; min-width: 0; flex: 0 0 160px; padding: 12px 10px; font-size: 12px; }
}

@media (min-width: 769px) and (max-width: 900px) {
  .header-content:has(.czm-header) .header-logo { max-width: 170px; flex-shrink: 0; }
  .header-content_right:has(.czm-header) { width: auto; margin-right: 64px; flex-shrink: 0; }
  .header-content_right:has(.czm-header) .header-phone { font-size: 16px; }
  .header-content_right:has(.czm-header) .header-contact_btn { width: 140px; flex-basis: 140px; font-size: 11px; }
}

/* Contacts messenger caption. */
.contacts-main_info-socials:has(.czm-contacts-caption) { flex-wrap: wrap; align-items: center; column-gap: 12px; row-gap: 10px; }
.contacts-main_info-socials:has(.czm-contacts-caption) .contacts-main_social { margin-right: 0; flex-shrink: 0; }
.czm-contacts-caption { margin-left: 4px; font-family: inherit; font-size: 16px; line-height: 1.5; color: inherit; flex: 0 1 260px; }
@media (max-width: 480px) { .czm-contacts-caption { flex-basis: 100%; margin-left: 0; } }

/* Mobile messenger menu. */
.czm-floating { display: none; }
@media (max-width: 768px) {
  body:has(.czm-floating) { padding-bottom: calc(88px + env(safe-area-inset-bottom, 0px)); }
  .czm-floating { display: block; position: fixed; left: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 999; }
  .czm-floating.czm-is-suppressed, body.fancybox-active .czm-floating, body:has(.marquiz__bg_open) .czm-floating { display: none; }
  .czm-trigger { display: flex; align-items: center; justify-content: center; width: 56px; height: 56px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: #896D4D; box-shadow: 0 3px 14px #1c111040; cursor: pointer; }
  .czm-trigger:focus-visible, .czm-menu-link:focus-visible { outline: 3px solid #D5BA9D; outline-offset: 3px; }
  .czm-menu { display: grid; gap: 10px; position: absolute; left: 0; bottom: 68px; width: 180px; opacity: 0; visibility: hidden; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s, visibility .2s; }
  .czm-is-open .czm-menu { opacity: 1; visibility: visible; pointer-events: auto; transform: translateY(0); }
  .czm-menu-link { display: flex; align-items: center; gap: 12px; min-height: 48px; box-sizing: border-box; padding: 10px 16px; border-radius: 24px; color: #fff; font-family: Raleway, sans-serif; font-size: 16px; line-height: 1.3; text-decoration: none; box-shadow: 0 3px 12px #1c111030; }
  .czm-menu-link img { display: block; flex: 0 0 24px; width: 24px; height: 24px; }
  .czm-menu-wa { background: linear-gradient(135deg, #4CAF50, #009f32); }
  .czm-menu-wa img { filter: invert(1); }
  .czm-menu-max { background: linear-gradient(135deg, #9C27B0, #03A9F4); }
}
@media (prefers-reduced-motion: reduce) { .czm-menu { transition: none; transform: none; } }
