/* CalendIt — «Написать нам»: конверт в шапке, окно и запасная страница contact.html. Самодостаточно:
   подключается и в редакторе, и на странице ссылки, и на страницах входа. */
@media screen {
  .contact-btn { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; margin-right: 8px;
    color: #4A4950; border: 1px solid #D8D5D1; background: #fff; text-decoration: none; flex: none; }
  .contact-btn:hover, .contact-btn:focus-visible { background: #FE6D11; border-color: #FE6D11; color: #fff; }
  .contact-btn.text { width: auto; height: auto; border: 0; background: none; border-radius: 0; margin: 0; display: inline-flex; gap: 6px;
    align-items: center; color: #B5480A; font-size: 14px; }
  .contact-btn.text:hover { background: none; color: #FE6D11; }

  .ct-modal { position: fixed; inset: 0; z-index: 2000; background: rgba(24, 24, 26, .45); display: grid; place-items: center; padding: 16px; }
  .ct-modal[hidden] { display: none; }
  .ct-win { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #18181A;
    border-radius: 12px; padding: 20px 22px 18px; box-shadow: 0 18px 50px rgba(0,0,0,.25); font-family: 'Golos Text', system-ui, sans-serif; }
  .ct-win h2 { margin: 0 0 12px; font-size: 20px; font-weight: 800; }
  .ct-close { position: absolute; top: 10px; right: 10px; border: 0; background: none; font-size: 16px; line-height: 1; padding: 6px 8px;
    border-radius: 6px; cursor: pointer; color: #4A4950; }
  .ct-close:hover { background: #F1EFEC; }

  .ct-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
  .ct-link { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 8px; border: 1px solid #E3E0DC;
    background: #F7F5F2; color: #18181A; text-decoration: none; font-size: 14px; font-weight: 600; }
  .ct-link:hover { border-color: #FE6D11; }
  .ct-telegram svg { color: #229ED9; }
  .ct-vk svg { color: #0077FF; }

  .ct-form { display: flex; flex-direction: column; gap: 10px; position: relative; }
  .ct-form[hidden] { display: none; }
  .ct-row { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #4A4950; }
  .ct-row input, .ct-row textarea { font: inherit; font-size: 15px; color: #18181A; padding: 8px 10px; border: 1px solid #D8D5D1; border-radius: 8px;
    background: #fff; width: 100%; box-sizing: border-box; }
  .ct-row textarea { resize: vertical; min-height: 110px; }
  .ct-row input:focus, .ct-row textarea:focus { outline: 2px solid rgba(254,109,17,.35); border-color: #FE6D11; }
  .ct-err { color: #B3261E; font-size: 12px; }
  .ct-err[hidden], .ct-alert[hidden], .ct-ctx[hidden], .ct-done[hidden] { display: none; }
  .ct-alert { margin: 0; padding: 7px 10px; border-radius: 6px; background: #FDECEA; color: #B3261E; font-size: 13px; }
  .ct-ctx { display: flex; gap: 6px; align-items: flex-start; font-size: 12px; color: #6B6A72; }
  .ct-ctx input { margin-top: 2px; }
  .ct-note { margin: 0; font-size: 12px; color: #6B6A72; }
  .ct-note a { color: inherit; }
  .ct-send { align-self: flex-start; font: inherit; font-weight: 700; font-size: 15px; padding: 9px 18px; border-radius: 8px; border: 0;
    background: #FE6D11; color: #fff; cursor: pointer; }
  .ct-send:disabled { opacity: .6; cursor: wait; }
  .ct-done { margin: 6px 0 2px; padding: 10px 12px; border-radius: 8px; background: #EAF6EC; color: #1E6B30; font-size: 14px; }

  .ct-page h1 { font-size: 22px; margin: 4px 0 12px; }
  .auth-contact { text-align: center; margin: 14px 0 0; }
}
@media print { .contact-btn, .ct-modal { display: none !important; } }
