/* Кнопка обратного звонка и общая форма в шапке всех страниц. */
.header-callback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid #dfe3df;
  border-radius: 6px;
  background: #ffffffb3;
  color: #24494b;
  cursor: pointer;
}

.header-callback svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  stroke: none;
}

.header-callback:hover {
  background: #fff;
}

.header-callback:focus-visible,
.callback-modal button:focus-visible {
  outline: 2px solid #36787a;
  outline-offset: 3px;
}

.callback-modal-open,
.callback-modal-open body {
  overflow: hidden;
}

.callback-modal-open {
  scrollbar-gutter: stable;
}

.callback-modal {
  position: fixed;
  inset: 0;
  margin: auto;
  max-width: none;
  border: 1px solid #dfe3df;
  border-top: 2px solid #8ec8c1;
  border-radius: 12px;
  background: #f8faf9;
  color: #173b3d;
  box-shadow: 0 20px 70px #102d3540;
}

.callback-modal::backdrop {
  background: #102d3573;
}

.callback-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid #dfe3df;
  border-radius: 50%;
  background: #fff;
  color: #24494b;
  cursor: pointer;
}

.callback-close svg {
  width: 20px;
  height: 20px;
}

.callback-eyebrow {
  padding-right: 56px;
}

.callback-form input:not([type="hidden"]):not([type="checkbox"]),
.callback-form textarea {
  display: block;
  width: 100%;
  min-width: 0;
  padding-inline: 12px;
  border: 1px solid #d9e3d5;
  border-radius: 5px;
  background: #fff;
  color: #173b3d;
  font: calc(16px * var(--nn26-font-scale, 1))/1.5 Arial, sans-serif;
  outline: none;
  transition: border-color .2s, box-shadow .2s;
}

.callback-form textarea {
  min-height: 92px;
  margin-top: var(--connection-field-margin);
  padding-block: 10px;
  resize: vertical;
}

.callback-form input::placeholder,
.callback-form textarea::placeholder {
  color: #8d9a91;
  font-size: calc(12px * var(--nn26-font-scale, 1));
}

.callback-form input:not([type="checkbox"]):focus,
.callback-form textarea:focus {
  border-color: #78c8c1;
  box-shadow: 0 0 0 3px #abe1dc66, 0 0 15px #abe1dc80;
}

.callback-form input[type="checkbox"]:focus-visible {
  outline: 2px solid #78c8c1;
  outline-offset: 1px;
}

.callback-form input[type="checkbox"] {
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  accent-color: #36787a;
}

.callback-form a {
  color: #36787a;
  text-decoration: underline;
  text-decoration-color: #96d1cb;
  text-underline-offset: 3px;
}

.callback-submit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
}

.callback-contact {
  margin: 0;
  color: #54716a;
  font: 400 calc(12px * var(--nn26-font-scale, 1))/1.6 Arial, sans-serif;
  text-align: center;
}

.callback-contact a {
  white-space: nowrap;
}

@media (min-width: 2400px) {
  .header-callback {
    width: 46px;
    min-height: 46px;
  }
}

@media (max-width: 1400px) {
  .header-callback {
    width: 40px;
    min-height: 40px;
  }
}

@media (max-width: 600px) {
  .header-callback {
    flex-basis: 40px;
    width: 40px;
    min-height: 44px;
  }
}
