.hotline[hidden], .hotline [hidden] { display: none !important; }

/* Оформление повторяет существующую форму сайта; новые элементы изолированы. */
.hotline {
  position: fixed;
  inset: 0;
  z-index: 1000;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 32px 20px;
  background: rgba(0, 0, 0, .55);
  color: #4c4c4c;
  font: 18px/1.5 'PTSans', 'CloudWeiTiGBK', sans-serif;
}
.hotline, .hotline *, .hotline *::before, .hotline *::after { box-sizing: border-box; }
.hotline__dialog {
  position: relative;
  width: 100%;
  max-width: 625px;
  margin: 0 auto;
  background: #fff;
}
.hotline__header { padding: 40px 42px 30px; }
.hotline .dialog__header {
  margin: 0;
  color: #4c4c4c;
  font-family: inherit;
  font-size: 38px;
  font-weight: bold;
  line-height: 45px;
  text-align: center;
}
.hotline p { margin: 0; }
.hotline a, .hotline a:hover { color: #4c4c4c; text-decoration: underline; }
.hotline__section { padding: 0 46px 24px; }
.hotline__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.hotline__field { min-width: 0; }
.hotline label { display: block; margin: 0 0 5px; font-size: 18px; font-weight: normal; }
.hotline__optional { color: #666; font-size: 14px; white-space: nowrap; }
.hotline__label-hint { display: block; color: #666; font-size: 14px; line-height: 1.4; }
.hotline input[type=text], .hotline input[type=email], .hotline input[type=tel], .hotline textarea {
  display: block;
  width: 100%;
  min-height: 36px;
  padding: 6px 5px 5px;
  border: 1px solid #a9a9a9;
  border-radius: 0;
  background: #fff;
  color: #4c4c4c;
  font: inherit;
  line-height: 23px;
  box-shadow: none;
}
.hotline input:focus, .hotline textarea:focus { border-color: #2563eb; }
.hotline textarea { resize: vertical; min-height: 100px; }
.hotline__notice { margin: 20px 0; padding: 12px 14px; border-left: 3px solid #ccc; background: #f7f7f7; color: #606060; font-size: 14px; line-height: 1.5; }
.hotline__notice p + p { margin-top: 8px; }
.hotline .hotline__notice-title { color: #4c4c4c; font-weight: bold; }
.hotline fieldset { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.hotline legend { margin: 0 0 8px; padding: 0; color: #4c4c4c; font: inherit; }
.hotline__choices { display: flex; flex-wrap: wrap; gap: 10px 20px; }
.hotline .hotline__choice { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px; cursor: pointer; }
.hotline input[type=radio], .hotline input[type=checkbox] { appearance: auto; position: static; opacity: 1; width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: #2563eb; }
.hotline .hotline__hint { margin-top: 8px; color: #666; font-size: 14px; line-height: 1.5; }
.hotline__upload { margin-top: 20px; }
.hotline input[type=file] { display: block; width: 100%; min-width: 0; max-width: 100%; margin-top: 8px; color: #4c4c4c; font: 14px/1.5 'PTSans', 'CloudWeiTiGBK', sans-serif; }
.hotline input[type=file]::file-selector-button { margin-right: 10px; padding: 6px 10px; border: 1px solid #a9a9a9; border-radius: 0; background: #f7f7f7; color: #4c4c4c; font: inherit; cursor: pointer; }
.hotline__footer { padding: 0 46px 30px; }
.hotline .hotline__agreement { display: flex; align-items: flex-start; gap: 8px; margin: 0 0 20px; color: #4c4c4c; font-size: 18px; font-weight: normal; line-height: 1.65; }
.hotline__agreement input { margin-top: 7px !important; }
.hotline .hotline__error { margin-top: 18px; color: #a60c2b; font-size: 16px; white-space: pre-line; }
.hotline button { cursor: pointer; font-family: inherit; }
/* Значения .button, .button_red, .button_bold из десктопной темы;
   задаются и здесь, поскольку мобильная тема не содержит этих классов. */
.hotline__submit, .hotline__done {
  display: block;
  margin: 20px auto 0;
  padding: 0 23px;
  border: 0;
  border-radius: 0;
  background: #bb112d;
  color: #fff;
  font-size: 18px;
  font-weight: bold;
  line-height: 45px;
  text-transform: uppercase;
}
.hotline__submit:hover, .hotline__done:hover { background: #d91636; }
.hotline__submit:active, .hotline__done:active { background: #940f25; }
.hotline__submit:disabled { opacity: .6; cursor: wait; }
.hotline__close { position: absolute; top: 4px; right: 8px; width: 32px; height: 32px; padding: 0; border: 0; background: transparent; color: #4c4c4c; font-size: 28px; line-height: 1; }
.hotline__success { padding: 32px; text-align: center; }
.hotline__success p { font-size: 24px; font-weight: bold; }
.hotline :focus-visible { outline: 2px solid #2563eb; outline-offset: 3px; }
@media (max-width: 600px) {
  .hotline { padding: 0; font-size: 16px; }
  .hotline__dialog { min-height: 100%; }
  .hotline__header { padding: 36px 20px 24px; }
  .hotline .dialog__header { font-size: 26px; line-height: 1.25; }
  .hotline__section { padding: 0 20px 20px; }
  .hotline__footer { padding: 0 20px 24px; }
  .hotline label, .hotline .hotline__agreement { font-size: 16px; }
}
