.header-contacts { display: flex; align-items: center; gap: 8px; flex: none; }
.header-chat { position: relative; }
.header-chat-trigger { display: grid; place-items: center; width: 44px; height: 44px; padding: 10px; border: 0; border-radius: var(--radius-s); background: var(--age-surface); color: var(--age-accent); }
.contact-chat-icon { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; mask: url('illustrations/chat.svg?v=330e434bc92b') center / contain no-repeat; -webkit-mask: url('illustrations/chat.svg?v=330e434bc92b') center / contain no-repeat; }
.header-chat-links { position: absolute; inset: calc(100% + 8px) 0 auto auto; width: 200px; padding: 8px; background: var(--surface); border: 1px solid var(--control-border); border-radius: var(--radius-m); }
.header-chat-links a { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 8px 12px; border-radius: var(--radius-s); text-decoration: none; }
@media (hover: hover) { .header-chat-links a:hover { background: var(--age-surface); } }
.messenger-icon { display: inline-block; flex: none; width: 24px; height: 24px; background: var(--age-accent); mask: var(--messenger-icon) center / contain no-repeat; -webkit-mask: var(--messenger-icon) center / contain no-repeat; }
.messenger-telegram { --messenger-icon: url('icons/telegram.png'); }
.messenger-max { background: url('icons/max.png') center / contain no-repeat; mask: none; -webkit-mask: none; }
.contact-options { display: flex; flex-wrap: wrap; gap: 8px; }
.lead-form .contact-option { display: flex; position: relative; flex: 1 1 140px; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 16px; border: 1px solid var(--control-border); border-radius: var(--radius-s); background: var(--surface); font: inherit; cursor: pointer; }
.contact-option:has(input:checked) { border: 2px solid var(--age-accent); padding: 9px 15px; background: var(--age-surface); }
.contact-option:has(input:focus-visible) { outline: var(--focus-outline-width, 2px) solid var(--focus-ring); outline-offset: 4px; }
.contact-option input { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }
.contact-option > span { position: relative; }
.contact-option .contact-chat-icon { color: var(--age-accent); }
.contact-preference legend, .messenger-fields legend { margin-block-end: 12px; }
.messenger-fields { display: grid; gap: 16px; }
.messenger-fields .contact-hint { font-size: 14px; line-height: 20px; color: var(--text-muted); }
.lead-form .contact-alternative { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; width: 100%; background: var(--age-surface); color: var(--text); }
.contact-phone-icon { display: inline-block; flex: none; width: 24px; height: 24px; background: currentColor; mask: url('illustrations/phone.svg') center / contain no-repeat; -webkit-mask: url('illustrations/phone.svg') center / contain no-repeat; }
.contact-alternative :is(.contact-chat-icon, .contact-phone-icon) { color: var(--age-accent); }
.callback-actions { display: flex; gap: 12px; }
[data-block=feedback] .callback-actions > .btn { flex: 1 1 auto; min-width: 0; width: auto; }
.contact-submit { gap: 8px; }
.contact-submit::before { content: ''; flex: none; width: 24px; height: 24px; background: currentColor; mask: url('illustrations/phone.svg') center / contain no-repeat; -webkit-mask: url('illustrations/phone.svg') center / contain no-repeat; }
.contact-submit.contact-messenger::before { mask-image: url('illustrations/chat.svg?v=330e434bc92b'); -webkit-mask-image: url('illustrations/chat.svg?v=330e434bc92b'); }
.btn.contact-alternative { background: var(--surface); color: var(--text); }
.btn.contact-alternative:disabled { color: var(--text-disabled); }
@media (hover: hover) { .btn.contact-alternative:hover:not(:disabled) { background: var(--surface); color: var(--text); } }
@media (max-width: 48rem) { .callback-actions { flex-direction: column; } }
@media (max-width: 75rem) { header .header-contacts { margin-inline-start: auto; } header .header-phone { margin-inline-start: 0; } }
@media (max-width: 48rem), (max-height: 30rem) and (pointer: coarse) {
  .shell > header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: 'brand age contacts'; gap: 8px; }
  header .header-contacts { grid-area: contacts; margin: 0; gap: 4px; }
  header .header-phone { grid-area: auto; }
}
@media (forced-colors: active) {
  .contact-chat-icon, .contact-phone-icon, .messenger-icon { background: ButtonText; }
  .contact-option:has(input:checked) { outline: 2px solid Highlight; }
}
