.button {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 0;
  color: #ffffff;
  background: var(--color-ink);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 160ms ease, box-shadow 160ms ease;
}

.button--icon {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  padding: 0;
}

.button__icon {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.button--header-icon,
.button--footer-icon {
  flex: 0 0 43px;
  width: 43px;
  height: 43px;
  padding: 0;
}

.button--primary {
  padding: 13px 24px;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: -0.03em;
}

.button--menu-appointment {
  padding-block: 9.5px;
}

.button--appointment {
  flex: 0 0 186px;
  width: 186px;
}

.button--shell-appointment {
  flex: 0 0 186px;
  width: 186px;
}

.button--lead {
  width: min(342px, 100%);
  padding: 21.5px 24px;
  font-size: 14px;
  line-height: 17px;
  letter-spacing: -0.03em;
}

.button--consultation {
  padding-block: 21.5px;
}

.button--vacancy {
  max-width: 100%;
  margin-top: 40px;
  padding-block: 21.5px;
  padding-inline: 33px;
}

.button:hover {
  background: #2f2f2f;
}

.button:active {
  background: #1f1f1f;
}

.button:disabled {
  background: var(--color-ink);
}

.button:focus-visible {
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  box-shadow: 0 0 0 2px var(--color-ink);
}

.button--service {
  flex: 1 1 auto;
  padding: 10px 8px;
  border: 1px solid #777777;
  color: var(--color-ink);
  background: transparent;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.37;
  letter-spacing: -0.04em;
  text-align: center;
  overflow-wrap: anywhere;
  transition: background-color 220ms ease, color 220ms ease,
    border-color 220ms ease, box-shadow 220ms ease;
}

.button--service:hover {
  background: transparent;
}

@media (hover: hover) and (pointer: fine) {
  .button--service:hover {
    border-color: var(--color-ink);
    color: #ffffff;
    background: var(--color-ink);
    box-shadow: 0 4px 10px rgb(0 0 0 / 12%);
  }
}

.button--service:active {
  border-color: #1f1f1f;
  color: #ffffff;
  background: #1f1f1f;
  box-shadow: none;
}

.button--service:focus-visible {
  border-color: var(--color-ink);
  color: #ffffff;
  background: var(--color-ink);
  outline: 2px solid #ffffff;
  outline-offset: -4px;
  box-shadow: 0 0 0 2px var(--color-ink);
}

@media (prefers-reduced-motion: reduce) {
  .button--service {
    transition: none;
  }
}

@media (max-width: 767px) {
  .button--consultation {
    padding-block: 16.5px;
  }

  .button--lead {
    width: 100%;
    padding-block: 16.5px;
  }

  .button--appointment {
    flex: 1 1 auto;
    width: auto;
  }

  .button--footer-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

  .button__icon--shell {
    width: 9px;
    height: 9px;
  }

  .button--shell-appointment {
    flex-basis: 170px;
    width: 170px;
    padding-block: 9.5px;
  }
}

@media (max-width: 767px) {
  .button--header-icon {
    flex-basis: 24px;
    width: 24px;
    height: 24px;
  }

}

@media (max-width: 359px) {
  .button--icon {
    flex-basis: 40px;
    width: 40px;
  }

  .button--appointment {
    padding-inline: 16px;
  }
}
